Module org.tentackle.persistence
Package org.tentackle.persist
Class PersistentClassVariablesFactory
java.lang.Object
org.tentackle.dbms.DbClassVariablesFactory
org.tentackle.persist.PersistentClassVariablesFactory
@Service(org.tentackle.dbms.DbClassVariablesFactory.class)
public class PersistentClassVariablesFactory
extends DbClassVariablesFactory
Factory for class variables.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe singleton.<T extends Operation<T>,P extends AbstractPersistentOperation<T, P>>
PersistentOperationClassVariables<T,P> Creates an operation classvariable.<T extends PersistentDomainObject<T>,P extends AbstractPersistentObject<T, P>>
PersistentObjectClassVariables<T,P> Creates a PDO classvariable.<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) Creates a PDO classvariable.Methods inherited from class org.tentackle.dbms.DbClassVariablesFactory
dbOpCv, dbPoCv, dbPoCv
-
Constructor Details
-
PersistentClassVariablesFactory
public PersistentClassVariablesFactory()
-
-
Method Details
-
getInstance
The singleton.- Returns:
- the singleton
-
pdoCv
public <T extends PersistentDomainObject<T>,P extends AbstractPersistentObject<T, PersistentObjectClassVariables<T,P>> P> pdoCv(Class<T> pdoClass, Class<P> poClass, String tableAlias, PersistentObjectClassVariables<? super T, ? super P> superClassVariables, List<Join<T, ?>> eagerJoins) Creates a PDO classvariable.- Type Parameters:
T- the PDO class typeP- the persistence class type- Parameters:
pdoClass- 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 none
-
pdoCv
public <T extends PersistentDomainObject<T>,P extends AbstractPersistentObject<T, PersistentObjectClassVariables<T,P>> P> pdoCv(Class<T> pdoClass, Class<P> poClass, String tableAlias) Creates a PDO classvariable.- Type Parameters:
T- the PDO class typeP- the persistence class type- Parameters:
pdoClass- the PDO's class (i.e. interface)poClass- the class of the persistence implementationtableAlias- the table alias to be used in joined selects
-
opCv
public <T extends Operation<T>,P extends AbstractPersistentOperation<T, PersistentOperationClassVariables<T,P>> P> opCv(Class<T> operationClass, Class<P> clazz) Creates an operation classvariable.- Type Parameters:
T- the operation class typeP- the persistence class type- Parameters:
operationClass- the operation's class (i.e. interface)clazz- the class of the derived operation
-