Class PersistentClassVariablesFactory


  • @Service(org.tentackle.dbms.DbClassVariablesFactory.class)
    public class PersistentClassVariablesFactory
    extends org.tentackle.dbms.DbClassVariablesFactory
    Factory for class variables.
    • Constructor Detail

      • PersistentClassVariablesFactory

        public PersistentClassVariablesFactory()
    • Method Detail

      • pdoCv

        public <T extends org.tentackle.pdo.PersistentDomainObject<T>,​P extends AbstractPersistentObject<T,​P>> PersistentObjectClassVariables<T,​P> pdoCv​(java.lang.Class<T> pdoClass,
                                                                                                                                                                           java.lang.Class<P> poClass,
                                                                                                                                                                           java.lang.String tableAlias,
                                                                                                                                                                           PersistentObjectClassVariables<? super T,​? super P> superClassVariables,
                                                                                                                                                                           java.util.List<Join<T,​?>> eagerJoins)
        Creates a PDO classvariable.
        Type Parameters:
        T - the PDO class type
        P - the persistence class type
        Parameters:
        pdoClass - the PDO's class (i.e. interface)
        poClass - the class of the persistence implementation
        tableAlias - the table alias to be used in joined selects
        superClassVariables - the class variables of the superclass, null if not inherited
        eagerJoins - the optional eager joins, null of empty if none
      • pdoCv

        public <T extends org.tentackle.pdo.PersistentDomainObject<T>,​P extends AbstractPersistentObject<T,​P>> PersistentObjectClassVariables<T,​P> pdoCv​(java.lang.Class<T> pdoClass,
                                                                                                                                                                           java.lang.Class<P> poClass,
                                                                                                                                                                           java.lang.String tableAlias)
        Creates a PDO classvariable.
        Type Parameters:
        T - the PDO class type
        P - the persistence class type
        Parameters:
        pdoClass - the PDO's class (i.e. interface)
        poClass - the class of the persistence implementation
        tableAlias - the table alias to be used in joined selects
      • opCv

        public <T extends org.tentackle.pdo.Operation<T>,​P extends AbstractPersistentOperation<T,​P>> PersistentOperationClassVariables<T,​P> opCv​(java.lang.Class<T> operationClass,
                                                                                                                                                                   java.lang.Class<P> clazz)
        Creates an operation classvariable.
        Type Parameters:
        T - the operation class type
        P - the persistence class type
        Parameters:
        operationClass - the operation's class (i.e. interface)
        clazz - the class of the derived operation