Class GlobalReplace
java.lang.Object
com.primavera.integration.client.BOBase
com.primavera.integration.client.bo.BusinessObject
com.primavera.integration.client.bo.object.GlobalReplace
Use this class to specify the template for Global replace.
See Also: Quick reference of GlobalReplace fields
-
Constructor Summary
ConstructorsConstructorDescriptionGlobalReplace(Session session) Class constructor specifying the Session.GlobalReplace(Session session, ObjectId objId) Class constructor specifying the Session and ObjectId of the object.GlobalReplace(Session session, com.primavera.infr.db.PrmRowSet rowSet, int iIndex) Class constructor called internally after objects are retrieved from the server. -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]Gets all fields for this business object.booleanGets the option used to set if all projects user has access is selected.static String[]Deprecated.static String[]Gets all fields that can be filtered.Gets the GReplace Template Blob.Gets the Global Replace Template name.Gets the unique ID of the GReplace Template.static String[]An internal method that should not be called directly by client code.An internal method that should not be called directly by client code.static String[]An internal method that should not be called directly by client code.static String[]Gets all fields that are always exported at a minimum by the new flat XML exporterGets comma seperated Project Ids and Names.Gets comma seperated Project Ids.Gets first replace field name.Gets criteria to search and load the BOs.Gets the name of the object to be updated.Gets the unique ID of the associated user.static String[]Gets all writable fields for this business object.static GlobalReplaceLoads a single GlobalReplace object from the database.static BOIterator<GlobalReplace>Loads multiple GlobalReplace objects from the database.voidsetAllProjects(boolean b) Sets the option used to set if all projects user has access is selected.voidSets the GReplace Template Blob.voidSets the Global Replace Template name.voidSets the unique ID of the GReplace Template.voidSets comma seperated Project Ids and Names.voidSets comma seperated Project Ids.voidSets first replace field name.voidSets criteria to search and load the BOs.voidSets the name of the object to be updated.voidSets the unique ID of the associated user.toString()Returns a string representation of the object.voidupdate()Updates this GlobalReplace object in the database.static voidupdate(Session session, GlobalReplace[] globalreplace) Updates multiple GlobalReplace objects in the database.Methods inherited from class com.primavera.integration.client.bo.BusinessObject
equals, getMaxFieldLength, getObjectId, getValue, getValue, hashCode, isNull, setEarlyDate, setNull, setObjectIdMethods inherited from class com.primavera.integration.client.BOBase
combineFields
-
Constructor Details
-
GlobalReplace
Class constructor specifying the Session. This constructor is most commonly used when create() is intended to be called on this object.- Parameters:
session- the Session
-
GlobalReplace
Class constructor specifying the Session and ObjectId of the object. This constructor is most commonly used when update() will be called on this object.- Parameters:
session- the SessionobjId- the ObjectId- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
GlobalReplace
public GlobalReplace(Session session, com.primavera.infr.db.PrmRowSet rowSet, int iIndex) throws BusinessObjectException Class constructor called internally after objects are retrieved from the server. Client code should use one of the other constructors for this class.- Parameters:
session- the SessionrowSet- the PrmRowSet retrieved from the serveriIndex- the row index in the PrmRowSet associated with this business object- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
-
Method Details
-
getGreplaceObjectId
Gets the unique ID of the GReplace Template. This field is automatically loaded by default whenever this type of business object is loaded from the database.- Returns:
- the value in the field GreplaceObjectId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setGreplaceObjectId
Sets the unique ID of the GReplace Template. This field is automatically loaded by default whenever this type of business object is loaded from the database.- Parameters:
o- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getGlobalReplaceName
Gets the Global Replace Template name. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field GlobalReplaceName
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setGlobalReplaceName
Sets the Global Replace Template name. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
s- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getGlobalReplaceData
Gets the GReplace Template Blob. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field GlobalReplaceData
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setGlobalReplaceData
Sets the GReplace Template Blob. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
s- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getUserObjectId
Gets the unique ID of the associated user.- Returns:
- the value in the field UserObjectId
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setUserObjectId
Sets the unique ID of the associated user.- Parameters:
o- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getSubjectAreaType
Gets the name of the object to be updated. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field SubjectAreaType
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setSubjectAreaType
Sets the name of the object to be updated. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
s- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getSearchCriteria
Gets criteria to search and load the BOs. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field SearchCriteria
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setSearchCriteria
Sets criteria to search and load the BOs. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
s- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getReplaceFieldNameOne
Gets first replace field name. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field ReplaceFieldNameOne
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setReplaceFieldNameOne
Sets first replace field name. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
s- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getAllProjects
Gets the option used to set if all projects user has access is selected. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field AllProjects
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setAllProjects
Sets the option used to set if all projects user has access is selected. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
b- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getProjectIds
Gets comma seperated Project Ids. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field ProjectIds
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setProjectIds
Sets comma seperated Project Ids. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
s- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getProjectIdName
Gets comma seperated Project Ids and Names. This field may not be included in the where clause or order by clause specified when loading business objects.- Returns:
- the value in the field ProjectIdName
- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
setProjectIdName
Sets comma seperated Project Ids and Names. This field may not be included in the where clause or order by clause specified when loading business objects.- Parameters:
s- the value to set this field to- Throws:
BusinessObjectException- if a problem occurred in the client-side business objects
-
getFilterableFields
Gets all fields that can be filtered.- Returns:
- String[] an array of filterable fields
-
getInternalDefaultLoadFields
An internal method that should not be called directly by client code.- Returns:
- String[] an internal array
-
getAllFields
Gets all fields for this business object.- Returns:
- String[] an array of all fields
-
getInternalAllFields
An internal method that should not be called directly by client code.- Returns:
- String[] an internal array
-
getInternalAllFieldsSet
An internal method that should not be called directly by client code.- Returns:
- String[] an internal array
-
getWritableFields
Gets all writable fields for this business object.- Returns:
- String[] an array of writable fields
-
getDefaultXMLExportFields
Deprecated.Gets the fields that are exported by the hierarchical XML exporter when no fields are specified. This method is no longer relevant since the hierarchical XML exporter has been replaced by the flat XML exporter.- Returns:
- String[] an array of field names
-
getMinimumXMLExportFields
Gets all fields that are always exported at a minimum by the new flat XML exporter- Returns:
- String[] an array of exported fields
-
toString
Returns a string representation of the object. The output is in XML. -
load
public static GlobalReplace load(Session session, String[] fields, ObjectId objId) throws ServerException, NetworkException, BusinessObjectException Loads a single GlobalReplace object from the database.- Parameters:
session- the Session objectfields- fields to loadobjId- unique ID of the GlobalReplace object- Returns:
- GlobalReplace the GlobalReplace 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
-
load
public static BOIterator<GlobalReplace> load(Session session, String[] fields, ObjectId[] objIds) throws ServerException, NetworkException, BusinessObjectException Loads multiple GlobalReplace objects from the database.- Parameters:
session- the Session objectfields- fields to loadobjIds- object ids of the GlobalReplace 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
-
update
Updates this GlobalReplace object in the database.- 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 static void update(Session session, GlobalReplace[] globalreplace) throws ServerException, NetworkException, BusinessObjectException Updates multiple GlobalReplace objects in the database.- Parameters:
session- the Session objectglobalreplace- array of GlobalReplace objects to update- 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
-