db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r452859 - /db/ojb/trunk/src/test/org/apache/ojb/OJB.properties
Date Wed, 04 Oct 2006 11:43:33 GMT
Author: arminw
Date: Wed Oct  4 04:43:32 2006
New Revision: 452859

URL: http://svn.apache.org/viewvc?view=rev&rev=452859
Log:
resort properties, use CGLIB as default proxy-library

Modified:
    db/ojb/trunk/src/test/org/apache/ojb/OJB.properties

Modified: db/ojb/trunk/src/test/org/apache/ojb/OJB.properties
URL: http://svn.apache.org/viewvc/db/ojb/trunk/src/test/org/apache/ojb/OJB.properties?view=diff&rev=452859&r1=452858&r2=452859
==============================================================================
--- db/ojb/trunk/src/test/org/apache/ojb/OJB.properties (original)
+++ db/ojb/trunk/src/test/org/apache/ojb/OJB.properties Wed Oct  4 04:43:32 2006
@@ -21,28 +21,6 @@
 # @version $Id$
 #
 #----------------------------------------------------------------------------------------
-# repository file settings
-#----------------------------------------------------------------------------------------
-# The repositoryFile entry tells OJB to use this file as as its standard mapping
-# repository. First OJB lookup the file as resource from classpath, second as ordinary file.
-#
-repositoryFile=repository.xml
-#
-# If the useSerializedRepository entry is set to true, OJB tries to load a
-# serialized version of the repository for performance reasons.
-# if set to false, OJB always loads the xml file.
-# Setting this flag to true will accelerate the startup sequence of OJB.
-# If set to true changes to the repository.xml file will only be detected
-# after maually deleting the repository.xml.serialized file.
-useSerializedRepository=false
-#
-# If Repository serialization is used the entry serializedRepositoryPath defines the
-# directory where the Repository is written to and read from.
-# this entry is used only when the useSerializedRepository flag is set to 'true'
-serializedRepositoryPath=.
-#
-#
-#----------------------------------------------------------------------------------------
 # PersistenceBrokerFactory / PersistenceBroker
 #----------------------------------------------------------------------------------------
 # The PersistenceBrokerFactoryClass entry decides which concrete
@@ -116,27 +94,6 @@
 #
 #
 #----------------------------------------------------------------------------------------
-# ConnectionManager
-#----------------------------------------------------------------------------------------
-# The ConnectionManagerClass entry defines the ConnectionManager implemementation to be used
-ConnectionManagerClass=org.apache.ojb.broker.accesslayer.ConnectionManagerImpl
-#
-#
-#----------------------------------------------------------------------------------------
-# SqlGenerator
-#----------------------------------------------------------------------------------------
-# The SqlGeneratorClass entry defines the SqlGenerator implemementation to be used
-SqlGeneratorClass=org.apache.ojb.broker.accesslayer.sql.SqlGeneratorDefaultImpl
-#
-#
-#----------------------------------------------------------------------------------------
-# CollectionFactory
-#----------------------------------------------------------------------------------------
-# The CollectionFactory entry defines the collection factory implemementation to be used
-CollectionFactoryClass=org.apache.ojb.broker.accesslayer.CollectionFactoryDefaultImpl
-#
-#
-#----------------------------------------------------------------------------------------
 # ProxyFactory and IndirectionHandler
 #----------------------------------------------------------------------------------------
 # The ProxyFactoryClass entry defines which ProxyFactory implementation is to be used.
@@ -189,6 +146,199 @@
 #
 CollectionProxyClass=org.apache.ojb.broker.core.proxy.CollectionProxyDefaultImpl
 #
+#
+#----------------------------------------------------------------------------------------
+# LobHelper
+#----------------------------------------------------------------------------------------
+# Set the LobHelper implementation.
+LobHelperClass=org.apache.ojb.broker.lob.LobHelperImpl
+#
+# LOB-locator objects (Blob and Clob fields in persistence capable objects) are only
+# valid as long as the current PersistenceBroker transaction is active. After commit or
+# rollback the LOB-object will be invalidated and before next access to the LOB-locator
+# object it must be refreshed. Cached persistent objects with LOB-content need refresh
+# too. OJB will automatically refresh all objects requested by query or identity lookup.
+# Set this property to 'false' to disable this service.
+LobAutoRefresh=true
+#
+#
+#----------------------------------------------------------------------------------------
+# Locking
+#----------------------------------------------------------------------------------------
+# The 'LockManagerClass' specify the internal used LockManager implementation.
+# If OJB is running in distributed environment it is recommended to use the remote
+# lock manager. It guarantees to provide Lockmanagement across multiple JVM's.
+#
+# A servlet based lock implementation for distributed environments, needs enabled
+# property 'LockServletUrl' too.
+#LockManagerClass=org.apache.ojb.broker.locking.LockManagerRemoteImpl
+# Lock manager implementation using apache's commons-transaction locking api
+#LockManagerClass=org.apache.ojb.broker.locking.LockManagerCommonsImpl
+LockManagerClass=org.apache.ojb.broker.locking.LockManagerInMemoryImpl
+#
+# The LockTimeout entry defines the maximum time in milliseconds
+# that a lock may be hold. Defaults to 120000 = 2 minutes
+LockTimeout=120000
+#
+# The LockServletUrl entry points to the Lockserver servlet.
+# This Servlet is addressed by all distributed JVMs if LockManagerRemoteImpl
+# is used.
+#LockServletUrl=http://127.0.0.1:8080/ojb-lockserver
+#
+#
+#----------------------------------------------------------------------------------------
+# Meta data / mapping settings
+#----------------------------------------------------------------------------------------
+# The PersistentFieldClass property defines the implementation class
+# for PersistentField attributes used in the OJB MetaData layer.
+# By default the best performing attribute/refection based implementation
+# is selected (PersistentFieldDirectAccessImpl).
+#
+# - PersistentFieldCGLibImpl
+#   A very fast beans compliant (getter/setter access based) PersistentField
+#   implementation (it's three times faster than the direct field access via reflection).
+#   Needs public getter/setter for all declared fields.
+# - PersistentFieldDirectImpl
+#   is a high-speed version of the access strategies.
+#   It does not cooperate with an AccessController,
+#   but accesses the fields directly. Persistent
+#   attributes don't need getters and setters
+#   and don't have to be declared public or protected
+# - PersistentFieldAutoProxyImpl
+#   for each field determines upon first access how to access this particular field
+#   (cglib based, directly, as a bean, as a dyna bean) and then uses that strategy.
+#   The order of field access testing goes from the fastest to slowest, so you will always
+#   get the best performance.
+# - PersistentFieldPrivilegedImpl
+#   Same as above, but does cooperate with AccessController and do not
+#   suppress the java language access check (but is slow compared with direct access).
+# - PersistentFieldIntrospectorImpl
+#   uses JavaBeans compliant calls only to access persistent attributes.
+#   No Reflection is needed. But for each attribute 'xxx' there must be
+#   public getXxx() and setXxx() methods.
+# - PersistentFieldDynaBeanAccessImpl
+#   implementation used to access a property from a
+#   org.apache.commons.beanutils.DynaBean.
+#   (Note: DynaBean implementation does not support nested fields)
+#
+PersistentFieldClass=org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldCGLibImpl
+#PersistentFieldClass=org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldDirectImpl
+#PersistentFieldClass=org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldAutoProxyImpl
+#PersistentFieldClass=org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldPrivilegedImpl
+#PersistentFieldClass=org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldIntrospectorImpl
+#PersistentFieldClass=org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldDynaBeanImpl
+#
+#
+# Allows to extend class RepositoryPersistor used to read and write (write is deprecated)
+# OJB's metadata.
+RepositoryPersistorClass=org.apache.ojb.broker.metadata.RepositoryPersistor
+#
+#
+#----------------------------------------------------------------------------------------
+# Transaction Management and assocation
+#----------------------------------------------------------------------------------------
+# (optional, only used when OJB runs within managed environments)
+# To praticipate in JTA transaction OJB needs access to the underlying transaction manager.
+# The TransactionManager is acquired in different ways dependent on the application server.
+# The JTATransactionManagerClass property allows you to specify the class that implements
+# the proper behaviour for finding the transaction manager. Only use when OJBTxManagerClass
+# is set to a factory that uses the application server transaction manager
+# (org.apache.ojb.odmg.JTATxManager)
+#
+# JBoss Transaction Manager Factory
+JTATransactionManagerClass=org.apache.ojb.broker.transaction.tm.JBossTransactionManagerFactory
+# Weblogic Transaction Manager Factory
+#JTATransactionManagerClass=org.apache.ojb.broker.transaction.tm.WeblogicTransactionManagerFactory
+# WebSphere transaction manager factory
+#JTATransactionManagerClass=org.apache.ojb.broker.transaction.tm.WebSphereTransactionManagerFactory
+# Orion transaction manager factory
+#JTATransactionManagerClass=org.apache.ojb.broker.transaction.tm.OrionTransactionManagerFactory
+# SunOne transaction manager factory
+#JTATransactionManagerClass=org.apache.ojb.broker.transaction.tm.SunOneTransactionManagerFactory
+# JOnAs transaction manager factory
+#JTATransactionManagerClass=org.apache.ojb.broker.transaction.tm.JOnASTransactionManagerFactory
+# OC4J transaction manager factory
+#JTATransactionManagerClass=org.apache.ojb.broker.transaction.tm.OC4JTransactionManagerFactory
+# Resin transaction manager factory
+#JTATransactionManagerClass=org.apache.ojb.broker.transaction.tm.ResinTransactionManagerFactory
+# JRun transaction manager factory
+#JTATransactionManagerClass=org.apache.ojb.broker.transaction.tm.JRunTransactionManagerFactory
+#
+#
+#----------------------------------------------------------------------------------------
+# ManageableCollection default settings
+#----------------------------------------------------------------------------------------
+# OJB use specific collection class implementations to provide 1:n and m:n references.
+# It's also possible to define specific collection classes for each defined 1:n or m:n
+# reference - please see documentation (repository mapping docs).
+#
+# Default collection classes for 1:n references
+CollectionTypes.OneToManyArray=org.apache.ojb.broker.util.collections.RemovalAwareCollection
+CollectionTypes.OneToManyCollection=org.apache.ojb.broker.util.collections.RemovalAwareCollection
+CollectionTypes.OneToManyList=org.apache.ojb.broker.util.collections.RemovalAwareList
+CollectionTypes.OneToManyVector=org.apache.ojb.broker.util.collections.RemovalAwareVector
+CollectionTypes.OneToManySet=org.apache.ojb.broker.util.collections.RemovalAwareSet
+#
+# Default collection classes for m:n references (never use a removal aware collection
+# implementation for m:n relation)
+CollectionTypes.ManyToManyArray=org.apache.ojb.broker.util.collections.ManageableArrayList
+CollectionTypes.ManyToManyCollection=org.apache.ojb.broker.util.collections.ManageableArrayList
+CollectionTypes.ManyToManyList=org.apache.ojb.broker.util.collections.ManageableArrayList
+CollectionTypes.ManyToManyVector=org.apache.ojb.broker.util.collections.ManageableVector
+CollectionTypes.ManyToManySet=org.apache.ojb.broker.util.collections.ManageableHashSet
+#
+# The Query/OQLQuery entries define the collection types returned
+# from Criteria-based queries/OQL-queries. By default this value is set to a List.
+# This will be good for most situations. If you need the additional features replace
+# the implementation.
+# Default collection classes query results
+CollectionTypes.Query=org.apache.ojb.broker.util.collections.ManageableArrayList
+CollectionTypes.OQLQuery=org.apache.ojb.broker.util.collections.ManageableArrayList
+#
+#
+#----------------------------------------------------------------------------------------
+# repository file settings
+#----------------------------------------------------------------------------------------
+# The repositoryFile entry tells OJB to use this file as as its standard mapping
+# repository. First OJB lookup the file as resource from classpath, second as ordinary file.
+#
+repositoryFile=repository.xml
+#
+# If the useSerializedRepository entry is set to true, OJB tries to load a
+# serialized version of the repository for performance reasons.
+# if set to false, OJB always loads the xml file.
+# Setting this flag to true will accelerate the startup sequence of OJB.
+# If set to true changes to the repository.xml file will only be detected
+# after maually deleting the repository.xml.serialized file.
+useSerializedRepository=false
+#
+# If Repository serialization is used the entry serializedRepositoryPath defines the
+# directory where the Repository is written to and read from.
+# this entry is used only when the useSerializedRepository flag is set to 'true'
+serializedRepositoryPath=.
+#
+#
+#----------------------------------------------------------------------------------------
+# ConnectionManager
+#----------------------------------------------------------------------------------------
+# The ConnectionManagerClass entry defines the ConnectionManager implemementation to be used
+ConnectionManagerClass=org.apache.ojb.broker.accesslayer.ConnectionManagerImpl
+#
+#
+#----------------------------------------------------------------------------------------
+# SqlGenerator
+#----------------------------------------------------------------------------------------
+# The SqlGeneratorClass entry defines the SqlGenerator implemementation to be used
+SqlGeneratorClass=org.apache.ojb.broker.accesslayer.sql.SqlGeneratorDefaultImpl
+#
+#
+#----------------------------------------------------------------------------------------
+# CollectionFactory
+#----------------------------------------------------------------------------------------
+# The CollectionFactory entry defines the collection factory implemementation to be used
+CollectionFactoryClass=org.apache.ojb.broker.accesslayer.CollectionFactoryDefaultImpl
+#
+#
 #----------------------------------------------------------------------------------------
 # StatementManager
 #----------------------------------------------------------------------------------------
@@ -227,21 +377,6 @@
 #
 #
 #----------------------------------------------------------------------------------------
-# LobHelper
-#----------------------------------------------------------------------------------------
-# Set the LobHelper implementation.
-LobHelperClass=org.apache.ojb.broker.lob.LobHelperImpl
-#
-# LOB-locator objects (Blob and Clob fields in persistence capable objects) are only
-# valid as long as the current PersistenceBroker transaction is active. After commit or
-# rollback the LOB-object will be invalidated and before next access to the LOB-locator
-# object it must be refreshed. Cached persistent objects with LOB-content need refresh
-# too. OJB will automatically refresh all objects requested by query or identity lookup.
-# Set this property to 'false' to disable this service.
-LobAutoRefresh=true
-#
-#
-#----------------------------------------------------------------------------------------
 # ObjectFactory
 #----------------------------------------------------------------------------------------
 # Specify implementation class for object factory used to instantiate persistent objects.
@@ -261,31 +396,6 @@
 #
 #
 #----------------------------------------------------------------------------------------
-# Locking
-#----------------------------------------------------------------------------------------
-# The 'LockManagerClass' specify the internal used LockManager implementation.
-# If OJB is running in distributed environment it is recommended to use the remote
-# lock manager. It guarantees to provide Lockmanagement across multiple JVM's.
-#
-# A servlet based lock implementation for distributed environments, needs enabled
-# property 'LockServletUrl' too.
-#LockManagerClass=org.apache.ojb.broker.locking.LockManagerRemoteImpl
-# Lock manager implementation using apache's commons-transaction locking api
-#LockManagerClass=org.apache.ojb.broker.locking.LockManagerCommonsImpl
-LockManagerClass=org.apache.ojb.broker.locking.LockManagerInMemoryImpl
-#
-# The LockTimeout entry defines the maximum time in milliseconds
-# that a lock may be hold. Defaults to 120000 = 2 minutes
-LockTimeout=120000
-#
-# The LockServletUrl entry points to the Lockserver servlet.
-# This Servlet is addressed by all distributed JVMs if LockManagerRemoteImpl
-# is used.
-#LockServletUrl=http://127.0.0.1:8080/ojb-lockserver
-#
-#
-#
-#----------------------------------------------------------------------------------------
 # OQL / SQL settings
 #----------------------------------------------------------------------------------------
 # The OqlCollectionClass entry defines the collection type returned
@@ -384,54 +494,6 @@
 #
 #
 #----------------------------------------------------------------------------------------
-# Meta data / mapping settings
-#----------------------------------------------------------------------------------------
-# The PersistentFieldClass property defines the implementation class
-# for PersistentField attributes used in the OJB MetaData layer.
-# By default the best performing attribute/refection based implementation
-# is selected (PersistentFieldDirectAccessImpl).
-#
-# - PersistentFieldDirectImpl
-#   is a high-speed version of the access strategies.
-#   It does not cooperate with an AccessController,
-#   but accesses the fields directly. Persistent
-#   attributes don't need getters and setters
-#   and don't have to be declared public or protected
-# - PersistentFieldCGLibImpl
-#   A very fast beans compliant (getter/setter access based) PersistentField
-#   implementation (it's three times faster than the direct field access via reflection).
-#   Needs public getter/setter for all declared fields.
-# - PersistentFieldPrivilegedImpl
-#   Same as above, but does cooperate with AccessController and do not
-#   suppress the java language access check (but is slow compared with direct access).
-# - PersistentFieldIntrospectorImpl
-#   uses JavaBeans compliant calls only to access persistent attributes.
-#   No Reflection is needed. But for each attribute 'xxx' there must be
-#   public getXxx() and setXxx() methods.
-# - PersistentFieldDynaBeanAccessImpl
-#   implementation used to access a property from a
-#   org.apache.commons.beanutils.DynaBean.
-#   (Note: DynaBean implementation does not support nested fields)
-# - PersistentFieldAutoProxyImpl
-#   for each field determines upon first access how to access this particular field
-#   (cglib based, directly, as a bean, as a dyna bean) and then uses that strategy.
-#   The order of field access testing goes from the fastest to slowest, so you will always
-#   get the best performance.
-#
-#PersistentFieldClass=org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldDirectImpl
-PersistentFieldClass=org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldCGLibImpl
-#PersistentFieldClass=org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldPrivilegedImpl
-#PersistentFieldClass=org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldIntrospectorImpl
-#PersistentFieldClass=org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldDynaBeanImpl
-#PersistentFieldClass=org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldAutoProxyImpl
-#
-#
-# Allows to extend class RepositoryPersistor used to read and write (write is deprecated)
-# OJB's metadata.
-RepositoryPersistorClass=org.apache.ojb.broker.metadata.RepositoryPersistor
-#
-#
-#----------------------------------------------------------------------------------------
 # Component Intercepting for Profiling and Tracing
 #----------------------------------------------------------------------------------------
 # By enabling an InterceptorClass all OJB components will use
@@ -440,37 +502,6 @@
 # This is currently an experimental feature useful only for OJB kernel developers.
 #
 #InterceptorClass=org.apache.ojb.broker.util.interceptor.TracingInterceptor
-#
-#
-#----------------------------------------------------------------------------------------
-# Transaction Management and assocation
-#----------------------------------------------------------------------------------------
-# (optional, only used when OJB runs within managed environments)
-# To praticipate in JTA transaction OJB needs access to the underlying transaction manager.
-# The TransactionManager is acquired in different ways dependent on the application server.
-# The JTATransactionManagerClass property allows you to specify the class that implements
-# the proper behaviour for finding the transaction manager. Only use when OJBTxManagerClass
-# is set to a factory that uses the application server transaction manager
-# (org.apache.ojb.odmg.JTATxManager)
-#
-# JBoss Transaction Manager Factory
-JTATransactionManagerClass=org.apache.ojb.broker.transaction.tm.JBossTransactionManagerFactory
-# Weblogic Transaction Manager Factory
-#JTATransactionManagerClass=org.apache.ojb.broker.transaction.tm.WeblogicTransactionManagerFactory
-# WebSphere transaction manager factory
-#JTATransactionManagerClass=org.apache.ojb.broker.transaction.tm.WebSphereTransactionManagerFactory
-# Orion transaction manager factory
-#JTATransactionManagerClass=org.apache.ojb.broker.transaction.tm.OrionTransactionManagerFactory
-# SunOne transaction manager factory
-#JTATransactionManagerClass=org.apache.ojb.broker.transaction.tm.SunOneTransactionManagerFactory
-# JOnAs transaction manager factory
-#JTATransactionManagerClass=org.apache.ojb.broker.transaction.tm.JOnASTransactionManagerFactory
-# OC4J transaction manager factory
-#JTATransactionManagerClass=org.apache.ojb.broker.transaction.tm.OC4JTransactionManagerFactory
-# Resin transaction manager factory
-#JTATransactionManagerClass=org.apache.ojb.broker.transaction.tm.ResinTransactionManagerFactory
-# JRun transaction manager factory
-#JTATransactionManagerClass=org.apache.ojb.broker.transaction.tm.JRunTransactionManagerFactory
 #
 #
 #----------------------------------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message