Package org.tentackle.pdo.mock
Class MockDomainObject<T extends PersistentDomainObject<T>,D extends MockDomainObject<T,D>>
java.lang.Object
org.tentackle.pdo.mock.MockDomainObject<T,D>
- Type Parameters:
T- the PDO classD- the domain object class
- All Implemented Interfaces:
Serializable,DomainContextProvider,DomainDelegate<T>,DomainObject<T>,PdoProvider<T>,ProxyDelegate<T>,org.tentackle.reflect.Interceptable,org.tentackle.session.SessionProvider
public class MockDomainObject<T extends PersistentDomainObject<T>,D extends MockDomainObject<T,D>>
extends Object
implements DomainObject<T>
A mocked domain object.
- Author:
- harald
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an application domain object.MockDomainObject(T pdo) Creates an application domain object. -
Method Summary
Modifier and TypeMethodDescriptionfindByUniqueDomainKey(Object domainKey) getPdo()org.tentackle.session.SessionClass<?> booleanme()voidSets the PDO.voidsetUniqueDomainKey(Object domainKey) 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.PdoProvider
on, on
-
Constructor Details
-
MockDomainObject
Creates an application domain object.- Parameters:
pdo- the persistent domain object this is a delegate for
-
MockDomainObject
public MockDomainObject()Creates an application domain object.
-
-
Method Details
-
getPdo
- Specified by:
getPdoin interfacePdoProvider<T extends PersistentDomainObject<T>>
-
me
- Specified by:
mein interfaceProxyDelegate<T extends PersistentDomainObject<T>>
-
setPdo
Sets the PDO.- Parameters:
pdo- the pdo
-
toGenericString
- Specified by:
toGenericStringin interfaceDomainObject<T extends PersistentDomainObject<T>>
-
isUniqueDomainKeyProvided
public boolean isUniqueDomainKeyProvided()- Specified by:
isUniqueDomainKeyProvidedin interfaceDomainObject<T extends PersistentDomainObject<T>>
-
getUniqueDomainKeyType
- Specified by:
getUniqueDomainKeyTypein interfaceDomainObject<T extends PersistentDomainObject<T>>
-
getUniqueDomainKey
- Specified by:
getUniqueDomainKeyin interfaceDomainObject<T extends PersistentDomainObject<T>>
-
setUniqueDomainKey
- Specified by:
setUniqueDomainKeyin interfaceDomainObject<T extends PersistentDomainObject<T>>
-
findByUniqueDomainKey
- Specified by:
findByUniqueDomainKeyin interfaceDomainObject<T extends PersistentDomainObject<T>>
-
getDomainContext
- Specified by:
getDomainContextin interfaceDomainContextProvider
-
getSingular
- Specified by:
getSingularin interfaceDomainObject<T extends PersistentDomainObject<T>>
-
getPlural
- Specified by:
getPluralin interfaceDomainObject<T extends PersistentDomainObject<T>>
-
getPersistenceDelegate
- Specified by:
getPersistenceDelegatein interfaceDomainDelegate<T extends PersistentDomainObject<T>>
-
getSession
public org.tentackle.session.Session getSession()- Specified by:
getSessionin interfaceorg.tentackle.session.SessionProvider
-