Package org.tentackle.pdo.mock
Class MockDomainOperation<T extends Operation<T>,D extends MockDomainOperation<T,D>>
java.lang.Object
org.tentackle.pdo.mock.MockDomainOperation<T,D>
- Type Parameters:
T- the PDO classD- the domain object class
- All Implemented Interfaces:
Serializable,DomainContextProvider,DomainDelegate<T>,DomainOperation<T>,OperationProvider<T>,ProxyDelegate<T>,org.tentackle.reflect.Interceptable,org.tentackle.session.SessionProvider
public class MockDomainOperation<T extends Operation<T>,D extends MockDomainOperation<T,D>>
extends Object
implements DomainOperation<T>
A mocked domain object.
- Author:
- harald
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an application domain object.MockDomainOperation(T operation) Creates an operation domain object. -
Method Summary
Modifier and TypeMethodDescriptionorg.tentackle.session.Sessionme()voidsetOperation(T operation) Sets the operation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.tentackle.pdo.DomainContextProvider
isWithinContext, isWithinContext, on, on, op, opMethods inherited from interface org.tentackle.pdo.OperationProvider
op, op
-
Constructor Details
-
MockDomainOperation
Creates an operation domain object.- Parameters:
operation- the operation object this is a delegate for
-
MockDomainOperation
public MockDomainOperation()Creates an application domain object.
-
-
Method Details
-
me
- Specified by:
mein interfaceProxyDelegate<T extends Operation<T>>
-
getOperation
- Specified by:
getOperationin interfaceOperationProvider<T extends Operation<T>>
-
setOperation
Sets the operation.- Parameters:
operation- the operation
-
getDomainContext
- Specified by:
getDomainContextin interfaceDomainContextProvider
-
getSession
public org.tentackle.session.Session getSession()- Specified by:
getSessionin interfaceorg.tentackle.session.SessionProvider
-
getPersistenceDelegate
- Specified by:
getPersistenceDelegatein interfaceDomainDelegate<T extends Operation<T>>
-