Package wt.fc
Interface PersistenceManagerSvr
- All Known Implementing Classes:
StandardPersistenceManager
public interface PersistenceManagerSvr
The PersistenceManagerSvr interface identifies the set of PersistentManager
methods that are invokable only from classes running in the method server
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionintThis method executes a batch update or delete operation on the specified Batch Specification.query(StatementSpec a_statementSpec) Retrieves persistable objects from the datastore given the specified statement.voidquery(StatementSpec a_statementSpec, ResultProcessor a_resultProcessor) Retrieves persistable objects from the datastore for the specified statement.store(Persistable obj, Timestamp createDate, Timestamp modifyDate) Stores the given Persistable object in the datastore with the given timestamps.longupdateLob(Persistable obj, LobLocator lob, InputStream stream, boolean changeModifyDate) Saves the specified input stream of unknown length as a Lob of the given Persistable object.voidupdateLob(Persistable obj, LobLocator lob, InputStream stream, long length, boolean changeModifyDate) Saves the specified input stream as a Lob of the given Persistable object.
-
Method Details
-
updateLob
void updateLob(Persistable obj, LobLocator lob, InputStream stream, long length, boolean changeModifyDate) throws WTException Saves the specified input stream as a Lob of the given Persistable object. The Persistable object must already be locked in a current Transaction.
Supported API: true- Parameters:
obj- Persistable object containing the Lob attributelob- LobLocator that identifies the Lob attributestream- InputStream containing the data to updatelength- Number of bytes to update from the streamchangeModifyDate- indicates if the modify Timestamp on the Persistable object should be updated.- Throws:
WTException
-
updateLob
long updateLob(Persistable obj, LobLocator lob, InputStream stream, boolean changeModifyDate) throws WTException Saves the specified input stream of unknown length as a Lob of the given Persistable object. The Persistable object must already be locked in a current Transaction.
Supported API: true- Parameters:
obj- Persistable object containing the Lob attributelob- LobLocator that identifies the Lob attributestream- InputStream containing the data to updatechangeModifyDate- indicates if the modify Timestamp on the Persistable object should be updated.- Returns:
- long Number of bytes updated
- Throws:
WTException
-
query
Retrieves persistable objects from the datastore given the specified statement. This method provides low level access to the database and bypasses access control operations.
Supported API: true- Parameters:
a_statementSpec- The statement instance specifying the query to execute.- Returns:
- QueryResult
- Throws:
WTException
-
store
Stores the given Persistable object in the datastore with the given timestamps. The store method ensures that the operation is valid before storing the Persistable object in the datastore.
Supported API: true- Parameters:
obj-createDate-modifyDate-- Returns:
- Persistable
- Throws:
WTException
-
query
Retrieves persistable objects from the datastore for the specified statement. The objects are returned via the specified ResultProcessor. This method provides low level access to the database and bypasses access control operations.
Supported API: true- Parameters:
a_statementSpec-a_resultProcessor-- Throws:
WTException
-
execute
This method executes a batch update or delete operation on the specified Batch Specification. This method directly modifies the persistent state of objects in the datastore. Dispatch of associated create, update, and delete events is not guaranteed. There is no explcit change to any in-memory Persistable objects corresponding to the affected database state.
Supported API: true- Parameters:
a_batchSpec- Batch Specification to execute.- Returns:
- int the number of affected objects
- Throws:
WTException
-