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 Details

    • PersistentClassVariablesFactory

      public PersistentClassVariablesFactory()
      Creates the class variables factory.
  • Method Details

    • getInstance

      public static PersistentClassVariablesFactory getInstance()
      The singleton.
      Returns:
      the singleton
    • pdoCv

      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)
      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 PersistentDomainObject<T>, P extends AbstractPersistentObject<T, P>> PersistentObjectClassVariables<T,P> pdoCv(Class<T> pdoClass, Class<P> poClass, 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 Operation<T>, P extends AbstractPersistentOperation<T, P>> PersistentOperationClassVariables<T,P> opCv(Class<T> operationClass, 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