Class MockPersistentOperation<T extends Operation<T>>

java.lang.Object
org.tentackle.pdo.mock.MockPersistentOperation<T>
Type Parameters:
T - the pdo type
All Implemented Interfaces:
Serializable, DomainContextDependable, DomainContextProvider, OperationMethodCacheProvider<T>, OperationProvider<T>, PersistenceDelegate<T>, PersistentOperation<T>, ProxyDelegate<T>, org.tentackle.reflect.Interceptable, org.tentackle.session.SessionDependable, org.tentackle.session.SessionProvider

public class MockPersistentOperation<T extends Operation<T>> extends Object implements PersistentOperation<T>, OperationMethodCacheProvider<T>
A mocked persistence object.
Author:
harald
See Also:
  • Constructor Details

    • MockPersistentOperation

      public MockPersistentOperation(T operation, DomainContext context)
      Creates an operation object.
      Parameters:
      operation - the operation object this is a delegate for
      context - the database context
    • MockPersistentOperation

      public MockPersistentOperation(T operation, org.tentackle.session.Session session)
      Creates an operation object without a domain context for a given connection.

      Note: the application must set the context.

      Parameters:
      operation - the operation object this is a delegate for
      session - the session (must be an instance of Session).
    • MockPersistentOperation

      public MockPersistentOperation(T operation)
      Creates an operation object without a database context.

      Note: the application must set the context.

      Parameters:
      operation - the operation object this is a delegate for
    • MockPersistentOperation

      public MockPersistentOperation()
      Creates an operation object without a database context.
  • Method Details