Package com.primavera.integration.util
Class BODeleteHelper
java.lang.Object
com.primavera.integration.util.BODeleteHelper
This helper class is used to delete multiple business objects from the database in the ideal
order. Business objects are deleted in the opposite order from which they were added to this
object, i.e., the last objects added will be the first objects deleted.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(BusinessObject bo) Adds an object to eventually be deleted from the databasevoidadd(BusinessObject[] bos) Adds multiple objects to eventually be deleted from the databasevoidAdds an ObjectId for a particular business object type to eventually be deleted from the databasevoidAdds multiple ObjectIds for a particular business object type to eventually be deleted from the databasevoidDeletes from the database all the business objects of a particular type that were added to this object.voidDeletes from the database all the business objects that were added to this objectvoidreset()Clears all the objects added without deleting any objects from the database.toString()Returns a string representation of the object, listing counts of object types currently contained.
-
Constructor Details
-
BODeleteHelper
public BODeleteHelper()Class constructor
-
-
Method Details
-
add
Adds an ObjectId for a particular business object type to eventually be deleted from the database- Parameters:
sBOType- the business object typeobjId- the related ObjectId- Throws:
IllegalArgumentException- if a parameter is null
-
add
Adds multiple ObjectIds for a particular business object type to eventually be deleted from the database- Parameters:
sBOType- the business object typeobjIds- the related ObjectIds- Throws:
IllegalArgumentException- if a parameter is null
-
add
Adds an object to eventually be deleted from the database- Parameters:
bo- the business object
-
add
Adds multiple objects to eventually be deleted from the database- Parameters:
bos- the business objects
-
reset
public void reset()Clears all the objects added without deleting any objects from the database. -
toString
Returns a string representation of the object, listing counts of object types currently contained. -
deleteAll
Deletes from the database all the business objects that were added to this object- Parameters:
session- the Session object
-
delete
public void delete(Session session, String sBOType) throws ServerException, NetworkException, BusinessObjectException Deletes from the database all the business objects of a particular type that were added to this object. Business objects are deleted in the opposite order from which they were added to this object, i.e., the last objects added will be the first- Parameters:
session- the Session objectsBOType- the business object type- Throws:
ServerException- if a problem occurred on the server-sideNetworkException- if a problem occurred in the network layerBusinessObjectException- if the type is invalid or may not be deletedIllegalArgumentException- if a parameter is null
-