public class BODeleteHelper extends Object
Constructor and Description |
---|
BODeleteHelper()
Class constructor
|
Modifier and Type | Method and Description |
---|---|
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(String sBOType,
ObjectId objId)
Adds an ObjectId for a particular business object type to eventually be deleted from the
database
|
void |
add(String sBOType,
ObjectId[] objIds)
Adds multiple ObjectIds for a particular business object type to eventually be deleted from
the database
|
void |
delete(Session session,
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.
|
String |
toString()
Returns a string representation of the object, listing counts of object types currently
contained.
|
public void add(String sBOType, ObjectId objId)
sBOType
- the business object typeobjId
- the related ObjectIdIllegalArgumentException
- if a parameter is nullpublic void add(String sBOType, ObjectId[] objIds)
sBOType
- the business object typeobjIds
- the related ObjectIdsIllegalArgumentException
- if a parameter is nullpublic void add(BusinessObject bo)
bo
- the business objectpublic void add(BusinessObject[] bos)
bos
- the business objectspublic void reset()
public String toString()
public void deleteAll(Session session)
session
- the Session objectpublic void delete(Session session, String sBOType) throws ServerException, NetworkException, BusinessObjectException
session
- the Session objectsBOType
- the business object typeServerException
- 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 nullCopyright © 2003, 2024, Oracle and/or its affiliates.
Oracle®, Java, and MySQL are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.