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
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    execute(BatchSpec a_batchSpec)
    This 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.
    void
    query(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.
    long
    updateLob(Persistable obj, LobLocator lob, InputStream stream, boolean changeModifyDate)
    Saves the specified input stream of unknown length as a Lob of the given Persistable object.
    void
    updateLob(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 attribute
      lob - LobLocator that identifies the Lob attribute
      stream - InputStream containing the data to update
      length - Number of bytes to update from the stream
      changeModifyDate - 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 attribute
      lob - LobLocator that identifies the Lob attribute
      stream - InputStream containing the data to update
      changeModifyDate - indicates if the modify Timestamp on the Persistable object should be updated.
      Returns:
      long Number of bytes updated
      Throws:
      WTException
    • query

      QueryResult query(StatementSpec a_statementSpec) throws WTException
      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

      Persistable store(Persistable obj, Timestamp createDate, Timestamp modifyDate) throws WTException
      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

      void query(StatementSpec a_statementSpec, ResultProcessor a_resultProcessor) throws WTException
      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

      int execute(BatchSpec a_batchSpec) throws WTException
      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