|
Primavera Integration API 7.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.primavera.integration.util.BODeleteHelper
public class 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 | |
---|---|
BODeleteHelper()
Class constructor |
Method Summary | |
---|---|
void |
add(BusinessObject bo)
Adds an object to eventually be deleted from the database |
void |
add(BusinessObject[] bos)
Adds multiple objects to eventually be deleted from the database |
void |
add(java.lang.String sBOType,
ObjectId objId)
Adds an ObjectId for a particular business object type to eventually be deleted from the database |
void |
add(java.lang.String sBOType,
ObjectId[] objIds)
Adds multiple ObjectIds for a particular business object type to eventually be deleted from the database |
void |
delete(Session session,
java.lang.String sBOType)
Deletes from the database all the business objects of a particular type that were added to this object. |
void |
deleteAll(Session session)
Deletes from the database all the business objects that were added to this object |
void |
reset()
Clears all the objects added without deleting any objects from the database. |
java.lang.String |
toString()
Returns a string representation of the object, listing counts of object types currently contained. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BODeleteHelper()
Method Detail |
---|
public void add(java.lang.String sBOType, ObjectId objId)
sBOType
- the business object typeobjId
- the related ObjectId
java.lang.IllegalArgumentException
- if a parameter is nullpublic void add(java.lang.String sBOType, ObjectId[] objIds)
sBOType
- the business object typeobjIds
- the related ObjectIds
java.lang.IllegalArgumentException
- if a parameter is nullpublic void add(BusinessObject bo)
bo
- the business objectpublic void add(BusinessObject[] bos)
bos
- the business objectspublic void reset()
public java.lang.String toString()
toString
in class java.lang.Object
public void deleteAll(Session session)
session
- the Session objectpublic void delete(Session session, java.lang.String sBOType) throws ServerException, NetworkException, BusinessObjectException
session
- the Session objectsBOType
- the business object type
ServerException
- if a problem occurred on the server-side
NetworkException
- if a problem occurred in the network layer
BusinessObjectException
- if the type is invalid or may not be deleted
java.lang.IllegalArgumentException
- if a parameter is null
|
Primavera Integration API 7.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |