@Service(value=org.tentackle.dbms.DbClassVariablesFactory.class) public class PersistentClassVariablesFactory extends DbClassVariablesFactory
| Constructor and Description |
|---|
PersistentClassVariablesFactory() |
| Modifier and Type | Method and Description |
|---|---|
static PersistentClassVariablesFactory |
getInstance()
The singleton.
|
<T extends Operation<T>,P extends AbstractPersistentOperation<T,P>> |
opCv(Class<T> operationClass,
Class<P> clazz)
Creates an operation classvariable.
|
<T extends PersistentDomainObject<T>,P extends AbstractPersistentObject<T,P>> |
pdoCv(Class<T> pdoClass,
Class<P> poClass,
String tableAlias)
Creates a PDO classvariable.
|
<T extends PersistentDomainObject<T>,P extends AbstractPersistentObject<T,P>> |
pdoCv(Class<T> pdoClass,
Class<P> poClass,
String tableAlias,
PersistentObjectClassVariables<? super T,? super P> superClassVariables,
List<Join<T,?>> eagerJoins)
Creates a PDO classvariable.
|
dbOpCv, dbPoCv, dbPoCvpublic static PersistentClassVariablesFactory getInstance()
public <T extends PersistentDomainObject<T>,P extends AbstractPersistentObject<T,P>> PersistentObjectClassVariables<T,P> pdoCv(Class<T> pdoClass, Class<P> poClass, String tableAlias, PersistentObjectClassVariables<? super T,? super P> superClassVariables, List<Join<T,?>> eagerJoins)
T - the PDO class typeP - the persistence class typepdoClass - the PDO's class (i.e. interface)poClass - the class of the persistence implementationtableAlias - the table alias to be used in joined selectssuperClassVariables - the class variables of the superclass, null if not inheritedeagerJoins - the optional eager joins, null of empty if nonepublic <T extends PersistentDomainObject<T>,P extends AbstractPersistentObject<T,P>> PersistentObjectClassVariables<T,P> pdoCv(Class<T> pdoClass, Class<P> poClass, String tableAlias)
T - the PDO class typeP - the persistence class typepdoClass - the PDO's class (i.e. interface)poClass - the class of the persistence implementationtableAlias - the table alias to be used in joined selectspublic <T extends Operation<T>,P extends AbstractPersistentOperation<T,P>> PersistentOperationClassVariables<T,P> opCv(Class<T> operationClass, Class<P> clazz)
T - the operation class typeP - the persistence class typeoperationClass - the operation's class (i.e. interface)clazz - the class of the derived operationTentackle - distributed, domain- and model-driven