public class ResourceCode
extends com.primavera.integration.client.bo.base.ResourceCodeBase
Resource codes are user-defined codes to classify and categorize resources across the enterprise. They are defined globally.
With potentially hundreds of resources being used across an enterprise of projects, codes provide another method for filtering the resources you need to access quickly, or for grouping resources for analysis and summarization in layouts. You can also use resource codes to group, sort, and filter resources in profiles and spreadsheets.
See Also: Quick reference of ResourceCode fields
Constructor and Description |
---|
ResourceCode(Session session)
Class constructor specifying the Session.
|
ResourceCode(Session session,
ObjectId objId)
Class constructor specifying the Session and ObjectId of the object.
|
ResourceCode(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 ResourceCode object in the database.
|
static ObjectId[] |
create(Session session,
ResourceCode[] resourcecodes)
Creates multiple ResourceCode objects in the database.
|
ObjectId |
createResourceCodeChild(ResourceCode resourcecodechild)
Creates an associated ResourceCode object in the database.
|
ObjectId[] |
createResourceCodeChildren(ResourceCode[] resourcecodechildren)
Creates multiple associated ResourceCode objects in the database.
|
void |
delete()
Deletes this ResourceCode object from the database.
|
static void |
delete(Session session,
ResourceCode[] resourcecodes)
Deletes multiple ResourceCode objects from the database.
|
static String[] |
getAllFields()
Gets all fields for this business object.
|
String |
getCodeConcatName()
Gets the value of the resource code.
|
String |
getCodeTypeName()
Gets the name of the parent code type for this code.
|
ObjectId |
getCodeTypeObjectId()
Gets the unique ID of the parent resource code type.
|
String |
getCodeValue()
Gets the value of the resource code.
|
Date |
getCreateDate()
Gets the date this resource code was created.
|
String |
getCreateUser()
Gets the name of the user that created this resource code.
|
static String[] |
getDefaultXMLExportFields()
Deprecated.
|
String |
getDescription()
Gets the description of the resource 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 resource code was last updated.
|
String |
getLastUpdateUser()
Gets the name of the user that last updated this resource 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 resource code of this resource 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 ResourceCode |
load(Session session,
String[] fields,
ObjectId objId)
Loads a single ResourceCode object from the database.
|
static BOIterator<ResourceCode> |
load(Session session,
String[] fields,
ObjectId[] objIds)
Loads multiple ResourceCode objects from the database.
|
ResourceCode |
loadParentResourceCode(String[] fields)
Loads an associated ResourceCode object from the database.
|
BOIterator<ResourceCodeAssignment> |
loadResourceCodeAssignments(String[] fields,
String sWhereClause,
String sOrderBy)
Loads multiple associated ResourceCodeAssignment objects from the database.
|
BOIterator<ResourceCode> |
loadResourceCodeChildren(String[] fields,
String sWhereClause,
String sOrderBy)
Loads multiple associated ResourceCode objects from the database.
|
ResourceCodeType |
loadResourceCodeType(String[] fields)
Loads an associated ResourceCodeType object from the database.
|
BOIterator<Resource> |
loadResources(String[] fields,
String sWhereClause,
String sOrderBy)
Load the Resource objects to which this resource code is assigned.
|
void |
setCodeTypeObjectId(ObjectId o)
Sets the unique ID of the parent resource code type.
|
void |
setCodeValue(String s)
Sets the value of the resource code.
|
void |
setDescription(String s)
Sets the description of the resource code.
|
void |
setObjectId(ObjectId o)
Sets the unique ID generated by the system.
|
void |
setParentObjectId(ObjectId o)
Sets the unique ID of the parent resource code of this resource 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 ResourceCode object in the database.
|
static void |
update(Session session,
ResourceCode[] resourcecodes)
Updates multiple ResourceCode objects in the database.
|
equals, getMaxFieldLength, getValue, getValue, hashCode, isNull, setEarlyDate, setNull
public ResourceCode(Session session)
session
- the Sessionpublic ResourceCode(Session session, ObjectId objId) throws BusinessObjectException
session
- the SessionobjId
- the ObjectIdBusinessObjectException
- if a problem occurred in the client-side business objectspublic ResourceCode(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 ResourceCodeType loadResourceCodeType(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 ResourceCode loadParentResourceCode(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 createResourceCodeChild(ResourceCode resourcecodechild) throws ServerException, NetworkException, BusinessObjectException
resourcecodechild
- ResourceCodeChild 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[] createResourceCodeChildren(ResourceCode[] resourcecodechildren) throws ServerException, NetworkException, BusinessObjectException
resourcecodechildren
- array of ResourceCodeChild 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<ResourceCode> loadResourceCodeChildren(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<ResourceCodeAssignment> loadResourceCodeAssignments(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<Resource> loadResources(String[] fields, String sWhereClause, String sOrderBy) throws ServerException, NetworkException, BusinessObjectException
loadResources
in class com.primavera.integration.client.bo.base.ResourceCodeBase
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 String getCodeConcatName() 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, ResourceCode[] resourcecodes) throws ServerException, NetworkException, BusinessObjectException
session
- the Session objectresourcecodes
- array of ResourceCode 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 ResourceCode load(Session session, String[] fields, ObjectId objId) throws ServerException, NetworkException, BusinessObjectException
session
- the Session objectfields
- fields to loadobjId
- unique ID of the ResourceCode 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<ResourceCode> load(Session session, String[] fields, ObjectId[] objIds) throws ServerException, NetworkException, BusinessObjectException
session
- the Session objectfields
- fields to loadobjIds
- object ids of the ResourceCode 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, ResourceCode[] resourcecodes) throws ServerException, NetworkException, BusinessObjectException
session
- the Session objectresourcecodes
- array of ResourceCode 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, ResourceCode[] resourcecodes) throws ServerException, NetworkException, BusinessObjectException
session
- the Session objectresourcecodes
- array of ResourceCode 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, 2024, Oracle and/or its affiliates.
Oracle®, Java, and MySQL are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.