public class ResourceAssignmentCode
extends com.primavera.integration.client.bo.base.ResourceAssignmentCodeBase
Assignment codes are user-defined codes to classify and categorize assignments across the enterprise. They are defined globally.
With potentially hundreds of assignments being used across an enterprise of projects, codes provide another method for filtering the assignments you need to access quickly, or for grouping assignments for analysis and summarization in layouts. You can also use assignment codes to group, sort, and filter assignments in profiles and spreadsheets.
Constructor and Description |
---|
ResourceAssignmentCode(Session session)
Class constructor specifying the Session.
|
ResourceAssignmentCode(Session session,
ObjectId objId)
Class constructor specifying the Session and ObjectId of the object.
|
ResourceAssignmentCode(Session session,
com.primavera.infr.db.PrmRowSet rowSet,
int iIndex)
Class constructor called internally after objects are retrieved from the server.
|
Modifier and Type | Method and Description |
---|---|
ObjectId |
create()
Creates this ResourceAssignmentCode object in the database.
|
static ObjectId[] |
create(Session session,
ResourceAssignmentCode[] resourceassignmentcodes)
Creates multiple ResourceAssignmentCode objects in the database.
|
ObjectId |
createAssignmentCodeChild(ResourceAssignmentCode assignmentcodechild)
Creates an associated ResourceAssignmentCode object in the database.
|
ObjectId[] |
createAssignmentCodeChildren(ResourceAssignmentCode[] assignmentcodechildren)
Creates multiple associated ResourceAssignmentCode objects in the database.
|
void |
delete()
Deletes this ResourceAssignmentCode object from the database.
|
static void |
delete(Session session,
ResourceAssignmentCode[] resourceassignmentcodes)
Deletes multiple ResourceAssignmentCode objects from the database.
|
static String[] |
getAllFields()
Gets all fields for this business object.
|
String |
getCodeTypeName()
Gets the name of the parent code type for this code.
|
ObjectId |
getCodeTypeObjectId()
Gets the unique ID of the parent assignment code type.
|
String |
getCodeValue()
Gets the value of the assignment code.
|
Date |
getCreateDate()
Gets the date this assignment code was created.
|
String |
getCreateUser()
Gets the name of the user that created this assignment code.
|
static String[] |
getDefaultXMLExportFields()
Deprecated.
|
String |
getDescription()
Gets the description of the assignment code.
|
static String[] |
getFilterableFields()
Gets all fields that can be filtered.
|
static String[] |
getInternalAllFields()
An internal method that should not be called directly by client code.
|
static Set<String> |
getInternalAllFieldsSet()
An internal method that should not be called directly by client code.
|
static String[] |
getInternalDefaultLoadFields()
An internal method that should not be called directly by client code.
|
Date |
getLastUpdateDate()
Gets the date this assignment code was last updated.
|
String |
getLastUpdateUser()
Gets the name of the user that last updated this assignment code.
|
static String[] |
getMinimumXMLExportFields()
Gets all fields that are always exported at a minimum by the
new flat XML exporter
|
ObjectId |
getObjectId()
Gets the unique ID generated by the system.
|
ObjectId |
getParentObjectId()
Gets the unique ID of the parent assignment code of this assignment code in the hierarchy.
|
static String[] |
getRequiredCreateFields()
Gets all fields that must be set before calling create() on this business object.
|
int |
getSequenceNumber()
Gets the sequence number for sorting.
|
static String[] |
getWritableFields()
Gets all writable fields for this business object.
|
static ResourceAssignmentCode |
load(Session session,
String[] fields,
ObjectId objId)
Loads a single ResourceAssignmentCode object from the database.
|
static BOIterator<ResourceAssignmentCode> |
load(Session session,
String[] fields,
ObjectId[] objIds)
Loads multiple ResourceAssignmentCode objects from the database.
|
BOIterator<ResourceAssignmentCode> |
loadAssignmentCodeChildren(String[] fields,
String sWhereClause,
String sOrderBy)
Loads multiple associated ResourceAssignmentCode objects from the database.
|
ResourceAssignmentCode |
loadParentAssignmentCode(String[] fields)
Loads an associated ResourceAssignmentCode object from the database.
|
BOIterator<ResourceAssignmentCodeAssignment> |
loadResourceAssignmentCodeAssignments(String[] fields,
String sWhereClause,
String sOrderBy)
Loads multiple associated ResourceAssignmentCodeAssignment objects from the database.
|
ResourceAssignmentCodeType |
loadResourceAssignmentCodeType(String[] fields)
Loads an associated ResourceAssignmentCodeType object from the database.
|
BOIterator<ResourceAssignment> |
loadResourceAssignments(String[] fields,
String sWhereClause,
String sOrderBy)
Load the Assignment objects to which this assignment code is assigned.
|
void |
setCodeTypeObjectId(ObjectId o)
Sets the unique ID of the parent assignment code type.
|
void |
setCodeValue(String s)
Sets the value of the assignment code.
|
void |
setDescription(String s)
Sets the description of the assignment code.
|
void |
setObjectId(ObjectId o)
Sets the unique ID generated by the system.
|
void |
setParentObjectId(ObjectId o)
Sets the unique ID of the parent assignment code of this assignment code in the hierarchy.
|
void |
setSequenceNumber(int i)
Sets the sequence number for sorting.
|
String |
toString()
Returns a string representation of the object.
|
void |
update()
Updates this ResourceAssignmentCode object in the database.
|
static void |
update(Session session,
ResourceAssignmentCode[] resourceassignmentcodes)
Updates multiple ResourceAssignmentCode objects in the database.
|
equals, getMaxFieldLength, getValue, getValue, hashCode, isNull, setEarlyDate, setNull
public ResourceAssignmentCode(Session session)
session
- the Sessionpublic ResourceAssignmentCode(Session session, ObjectId objId) throws BusinessObjectException
session
- the SessionobjId
- the ObjectIdBusinessObjectException
- if a problem occurred in the client-side business objectspublic ResourceAssignmentCode(Session session, com.primavera.infr.db.PrmRowSet rowSet, int iIndex) throws BusinessObjectException
session
- the SessionrowSet
- the PrmRowSet retrieved from the serveriIndex
- the row index in the PrmRowSet associated with this business objectBusinessObjectException
- if a problem occurred in the client-side business objectspublic ResourceAssignmentCodeType loadResourceAssignmentCodeType(String[] fields) throws ServerException, NetworkException, BusinessObjectException
fields
- fields to loadServerException
- if a problem occurred on the server-sideNetworkException
- if a problem occurred in the network layerBusinessObjectException
- if a problem occurred in the client-side business objectspublic ResourceAssignmentCode loadParentAssignmentCode(String[] fields) throws ServerException, NetworkException, BusinessObjectException
fields
- fields to loadServerException
- if a problem occurred on the server-sideNetworkException
- if a problem occurred in the network layerBusinessObjectException
- if a problem occurred in the client-side business objectspublic ObjectId createAssignmentCodeChild(ResourceAssignmentCode assignmentcodechild) throws ServerException, NetworkException, BusinessObjectException
assignmentcodechild
- AssignmentCodeChild object to createServerException
- if a problem occurred on the server-sideNetworkException
- if a problem occurred in the network layerBusinessObjectException
- if a problem occurred in the client-side business objectspublic ObjectId[] createAssignmentCodeChildren(ResourceAssignmentCode[] assignmentcodechildren) throws ServerException, NetworkException, BusinessObjectException
assignmentcodechildren
- array of AssignmentCodeChild objects to createServerException
- if a problem occurred on the server-sideNetworkException
- if a problem occurred in the network layerBusinessObjectException
- if a problem occurred in the client-side business objectspublic BOIterator<ResourceAssignmentCode> loadAssignmentCodeChildren(String[] fields, String sWhereClause, String sOrderBy) throws ServerException, NetworkException, BusinessObjectException
fields
- fields to loadsWhereClause
- where clausesOrderBy
- order-by clauseServerException
- if a problem occurred on the server-sideNetworkException
- if a problem occurred in the network layerBusinessObjectException
- if a problem occurred in the client-side business objectspublic BOIterator<ResourceAssignmentCodeAssignment> loadResourceAssignmentCodeAssignments(String[] fields, String sWhereClause, String sOrderBy) throws ServerException, NetworkException, BusinessObjectException
fields
- fields to loadsWhereClause
- where clausesOrderBy
- order-by clauseServerException
- if a problem occurred on the server-sideNetworkException
- if a problem occurred in the network layerBusinessObjectException
- if a problem occurred in the client-side business objectspublic BOIterator<ResourceAssignment> loadResourceAssignments(String[] fields, String sWhereClause, String sOrderBy) throws ServerException, NetworkException, BusinessObjectException
loadResourceAssignments
in class com.primavera.integration.client.bo.base.ResourceAssignmentCodeBase
fields
- fields to loadsWhereClause
- where clausesOrderBy
- order by clauseServerException
- if a problem occurred on the server-sideNetworkException
- if a problem occurred in the network layerBusinessObjectException
- if a problem occurred in the client-side
business objectspublic ObjectId getCodeTypeObjectId() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic void setCodeTypeObjectId(ObjectId o) throws BusinessObjectException
o
- the value to set this field toBusinessObjectException
- if a problem occurred in the client-side business objectspublic ObjectId getParentObjectId() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic void setParentObjectId(ObjectId o) throws BusinessObjectException
o
- the value to set this field toBusinessObjectException
- if a problem occurred in the client-side business objectspublic ObjectId getObjectId() throws BusinessObjectException
getObjectId
in class BusinessObject
BusinessObjectException
- if a problem occurred in the client-side business objectspublic void setObjectId(ObjectId o) throws BusinessObjectException
setObjectId
in class BusinessObject
o
- the value to set this field toBusinessObjectException
- if a problem occurred in the client-side business objectspublic int getSequenceNumber() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic void setSequenceNumber(int i) throws BusinessObjectException
i
- the value to set this field toBusinessObjectException
- if a problem occurred in the client-side business objectspublic String getCodeValue() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic void setCodeValue(String s) throws BusinessObjectException
s
- the value to set this field toBusinessObjectException
- if a problem occurred in the client-side business objectspublic String getDescription() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic void setDescription(String s) throws BusinessObjectException
s
- the value to set this field toBusinessObjectException
- if a problem occurred in the client-side business objectspublic String getCodeTypeName() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic Date getCreateDate() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic Date getLastUpdateDate() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic String getCreateUser() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic String getLastUpdateUser() throws BusinessObjectException
BusinessObjectException
- if a problem occurred in the client-side business objectspublic static String[] getRequiredCreateFields()
public static String[] getFilterableFields()
public static String[] getInternalDefaultLoadFields()
public static String[] getAllFields()
public static String[] getInternalAllFields()
public static Set<String> getInternalAllFieldsSet()
public static String[] getWritableFields()
@Deprecated public static String[] getDefaultXMLExportFields()
public static String[] getMinimumXMLExportFields()
public String toString()
public ObjectId create() throws ServerException, NetworkException, BusinessObjectException
ServerException
- if a problem occurred on the server-sideNetworkException
- if a problem occurred in the network layerBusinessObjectException
- if a problem occurred in the client-side business objectspublic static ObjectId[] create(Session session, ResourceAssignmentCode[] resourceassignmentcodes) throws ServerException, NetworkException, BusinessObjectException
session
- the Session objectresourceassignmentcodes
- array of ResourceAssignmentCode objects to createServerException
- if a problem occurred on the server-sideNetworkException
- if a problem occurred in the network layerBusinessObjectException
- if a problem occurred in the client-side business objectspublic static ResourceAssignmentCode load(Session session, String[] fields, ObjectId objId) throws ServerException, NetworkException, BusinessObjectException
session
- the Session objectfields
- fields to loadobjId
- unique ID of the ResourceAssignmentCode objectServerException
- if a problem occurred on the server-sideNetworkException
- if a problem occurred in the network layerBusinessObjectException
- if a problem occurred in the client-side business objectspublic static BOIterator<ResourceAssignmentCode> load(Session session, String[] fields, ObjectId[] objIds) throws ServerException, NetworkException, BusinessObjectException
session
- the Session objectfields
- fields to loadobjIds
- object ids of the ResourceAssignmentCode objectsServerException
- if a problem occurred on the server-sideNetworkException
- if a problem occurred in the network layerBusinessObjectException
- if a problem occurred in the client-side business objectspublic void update() throws ServerException, NetworkException, BusinessObjectException
update
in class com.primavera.integration.client.BOBase
ServerException
- if a problem occurred on the server-sideNetworkException
- if a problem occurred in the network layerBusinessObjectException
- if a problem occurred in the client-side business objectspublic static void update(Session session, ResourceAssignmentCode[] resourceassignmentcodes) throws ServerException, NetworkException, BusinessObjectException
session
- the Session objectresourceassignmentcodes
- array of ResourceAssignmentCode objects to updateServerException
- if a problem occurred on the server-sideNetworkException
- if a problem occurred in the network layerBusinessObjectException
- if a problem occurred in the client-side business objectspublic void delete() throws ServerException, NetworkException, BusinessObjectException
delete
in class com.primavera.integration.client.BOBase
ServerException
- if a problem occurred on the server-sideNetworkException
- if a problem occurred in the network layerBusinessObjectException
- if a problem occurred in the client-side business objectspublic static void delete(Session session, ResourceAssignmentCode[] resourceassignmentcodes) throws ServerException, NetworkException, BusinessObjectException
session
- the Session objectresourceassignmentcodes
- array of ResourceAssignmentCode objects to deleteServerException
- if a problem occurred on the server-sideNetworkException
- if a problem occurred in the network layerBusinessObjectException
- if a problem occurred in the client-side business objectsCopyright © 2003, 2021, Oracle and/or its affiliates.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.