T - the PDO classD - the domain object classpublic class MockDomainObject<T extends PersistentDomainObject<T>,D extends MockDomainObject<T,D>> extends Object implements DomainObject<T>
| Constructor and Description |
|---|
MockDomainObject()
Creates an application domain object.
|
MockDomainObject(T pdo)
Creates an application domain object.
|
| Modifier and Type | Method and Description |
|---|---|
DomainObject<T> |
cloneDomainObject() |
T |
findByUniqueDomainKey(Object domainKey) |
DomainContext |
getDomainContext() |
T |
getPdo() |
PersistenceDelegate<T> |
getPersistenceDelegate() |
String |
getPlural() |
org.tentackle.session.Session |
getSession() |
String |
getSingular() |
Object |
getUniqueDomainKey() |
Class<?> |
getUniqueDomainKeyType() |
boolean |
isUniqueDomainKeyProvided() |
T |
me() |
T |
pdo() |
void |
setPdo(T pdo) |
void |
setUniqueDomainKey(Object domainKey) |
String |
toGenericString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waiton, oppublic MockDomainObject(T pdo)
pdo - the persistent domain object this is a delegate forpublic MockDomainObject()
public T getPdo()
getPdo in interface PdoHolder<T extends PersistentDomainObject<T>>public T pdo()
pdo in interface DomainObject<T extends PersistentDomainObject<T>>public T me()
me in interface ProxyDelegate<T extends PersistentDomainObject<T>>public void setPdo(T pdo)
setPdo in interface PdoHolder<T extends PersistentDomainObject<T>>public String toGenericString()
toGenericString in interface DomainObject<T extends PersistentDomainObject<T>>public boolean isUniqueDomainKeyProvided()
isUniqueDomainKeyProvided in interface DomainObject<T extends PersistentDomainObject<T>>public Class<?> getUniqueDomainKeyType()
getUniqueDomainKeyType in interface DomainObject<T extends PersistentDomainObject<T>>public Object getUniqueDomainKey()
getUniqueDomainKey in interface DomainObject<T extends PersistentDomainObject<T>>public void setUniqueDomainKey(Object domainKey)
setUniqueDomainKey in interface DomainObject<T extends PersistentDomainObject<T>>public T findByUniqueDomainKey(Object domainKey)
findByUniqueDomainKey in interface DomainObject<T extends PersistentDomainObject<T>>public DomainObject<T> cloneDomainObject()
cloneDomainObject in interface DomainObject<T extends PersistentDomainObject<T>>public DomainContext getDomainContext()
getDomainContext in interface DomainContextProviderpublic String getSingular()
getSingular in interface DomainObject<T extends PersistentDomainObject<T>>public String getPlural()
getPlural in interface DomainObject<T extends PersistentDomainObject<T>>public PersistenceDelegate<T> getPersistenceDelegate()
getPersistenceDelegate in interface DomainDelegate<T extends PersistentDomainObject<T>>public org.tentackle.session.Session getSession()
getSession in interface org.tentackle.session.SessionProviderTentackle - distributed, domain- and model-driven