Package org.castor.cpa
Class CPAProperties
java.lang.Object
org.castor.core.util.AbstractProperties
org.castor.cpa.CPAProperties
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringProperty listing all availableCacheimplementations (org.castor.cache.Factories).static final StringProperty name of default timezone in castor.properties.static final StringProperty telling if database should be initialized when loading.static final StringProperty listing all the available key genence factories.static final StringProperty name of LOB buffer size in castor.properties.static final StringProperty specifying whether to use ANSI-compliant SQL for MS SQL Server.static final StringProperty listing all the available persistence factories.static final StringProperty listing all the availableTransactionManagerFactoryimplementations (org.castor.transactionmanager.Factories).static final StringProperty telling if TransactionManager should be initialized at registration.static final StringProperty listing all the availableTxSynchronizableimplementations (org.exolab.castor.persit.TxSynchronizable).static final StringProperty listing all availableTypeConvertorimplementations (org.castor.cpa.persistence.TypeConvertors).static final StringProperty specifying whether JDBC proxy classes should be usedstatic final StringProperty specifying whether JDBC 3.0-specific features should be used, such as e.g. -
Constructor Summary
ConstructorsConstructorDescriptionCPAProperties(AbstractProperties parent) Construct properties with given parent. -
Method Summary
Modifier and TypeMethodDescriptionstatic AbstractPropertiesDeprecated.Don't limit your applications flexibility by using static properties.static AbstractPropertiesFactory method for a default CPA properties instance.static AbstractPropertiesnewInstance(ClassLoader app, ClassLoader domain) Factory method for a CPA properties instance that uses the specified class loaders.Methods inherited from class org.castor.core.util.AbstractProperties
get, getApplicationClassLoader, getBoolean, getBoolean, getClass, getClassArray, getDomainClassLoader, getInteger, getInteger, getObject, getObjectArray, getString, getString, getStringArray, loadDefaultProperties, loadUserProperties, put, remove
-
Field Details
-
CACHE_FACTORIES
Property listing all availableCacheimplementations (org.castor.cache.Factories).- See Also:
-
TYPE_CONVERTORS
Property listing all availableTypeConvertorimplementations (org.castor.cpa.persistence.TypeConvertors).- See Also:
-
TRANSACTION_MANAGER_FACTORIES
Property listing all the availableTransactionManagerFactoryimplementations (org.castor.transactionmanager.Factories).- See Also:
-
TRANSACTION_MANAGER_INIT
Property telling if TransactionManager should be initialized at registration.- See Also:
-
INITIALIZE_AT_LOAD
Property telling if database should be initialized when loading.- See Also:
-
DEFAULT_TIMEZONE
Property name of default timezone in castor.properties.- See Also:
-
KEYGENERATOR_FACTORIES
Property listing all the available key genence factories. (org.castor.cpa.persistence.sql.keygen.factories).- See Also:
-
LOB_BUFFER_SIZE
Property name of LOB buffer size in castor.properties.- See Also:
-
PERSISTENCE_FACTORIES
Property listing all the available persistence factories. (org.castor.cpa.persistence.sql.driver.factories).- See Also:
-
TX_SYNCHRONIZABLE
Property listing all the availableTxSynchronizableimplementations (org.exolab.castor.persit.TxSynchronizable).- See Also:
-
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
Property specifying whether JDBC proxy classes should be usedorg.exolab.castor.persist.useProxies
.- See Also:
-
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
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
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
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
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.
-