Class EPSNoteHelper
java.lang.Object
com.primavera.integration.client.BOHelperBase
com.primavera.integration.client.bo.BOHelperImpl<EPSNote>
com.primavera.integration.client.bo.helper.EPSNoteHelper
- All Implemented Interfaces:
BOHelper<EPSNote>,com.primavera.integration.client.bo.InternalBOHelper<EPSNote>
public class EPSNoteHelper
extends com.primavera.integration.client.bo.BOHelperImpl<EPSNote>
implements com.primavera.integration.client.bo.InternalBOHelper<EPSNote>
Business object helper class used to simplify access to EPSNote objects.
-
Method Summary
Modifier and TypeMethodDescriptionObjectId[]create(Session session, List<? extends BusinessObject> alObjects) Creates multiple business objects of this type in the databaseEPSNote[]createBusinessObjectArray(int iSize) Creates an array of a particular business object type.voiddelete(Session session, List<? extends BusinessObject> alObjects) Deletes business objects of this typevoiddelete(Session session, List<? extends BusinessObject> alObjects, ObjectId replacementParent) Deletes business objects of this type, specifying a replacement parentString[]Gets all non-code and non-UDF fields for this business objectString[]Gets all fields that are filterable.String[]An internal method that should not be called directly by client code.String[]Gets all fields that are not code, UDF, or summary fields.String[]Gets all fields that are always exported at a minimum by the new flat XML exporterString[]Gets all fields that must be set before calling create() on this type of business object.String[]Gets all writable non-code and non-UDF fields for this business objectload(Session session, BusinessObject boParent, String[] fields, String sWhereClause, String sOrderBy) Loads business objects of this type from a given parentload(Session session, BusinessObject boParent, String[] fields, String sWhereClause, String sOrderBy, com.primavera.bo.common.PRequestOptions options, com.primavera.bo.base.RemoteTXId txId) An internal load method that should not be called directly from client code.Loads a business object of this type by ObjectId.Loads multiple business objects of this type by ObjectIdload(Session session, String[] fields, ObjectId[] objIds, com.primavera.bo.common.PRequestOptions options, com.primavera.bo.base.RemoteTXId txId) An internal load method that should not be called directly from client code.load(Session session, String[] fields, String sWhereClause, String sOrderBy, com.primavera.bo.common.PRequestOptions options, com.primavera.bo.base.RemoteTXId txId) An internal load method that should not be called directly from client code.newBusinessObject(Session session) Creates a new client-side instance of this type of business object; call create() on the object to add it to the database.newBusinessObject(Session session, ObjectId objectId) Creates a new client-side instance of this type of business object and sets its unique IDvoidupdate(Session session, List<? extends BusinessObject> alObjects) Updates business objects of this typeMethods inherited from class com.primavera.integration.client.bo.BOHelperImpl
canCreate, canDelete, canUpdate, create, delete, getAllParentClassNames, getBODef, getClassName, getClassNameFromObjectIdFieldName, getDefaultParentClassName, getDeleteAssociations, getDrivingReferences, getEnumDefaultValue, getEnumObject, getFieldType, getFillDownFields, getKeyFields, getLoadAssociations, getLoggingFieldName, getMaxFieldLength, getMaxFieldLengthMap, getNonDrivingReferences, getObjectIdFieldNames, getPluralName, getReferencedObject, getUserDefinedFieldLengthLimits, getValue, getValueAsObject, getVarCharLengths, getWSDLGroup, getWSDLVersion, hasField, hasFieldValue, hasMultiPartKey, internalGetValue, internalSetValue, isAssociatedClass, isField, isFilterableField, isGlobal, isHierarchical, isNullableField, isScriptableField, isSingular, isWritableField, newBusinessObject, newBusinessObject, setRawValue, setRawValue, setValue, setValues, supportsCodes, supportsLiveSpreads, supportsSummarizedSreads, supportsUDF, supportsUDFCode, updateMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.primavera.integration.client.bo.BOHelper
canCreate, canDelete, canUpdate, getAllParentClassNames, getClassName, getClassNameFromObjectIdFieldName, getDefaultParentClassName, getDeleteAssociations, getFieldType, getKeyFields, getLoadAssociations, getMaxFieldLength, getObjectIdFieldNames, getPluralName, getValue, getValueAsObject, hasFieldValue, hasMultiPartKey, isAssociatedClass, isField, isFilterableField, isGlobal, isHierarchical, isScriptableField, isSingular, isWritableField, newBusinessObject, setValue, setValues, supportsCodes, supportsLiveSpreads, supportsSummarizedSreads, supportsUDF, supportsUDFCodeMethods inherited from interface com.primavera.integration.client.bo.InternalBOHelper
create, delete, getBODef, getDrivingReferences, getEnumDefaultValue, getEnumObject, getFillDownFields, getLoggingFieldName, getMaxFieldLengthMap, getNonDrivingReferences, getReferencedObject, getUserDefinedFieldLengthLimits, getVarCharLengths, getWSDLGroup, getWSDLVersion, hasField, internalGetValue, internalSetValue, isNullableField, newBusinessObject, setRawValue, setRawValue, update
-
Method Details
-
getRequiredCreateFields
Description copied from class:com.primavera.integration.client.bo.BOHelperImplGets all fields that must be set before calling create() on this type of business object. Generally the array will contain one field in each position, but if this business object requires either one field or another field to be set, both of those fields will appear in an element of the returned array separated by '|'. For example, if this business object requires field A to always be set, and field B or field C to be set, one element in the returned array will contain A, and one element will contain B|C.- Specified by:
getRequiredCreateFieldsin interfaceBOHelper<EPSNote>- Specified by:
getRequiredCreateFieldsin classcom.primavera.integration.client.bo.BOHelperImpl<EPSNote>- Returns:
- String[] an array of required create fields
-
getAllFields
Description copied from class:com.primavera.integration.client.bo.BOHelperImplGets all non-code and non-UDF fields for this business object- Specified by:
getAllFieldsin interfaceBOHelper<EPSNote>- Specified by:
getAllFieldsin classcom.primavera.integration.client.bo.BOHelperImpl<EPSNote>- Returns:
- String[] an array of all non-code and non-UDF fields
-
getFilterableFields
Description copied from class:com.primavera.integration.client.bo.BOHelperImplGets all fields that are filterable.- Specified by:
getFilterableFieldsin interfaceBOHelper<EPSNote>- Specified by:
getFilterableFieldsin classcom.primavera.integration.client.bo.BOHelperImpl<EPSNote>- Returns:
- String[] an array of filterable fields
-
getWritableFields
Description copied from class:com.primavera.integration.client.bo.BOHelperImplGets all writable non-code and non-UDF fields for this business object- Specified by:
getWritableFieldsin interfaceBOHelper<EPSNote>- Specified by:
getWritableFieldsin classcom.primavera.integration.client.bo.BOHelperImpl<EPSNote>- Returns:
- String[] an array of all writable non-code and non-UDF fields
-
getInternalDefaultLoadFields
An internal method that should not be called directly by client code. -
getMinimumXMLExportFields
Description copied from class:com.primavera.integration.client.bo.BOHelperImplGets all fields that are always exported at a minimum by the new flat XML exporter- Specified by:
getMinimumXMLExportFieldsin interfaceBOHelper<EPSNote>- Specified by:
getMinimumXMLExportFieldsin classcom.primavera.integration.client.bo.BOHelperImpl<EPSNote>- Returns:
- String[] an array of exported fields
-
getMainFields
Description copied from class:com.primavera.integration.client.bo.BOHelperImplGets all fields that are not code, UDF, or summary fields. Code types assigned and UDF types assigned fields are also not included.- Specified by:
getMainFieldsin interfaceBOHelper<EPSNote>- Specified by:
getMainFieldsin classcom.primavera.integration.client.bo.BOHelperImpl<EPSNote>- Returns:
- String[] an array of all non-code fields
-
newBusinessObject
Description copied from class:com.primavera.integration.client.bo.BOHelperImplCreates a new client-side instance of this type of business object; call create() on the object to add it to the database.- Specified by:
newBusinessObjectin interfaceBOHelper<EPSNote>- Specified by:
newBusinessObjectin classcom.primavera.integration.client.bo.BOHelperImpl<EPSNote>- Parameters:
session- the current session- Returns:
- BusinessObject a client-side business object
-
newBusinessObject
Description copied from class:com.primavera.integration.client.bo.BOHelperImplCreates a new client-side instance of this type of business object and sets its unique ID- Specified by:
newBusinessObjectin interfaceBOHelper<EPSNote>- Specified by:
newBusinessObjectin classcom.primavera.integration.client.bo.BOHelperImpl<EPSNote>- Parameters:
session- the current sessionobjectId- the ObjectId of the business object- Returns:
- BusinessObject a client-side business object
- Throws:
BusinessObjectException- if the object could not be created
-
createBusinessObjectArray
Description copied from class:com.primavera.integration.client.bo.BOHelperImplCreates an array of a particular business object type. The returned array is of the specified size, but each index contains null.- Specified by:
createBusinessObjectArrayin interfaceBOHelper<EPSNote>- Specified by:
createBusinessObjectArrayin classcom.primavera.integration.client.bo.BOHelperImpl<EPSNote>- Parameters:
iSize- the size of the array- Returns:
- BusinessObject[] a business object array, initialized to this specific type
-
load
public BOIterator<EPSNote> load(Session session, String[] fields, String sWhereClause, String sOrderBy, com.primavera.bo.common.PRequestOptions options, com.primavera.bo.base.RemoteTXId txId) throws ServerException, NetworkException, BusinessObjectException An internal load method that should not be called directly from client code.- Specified by:
loadin interfacecom.primavera.integration.client.bo.InternalBOHelper<EPSNote>- Parameters:
session- the Session objectfields- fields to loadsWhereClause- the where clausesOrderBy- the order by clauseoptions- an internal parametertxId- an internal key- Returns:
- BOIterator a business object iterator used to get the results of the load request
- Throws:
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 objects
-
load
public BOIterator<EPSNote> load(Session session, String[] fields, ObjectId[] objIds, com.primavera.bo.common.PRequestOptions options, com.primavera.bo.base.RemoteTXId txId) throws ServerException, NetworkException, BusinessObjectException An internal load method that should not be called directly from client code.- Specified by:
loadin interfacecom.primavera.integration.client.bo.InternalBOHelper<EPSNote>- Parameters:
session- the Session objectfields- fields to loadobjIds- object ids of the business objectsoptions- an internal parametertxId- an internal key- Returns:
- BOIterator a business object iterator used to get the results of the load request
- Throws:
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 objects
-
create
public ObjectId[] create(Session session, List<? extends BusinessObject> alObjects) throws ServerException, NetworkException, BusinessObjectException Description copied from class:com.primavera.integration.client.bo.BOHelperImplCreates multiple business objects of this type in the database- Specified by:
createin interfaceBOHelper<EPSNote>- Specified by:
createin classcom.primavera.integration.client.bo.BOHelperImpl<EPSNote>- Parameters:
session- the current sessionalObjects- a list of objects to be created, all of this type- Returns:
- ObjectId[] the array of unique IDs of newly created business objects
- Throws:
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 objects
-
load
public BOIterator<EPSNote> load(Session session, BusinessObject boParent, String[] fields, String sWhereClause, String sOrderBy) throws ServerException, NetworkException, BusinessObjectException Description copied from class:com.primavera.integration.client.bo.BOHelperImplLoads business objects of this type from a given parent- Specified by:
loadin interfaceBOHelper<EPSNote>- Specified by:
loadin classcom.primavera.integration.client.bo.BOHelperImpl<EPSNote>- Parameters:
session- the current sessionboParent- the parent business objectfields- the fields to loadsWhereClause- the where clausesOrderBy- the order by clause- Returns:
- BOIterator a business object iterator used to get the results of the load request
- Throws:
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 objects
-
load
public BOIterator<EPSNote> load(Session session, BusinessObject boParent, String[] fields, String sWhereClause, String sOrderBy, com.primavera.bo.common.PRequestOptions options, com.primavera.bo.base.RemoteTXId txId) throws ServerException, NetworkException, BusinessObjectException An internal load method that should not be called directly from client code.- Specified by:
loadin interfacecom.primavera.integration.client.bo.InternalBOHelper<EPSNote>- Parameters:
session- the current sessionboParent- the parent business objectfields- the fields to loadsWhereClause- the where clausesOrderBy- the order by clausetxId- an internal key- Returns:
- BOIterator a business object iterator used to get the results of the load request
- Throws:
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 objects
-
load
public BOIterator<EPSNote> load(Session session, String[] fields, ObjectId[] objIds) throws ServerException, NetworkException, BusinessObjectException Description copied from class:com.primavera.integration.client.bo.BOHelperImplLoads multiple business objects of this type by ObjectId- Specified by:
loadin interfaceBOHelper<EPSNote>- Specified by:
loadin classcom.primavera.integration.client.bo.BOHelperImpl<EPSNote>- Parameters:
session- the Session objectfields- fields to loadobjIds- object ids of the business objects- Returns:
- BOIterator a business object iterator used to get the results of the load request
- Throws:
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 objects
-
load
public EPSNote load(Session session, String[] fields, ObjectId objId) throws ServerException, NetworkException, BusinessObjectException Description copied from class:com.primavera.integration.client.bo.BOHelperImplLoads a business object of this type by ObjectId.- Specified by:
loadin interfaceBOHelper<EPSNote>- Specified by:
loadin classcom.primavera.integration.client.bo.BOHelperImpl<EPSNote>- Parameters:
session- the Session objectfields- fields to loadobjId- object ids of the business object- Returns:
- T business object
- Throws:
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 objects
-
update
public void update(Session session, List<? extends BusinessObject> alObjects) throws ServerException, NetworkException, BusinessObjectException Description copied from class:com.primavera.integration.client.bo.BOHelperImplUpdates business objects of this type- Specified by:
updatein interfaceBOHelper<EPSNote>- Specified by:
updatein classcom.primavera.integration.client.bo.BOHelperImpl<EPSNote>- Parameters:
session- the current sessionalObjects- a list of objects to update, all of this type- Throws:
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 objects
-
delete
public void delete(Session session, List<? extends BusinessObject> alObjects) throws ServerException, NetworkException, BusinessObjectException Description copied from class:com.primavera.integration.client.bo.BOHelperImplDeletes business objects of this type- Specified by:
deletein interfaceBOHelper<EPSNote>- Specified by:
deletein classcom.primavera.integration.client.bo.BOHelperImpl<EPSNote>- Parameters:
session- the current sessionalObjects- a list of objects to delete, all of this type- Throws:
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 objects
-
delete
public void delete(Session session, List<? extends BusinessObject> alObjects, ObjectId replacementParent) throws ServerException, NetworkException, BusinessObjectException Description copied from class:com.primavera.integration.client.bo.BOHelperImplDeletes business objects of this type, specifying a replacement parent- Specified by:
deletein interfaceBOHelper<EPSNote>- Specified by:
deletein classcom.primavera.integration.client.bo.BOHelperImpl<EPSNote>- Parameters:
session- the current sessionalObjects- a list of objects to delete, all of this typereplacementParent- replacement parent object- Throws:
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 objects
-