weaver 2003/07/30 12:47:19
Modified: portal/src/webapp/WEB-INF/conf/ojb repository.dtd
OJB.properties
Log:
Updated OJB resources to match with upgrade to OJB 1.0 rc4
Revision Changes Path
1.2 +21 -1
jakarta-jetspeed-2/portal/src/webapp/WEB-INF/conf/ojb/repository.dtd
Index: repository.dtd
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/portal/src/webapp/WEB-INF/conf/ojb/repository.dtd,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- repository.dtd 28 Jul 2003 23:47:56 -0000 1.1
+++ repository.dtd 30 Jul 2003 19:47:19 -0000 1.2
@@ -317,8 +317,10 @@
It can be used to do initialization and validations.
The optional factory-method specifies a static no-argument method
+ (specified by the factory-class attribute)
that is to be used instead of a no argument constructor.
- Important note: this feature is not yet implemented.
+ If either factory-class or factory-method is specified, the other
+ is mandatory.
The refresh attribute can be set to true to force OJB to refresh
instances when loaded from cache. It's set to false by default.
@@ -335,6 +337,7 @@
extends IDREF #IMPLIED
accept-locks (true | false) "true"
initialization-method CDATA #IMPLIED
+ factory-class CDATA #IMPLIED
factory-method CDATA #IMPLIED
refresh (true | false) "false"
>
@@ -519,6 +522,12 @@
this reference attribute on deleting the persistent object.
This attribute must be set to false if using the OTM, ODMG or JDO layer.
+ The otm-dependent attribute specifies whether the OTM layer automatically
+ creates the referred object or deletes it if the reference field is set to null.
+ Also otm-dependent references behave as if auto-update and auto-delete
+ were set to true, but the auto-update and auto-delete attributes themself
+ must be always set to false for use with OTM layer.
+
-->
<!ATTLIST reference-descriptor
name CDATA #REQUIRED
@@ -530,6 +539,7 @@
auto-retrieve (true | false) "true"
auto-update (true | false) "false"
auto-delete (true | false) "false"
+ otm-dependent (true | false) "false"
>
<!--
@@ -616,6 +626,15 @@
The auto-delete attribute specifies whether OJB automatically deletes
this reference attribute on deleting the persistent object.
This attribute must be set to false if using the OTM, ODMG or JDO layer.
+
+ The otm-dependent attribute specifies whether the OTM layer automatically
+ creates collection elements that were included into the collectionelements
+ and deletes collection elements that were excluded from the collection.
+ Also otm-dependent references behave as if auto-update and auto-delete
+ were set to true, but the auto-update and auto-delete attributes themself
+ must be always set to false for use with OTM layer.
+
+
-->
<!ATTLIST collection-descriptor
name CDATA #IMPLIED
@@ -632,6 +651,7 @@
auto-retrieve (true | false) "true"
auto-update (true | false) "false"
auto-delete (true | false) "false"
+ otm-dependent (true | false) "false"
>
<!--
1.2 +49 -21
jakarta-jetspeed-2/portal/src/webapp/WEB-INF/conf/ojb/OJB.properties
Index: OJB.properties
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/portal/src/webapp/WEB-INF/conf/ojb/OJB.properties,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- OJB.properties 28 Jul 2003 23:47:56 -0000 1.1
+++ OJB.properties 30 Jul 2003 19:47:19 -0000 1.2
@@ -142,6 +142,14 @@
#
#
#----------------------------------------------------------------------------------------
+# StatementsForClass
+#----------------------------------------------------------------------------------------
+# The StatementsForClassClass entry defines the StatementsForClass implemementation
to be used
+# to implement cached statements.
+StatementsForClassClass=org.apache.ojb.broker.accesslayer.StatementsForClassImpl
+#
+#
+#----------------------------------------------------------------------------------------
# JdbcAccess
#----------------------------------------------------------------------------------------
# The JdbcAccessClass entry defines the JdbcAccess implemementation to be used
@@ -227,7 +235,7 @@
#LoggerClass=org.apache.ojb.broker.util.logging.Log4jLoggerImpl
# OJB's own simple looging support
#LoggerClass=org.apache.ojb.broker.util.logging.PoorMansLoggerImpl
-LoggerConfigFile=${applicationRoot}/WEB-INF/conf/Log4j.properties
+LoggerConfigFile=log4j.properties
#
# The LogLevel entries tells OJB which LogLevels are active
# for the different loggers used within OJB
@@ -235,8 +243,12 @@
# That is loglevel WARN won't log DEBUG and INFO messages,
# but will log WARN, ERROR, and FATAL messages
#
-# The Default Logger
-DEFAULT.LogLevel=INFO
+# Global default log level used for all logging
+# entities if not specified
+ROOT.LogLevel=ERROR
+#
+# The Default Logger instance used within OJB
+DEFAULT.LogLevel=WARN
# Logger for PersistenceBrokerImpl class
org.apache.ojb.broker.core.PersistenceBrokerImpl.LogLevel=WARN
# Logger for PersistenceBrokerFactory class
@@ -244,20 +256,24 @@
# Logger for RepositoryXmlHandler, useful for debugging parsing of repository.xml!
org.apache.ojb.broker.metadata.RepositoryXmlHandler.LogLevel=WARN
# Logger for JdbcAccess, useful for debugging JDBC related problems
-org.apache.ojb.broker.accesslayer.JdbcAccess.LogLevel=WARN
+org.apache.ojb.broker.accesslayer.JdbcAccessImpl.LogLevel=WARN
# Logger for RsIterator, useful for debugging problems with Object materialization
org.apache.ojb.broker.accesslayer.RsIterator.LogLevel=WARN
# Logger for StatementsForClass, useful for debugging JDBC Connection related
problems
-org.apache.ojb.broker.accesslayer.StatementsForClass.LogLevel=WARN
+org.apache.ojb.broker.accesslayer.StatementsForClassImpl.LogLevel=WARN
# Logger for SqlGenerator, useful for debugging generation of SQL
org.apache.ojb.broker.accesslayer.sql.SqlGeneratorDefaultImpl.LogLevel=WARN
# Logger for RepositoryPersistor
org.apache.ojb.broker.metadata.RepositoryPersistor.LogLevel=WARN
# Logger for PersistenceBrokerFactoryDefaultImpl
org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.LogLevel=WARN
+# Logger for ConnectionFactory
+org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.LogLevel=ERROR
+#
+# Special Logger categories used in test suite and tutorials
+#
# Logger for the ODMG Implementation
-#ODMG.LogLevel=WARN
-ODMG.LogLevel=DEBUG
+ODMG.LogLevel=WARN
# Logger for the JDO RI Implementation
JDO.LogLevel=DEBUG
# Logger for the performance tests
@@ -294,23 +310,35 @@
#----------------------------------------------------------------------------------------
# The PersistentFieldClass property defines the implementation class
# for PersistentField attributes used in the OJB MetaData layer.
-# By default a attribute based Version using Reflection is selected.
-# using this Class persistent attributes don't need getters and setters
-# and don't have to be declared public or protected.
-#
-PersistentFieldClass=org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldDefaultImpl
-#
-# There is also a high-speed version of this access strategy avalaible.
-# The PersistentFieldMaxPerformanceImpl does not cooperate with
-# an AccessController, but accesses the fields directly.
-#PersistentFieldClass=org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldMaxPerformanceImpl
+# By default the best performing attribute/refection based implementation
+# is selected (PersistentFieldDirectAccessImpl).
#
-# The PersistentFieldPropertyImpl uses JavaBeans comformant calls only
-# to access persistent attributes. No Reflection is needed.
-# But for each attribute xxx there must be public getXxx() and setXxx() methods.
+# - PersistentFieldDirectAccessImpl
+# 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
+# - PersistentFieldPrivilegedImpl
+# Same as above, but does cooperate with AccessController and do not
+# suppress the java language access check.
+# - 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.
+#
+PersistentFieldClass=org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldDirectAccessImpl
+#PersistentFieldClass=org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldPrivilegedImpl
+#PersistentFieldClass=org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldIntrospectorImpl
+#PersistentFieldClass=org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldDynaBeanAccessImpl
#
+# outdated deprecated versions:
+#PersistentFieldClass=org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldMaxPerformanceImpl
+#PersistentFieldClass=org.apache.ojb.broker.metadata.fieldaccess.PersistentNestedFieldMaxPerformanceImpl
#PersistentFieldClass=org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldPropertyImpl
-#
#
#----------------------------------------------------------------------------------------
# Component Intercepting for Profiling and Tracing
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]