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 Details

    • CACHE_FACTORIES

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

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

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

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

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

      public static final String DEFAULT_TIMEZONE
      Property name of default timezone in castor.properties.
      See Also:
    • KEYGENERATOR_FACTORIES

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

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

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

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

      public static final 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:
    • USE_JDBC_PROXIES

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

      public static final 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:
  • Constructor Details

    • 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 Details

    • 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(ClassLoader app, 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.