Primavera Integration API Release 8

com.primavera.integration.client.bo.helper
Class RiskMatrixHelper

java.lang.Object
  extended by com.primavera.integration.client.BOHelperBase
      extended by com.primavera.integration.client.bo.BOHelperImpl<RiskMatrix>
          extended by com.primavera.integration.client.bo.helper.RiskMatrixHelper
All Implemented Interfaces:
BOHelper<RiskMatrix>, com.primavera.integration.client.bo.InternalBOHelper<RiskMatrix>

public class RiskMatrixHelper
extends com.primavera.integration.client.bo.BOHelperImpl<RiskMatrix>
implements com.primavera.integration.client.bo.InternalBOHelper<RiskMatrix>

Business object helper class used to simplify access to RiskMatrix objects.


Method Summary
 ObjectId[] create(Session session, List<? extends BusinessObject> alObjects)
          Creates multiple business objects of this type in the database.
 RiskMatrix[] createBusinessObjectArray(int iSize)
          Creates an array of a particular business object type.
 void delete(Session session, List<? extends BusinessObject> alObjects)
          Deletes business objects of this type.
 void delete(Session session, List<? extends BusinessObject> alObjects, ObjectId replacementParent)
          Deletes business objects of this type, specifying a replacement parent
 String[] getAllFields()
          Gets all non-code and non-UDF fields for this business object
 String[] getFilterableFields()
          Gets all non-code and non-UDF fields for this business object.
 String[] getInternalDefaultLoadFields()
          An internal method that should not be called directly by client code.
 String[] getMainFields()
          Gets all fields that are not code, UDF, or summary fields.
 String[] getMinimumXMLExportFields()
          Gets all fields that are always exported at a minimum by the new flat XML exporter
 String[] getRequiredCreateFields()
          Gets all fields that are filterable.
 String[] getWritableFields()
          Gets all writable non-code and non-UDF fields for this business object
 BOIterator<RiskMatrix> load(Session session, BusinessObject boParent, String[] fields, String sWhereClause, String sOrderBy)
          Loads business objects of this type from a given parent.
 BOIterator<RiskMatrix> load(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.
 RiskMatrix load(Session session, String[] fields, ObjectId objId)
          Loads a business object of this type by ObjectId.
 BOIterator<RiskMatrix> load(Session session, String[] fields, ObjectId[] objIds)
          Loads multiple business objects of this type by ObjectId.
 BOIterator<RiskMatrix> load(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.
 BOIterator<RiskMatrix> 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.
 RiskMatrix 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.
 RiskMatrix newBusinessObject(Session session, ObjectId objectId)
          Creates a new client-side instance of this type of business object and sets its unique ID.
 void update(Session session, List<? extends BusinessObject> alObjects)
          Updates business objects of this type.
 
Methods 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, 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, update
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.primavera.integration.client.bo.InternalBOHelper
create, delete, getBODef, getDrivingReferences, getEnumDefaultValue, getEnumObject, getFillDownFields, getLoggingFieldName, getMaxFieldLengthMap, getNonDrivingReferences, getReferencedObject, getUserDefinedFieldLengthLimits, getVarCharLengths, getWSDLGroup, hasField, internalGetValue, internalSetValue, isNullableField, newBusinessObject, setRawValue, setRawValue, update
 
Methods 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, supportsUDFCode
 

Method Detail

getRequiredCreateFields

public String[] getRequiredCreateFields()
Description copied from interface: BOHelper
Gets all fields that are filterable.

Specified by:
getRequiredCreateFields in interface BOHelper<RiskMatrix>
Specified by:
getRequiredCreateFields in class com.primavera.integration.client.bo.BOHelperImpl<RiskMatrix>
Returns:
String[] an array of filterable fields

getAllFields

public String[] getAllFields()
Description copied from interface: BOHelper
Gets all non-code and non-UDF fields for this business object

Specified by:
getAllFields in interface BOHelper<RiskMatrix>
Specified by:
getAllFields in class com.primavera.integration.client.bo.BOHelperImpl<RiskMatrix>
Returns:
String[] an array of all non-code and non-UDF fields

getFilterableFields

public String[] getFilterableFields()
Description copied from interface: BOHelper
Gets all non-code and non-UDF fields for this business object.

Specified by:
getFilterableFields in interface BOHelper<RiskMatrix>
Specified by:
getFilterableFields in class com.primavera.integration.client.bo.BOHelperImpl<RiskMatrix>
Returns:
String[] an array of all non-code fields

getWritableFields

public String[] getWritableFields()
Description copied from interface: BOHelper
Gets all writable non-code and non-UDF fields for this business object

Specified by:
getWritableFields in interface BOHelper<RiskMatrix>
Specified by:
getWritableFields in class com.primavera.integration.client.bo.BOHelperImpl<RiskMatrix>
Returns:
String[] an array of all writable non-code and non-UDF fields

getInternalDefaultLoadFields

public String[] getInternalDefaultLoadFields()
An internal method that should not be called directly by client code.

Specified by:
getInternalDefaultLoadFields in interface com.primavera.integration.client.bo.InternalBOHelper<RiskMatrix>
Specified by:
getInternalDefaultLoadFields in class com.primavera.integration.client.bo.BOHelperImpl<RiskMatrix>
Returns:
String[] an internal array

getMinimumXMLExportFields

public String[] getMinimumXMLExportFields()
Description copied from interface: BOHelper
Gets all fields that are always exported at a minimum by the new flat XML exporter

Specified by:
getMinimumXMLExportFields in interface BOHelper<RiskMatrix>
Specified by:
getMinimumXMLExportFields in class com.primavera.integration.client.bo.BOHelperImpl<RiskMatrix>
Returns:
String[] an array of exported fields

getMainFields

public String[] getMainFields()
Description copied from interface: BOHelper
Gets all fields that are not code, UDF, or summary fields. Code types assigned and UDF types assigned fields are also not included.

Specified by:
getMainFields in interface BOHelper<RiskMatrix>
Specified by:
getMainFields in class com.primavera.integration.client.bo.BOHelperImpl<RiskMatrix>
Returns:
String[] an array of all non-code fields

newBusinessObject

public RiskMatrix newBusinessObject(Session session)
Description copied from interface: BOHelper
Creates a new client-side instance of this type of business object; call create() on the object to add it to the database.

Specified by:
newBusinessObject in interface BOHelper<RiskMatrix>
Specified by:
newBusinessObject in class com.primavera.integration.client.bo.BOHelperImpl<RiskMatrix>
Parameters:
session - the current session
Returns:
BusinessObject a client-side business object

newBusinessObject

public RiskMatrix newBusinessObject(Session session,
                                    ObjectId objectId)
                             throws BusinessObjectException
Description copied from interface: BOHelper
Creates a new client-side instance of this type of business object and sets its unique ID.

Specified by:
newBusinessObject in interface BOHelper<RiskMatrix>
Specified by:
newBusinessObject in class com.primavera.integration.client.bo.BOHelperImpl<RiskMatrix>
Parameters:
session - the current session
objectId - the ObjectId of the business object
Returns:
BusinessObject a client-side business object
Throws:
BusinessObjectException - if the object could not be created

createBusinessObjectArray

public RiskMatrix[] createBusinessObjectArray(int iSize)
Description copied from interface: BOHelper
Creates an array of a particular business object type. The returned array is of the specified size, but each index contains null.

Specified by:
createBusinessObjectArray in interface BOHelper<RiskMatrix>
Specified by:
createBusinessObjectArray in class com.primavera.integration.client.bo.BOHelperImpl<RiskMatrix>
Parameters:
iSize - the size of the array
Returns:
BusinessObject[] a business object array, initialized to this specific type

load

public BOIterator<RiskMatrix> 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:
load in interface com.primavera.integration.client.bo.InternalBOHelper<RiskMatrix>
Parameters:
session - the Session object
fields - fields to load
sWhereClause - the where clause
sOrderBy - the order by clause
options - an internal parameter
txId - 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-side
NetworkException - if a problem occurred in the network layer
BusinessObjectException - if a problem occurred in the client-side business objects

load

public BOIterator<RiskMatrix> 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:
load in interface com.primavera.integration.client.bo.InternalBOHelper<RiskMatrix>
Parameters:
session - the Session object
fields - fields to load
objIds - object ids of the business objects
options - an internal parameter
txId - 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-side
NetworkException - if a problem occurred in the network layer
BusinessObjectException - 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 interface: BOHelper
Creates multiple business objects of this type in the database.

Specified by:
create in interface BOHelper<RiskMatrix>
Specified by:
create in class com.primavera.integration.client.bo.BOHelperImpl<RiskMatrix>
Parameters:
session - the current session
alObjects - 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-side
NetworkException - if a problem occurred in the network layer
BusinessObjectException - if a problem occurred in the client-side business objects

load

public BOIterator<RiskMatrix> load(Session session,
                                   BusinessObject boParent,
                                   String[] fields,
                                   String sWhereClause,
                                   String sOrderBy)
                            throws ServerException,
                                   NetworkException,
                                   BusinessObjectException
Description copied from interface: BOHelper
Loads business objects of this type from a given parent.

Specified by:
load in interface BOHelper<RiskMatrix>
Specified by:
load in class com.primavera.integration.client.bo.BOHelperImpl<RiskMatrix>
Parameters:
session - the current session
boParent - the parent business object
fields - the fields to load
sWhereClause - the where clause
sOrderBy - 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-side
NetworkException - if a problem occurred in the network layer
BusinessObjectException - if a problem occurred in the client-side business objects

load

public BOIterator<RiskMatrix> 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:
load in interface com.primavera.integration.client.bo.InternalBOHelper<RiskMatrix>
Parameters:
session - the current session
boParent - the parent business object
fields - the fields to load
sWhereClause - the where clause
sOrderBy - the order by clause
txId - 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-side
NetworkException - if a problem occurred in the network layer
BusinessObjectException - if a problem occurred in the client-side business objects

load

public BOIterator<RiskMatrix> load(Session session,
                                   String[] fields,
                                   ObjectId[] objIds)
                            throws ServerException,
                                   NetworkException,
                                   BusinessObjectException
Description copied from interface: BOHelper
Loads multiple business objects of this type by ObjectId.

Specified by:
load in interface BOHelper<RiskMatrix>
Specified by:
load in class com.primavera.integration.client.bo.BOHelperImpl<RiskMatrix>
Parameters:
session - the Session object
fields - fields to load
objIds - 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-side
NetworkException - if a problem occurred in the network layer
BusinessObjectException - if a problem occurred in the client-side business objects

load

public RiskMatrix load(Session session,
                       String[] fields,
                       ObjectId objId)
                throws ServerException,
                       NetworkException,
                       BusinessObjectException
Description copied from interface: BOHelper
Loads a business object of this type by ObjectId.

Specified by:
load in interface BOHelper<RiskMatrix>
Specified by:
load in class com.primavera.integration.client.bo.BOHelperImpl<RiskMatrix>
Parameters:
session - the Session object
fields - fields to load
objId - object id of the business object
Returns:
BusinessObject business object of the type
Throws:
ServerException - if a problem occurred on the server-side
NetworkException - if a problem occurred in the network layer
BusinessObjectException - 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 interface: BOHelper
Updates business objects of this type.

Specified by:
update in interface BOHelper<RiskMatrix>
Specified by:
update in class com.primavera.integration.client.bo.BOHelperImpl<RiskMatrix>
Parameters:
session - the current session
alObjects - a list of objects to update, all of this type
Throws:
ServerException - if a problem occurred on the server-side
NetworkException - if a problem occurred in the network layer
BusinessObjectException - 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 interface: BOHelper
Deletes business objects of this type.

Specified by:
delete in interface BOHelper<RiskMatrix>
Specified by:
delete in class com.primavera.integration.client.bo.BOHelperImpl<RiskMatrix>
Parameters:
session - the current session
alObjects - a list of objects to delete, all of this type
Throws:
ServerException - if a problem occurred on the server-side
NetworkException - if a problem occurred in the network layer
BusinessObjectException - 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 interface: BOHelper
Deletes business objects of this type, specifying a replacement parent

Specified by:
delete in interface BOHelper<RiskMatrix>
Specified by:
delete in class com.primavera.integration.client.bo.BOHelperImpl<RiskMatrix>
Parameters:
session - the current session
alObjects - a list of objects to delete, all of this type
replacementParent - replacement parent object
Throws:
ServerException - if a problem occurred on the server-side
NetworkException - if a problem occurred in the network layer
BusinessObjectException - if a problem occurred in the client-side business objects

Primavera Integration API Release 8

Copyright © 2003, 2010, Oracle and/or its affiliates. All rights reserved.