Class CPAProperties


  • public class CPAProperties
    extends AbstractProperties
    Properties of CPA modul.
    Since:
    1.1.3
    Version:
    $Id: Configuration.java,v 1.8 2006/03/08 17:25:52 jens Exp $
    Author:
    Ralf Joachim
    • Field Detail

      • CACHE_FACTORIES

        public static final java.lang.String CACHE_FACTORIES
        Property listing all available Cache implementations (org.castor.cache.Factories).
        See Also:
        Constant Field Values
      • TYPE_CONVERTORS

        public static final java.lang.String TYPE_CONVERTORS
        Property listing all available TypeConvertor implementations (org.castor.cpa.persistence.TypeConvertors).
        See Also:
        Constant Field Values
      • TRANSACTION_MANAGER_FACTORIES

        public static final java.lang.String TRANSACTION_MANAGER_FACTORIES
        Property listing all the available TransactionManagerFactory implementations (org.castor.transactionmanager.Factories).
        See Also:
        Constant Field Values
      • TRANSACTION_MANAGER_INIT

        public static final java.lang.String TRANSACTION_MANAGER_INIT
        Property telling if TransactionManager should be initialized at registration.
        See Also:
        Constant Field Values
      • INITIALIZE_AT_LOAD

        public static final java.lang.String INITIALIZE_AT_LOAD
        Property telling if database should be initialized when loading.
        See Also:
        Constant Field Values
      • DEFAULT_TIMEZONE

        public static final java.lang.String DEFAULT_TIMEZONE
        Property name of default timezone in castor.properties.
        See Also:
        Constant Field Values
      • KEYGENERATOR_FACTORIES

        public static final java.lang.String KEYGENERATOR_FACTORIES
        Property listing all the available key genence factories. (org.castor.cpa.persistence.sql.keygen.factories).
        See Also:
        Constant Field Values
      • LOB_BUFFER_SIZE

        public static final java.lang.String LOB_BUFFER_SIZE
        Property name of LOB buffer size in castor.properties.
        See Also:
        Constant Field Values
      • PERSISTENCE_FACTORIES

        public static final java.lang.String PERSISTENCE_FACTORIES
        Property listing all the available persistence factories. (org.castor.cpa.persistence.sql.driver.factories).
        See Also:
        Constant Field Values
      • TX_SYNCHRONIZABLE

        public static final java.lang.String TX_SYNCHRONIZABLE
        Property listing all the available TxSynchronizable implementations (org.exolab.castor.persit.TxSynchronizable).
        See Also:
        Constant Field Values
      • USE_JDBC30

        public static final java.lang.String USE_JDBC30
        Property specifying whether JDBC 3.0-specific features should be used, such as e.g. the use of Statement.getGeneratedKeys()
        org.castor.jdo.use.jdbc30
        .
        See Also:
        Constant Field Values
      • USE_JDBC_PROXIES

        public static final java.lang.String USE_JDBC_PROXIES
        Property specifying whether JDBC proxy classes should be used
        org.exolab.castor.persist.useProxies
        .
        See Also:
        Constant Field Values
      • MSSQL_ANSI_COMPLIANT

        public static final java.lang.String MSSQL_ANSI_COMPLIANT
        Property specifying whether to use ANSI-compliant SQL for MS SQL Server.
        org.exolab.castor.jdo.sqlserver.ansi-compliant
        See Also:
        Constant Field Values
    • Constructor Detail

      • CPAProperties

        public CPAProperties​(AbstractProperties parent)
        Construct properties with given parent. Application and domain class loaders will be initialized to the ones of the parent.
        Note: This constructor is not intended for public use. Use one of the newInstance() methods instead.
        Parameters:
        parent - Parent properties.
    • Method Detail

      • getInstance

        public static AbstractProperties getInstance()
        Deprecated.
        Don't limit your applications flexibility by using static properties. Use your own properties instance created with one of the newInstance() methods instead.
        Get the one and only static CPA properties.
        Returns:
        One and only properties instance for Castor CPA modul.
      • newInstance

        public static AbstractProperties newInstance()
        Factory method for a default CPA properties instance. Application and domain class loaders will be initialized to the one used to load this class. The properties instance returned will be a CastorProperties with a CPAProperties, a XMLProperties and a CoreProperties instance as parents. The CastorProperties holding user specific properties is the only one that can be modified by put() and remove() methods. CPAProperties, XMLProperties and CoreProperties are responsble to deliver Castor's default values if they have not been overwritten by the user.
        Returns:
        Properties instance for Castor CPA modul.
      • newInstance

        public static AbstractProperties newInstance​(java.lang.ClassLoader app,
                                                     java.lang.ClassLoader domain)
        Factory method for a CPA properties instance that uses the specified class loaders. The properties instance returned will be a CastorProperties with a CPAProperties, a XMLProperties and a CoreProperties instance as parents. The CastorProperties holding user specific properties is the only one that can be modified by put() and remove() methods. CPAProperties, XMLProperties and CoreProperties are responsble to deliver Castor's default values if they have not been overwritten by the user.
        Parameters:
        app - Classloader to be used for all classes of Castor and its required libraries.
        domain - Classloader to be used for all domain objects.
        Returns:
        Properties instance for Castor CPA modul.