Author: arminw
Date: Fri Dec 22 18:39:57 2006
New Revision: 489835
URL: http://svn.apache.org/viewvc?view=rev&rev=489835
Log:
add new attribute settings
Modified:
db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/repository_database.xml
Modified: db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/repository_database.xml
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/repository_database.xml?view=diff&rev=489835&r1=489834&r2=489835
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/repository_database.xml (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/repository_database.xml Fri Dec 22 18:39:57 2006
@@ -61,6 +61,22 @@
-->
<attribute attribute-name="initializationCheck" attribute-value="false" />
+ <!-- Attributes with name prefix "platform." are used to allow database
+ platform class specific settings (PlatformXYZImpl classes) -->
+
+ <!-- If set to value >0 Oracle's implicit statement caching will be enabled by OJB (Oracle9i or higher).
+ Number of cached statements per connection using implicit caching with Oracle9i Connections.
+ See http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/files/jdbc30/StmtCacheSample/Readme.html-->
+ <attribute attribute-name="platform.oracle.statementCacheSize" attribute-value="10" />
+ <!-- Number of rows pre-fetched by the JDBC-driver for each executed query, when using row
+ pre-fetching with Oracle Connections (Oracle9i or higher). Note: this setting can be overridden
+ by specifying a connection-pool attribute with name="jdbc.defaultRowPrefetch".
+ See http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/files/advanced/RowPrefetchSample/Readme.html -->
+ <attribute attribute-name="platform.oracle.prefetchSize" attribute-value="20" />
+ <!-- If set to value >0 Oracle's native batch statement handling will be enabled by OJB (Oracle9i or higher).
+ See http://technet.oracle.com/products/oracle9i/daily/jun07.html -->
+ <attribute attribute-name="platform.oracle.batchSize" attribute-value="20" />
+
<!-- alternative cache implementations, see docs section "Caching" -->
<object-cache class="org.apache.ojb.broker.cache.ObjectCacheTwoLevelImpl">
<!-- meaning of attributes, please see docs section "Caching" -->
@@ -101,14 +117,17 @@
<attribute attribute-name="fetchSize" attribute-value="0"/>
<!-- Attributes with name prefix "jdbc." are passed directly to the JDBC driver. -->
- <!-- Example setting (used by Oracle driver when Statement batching is enabled) -->
- <attribute attribute-name="jdbc.defaultBatchValue" attribute-value="5"/>
+ <!-- Oracle specific driver setting to enable oracle's specific statement batching.
+ Oracle Docs: "The value of this property is used as the default batch
+ size when using Oracle style batching."
+ Attention: With OracleXE + thin this setting cause unexpected behavior -->
+ <!--<attribute attribute-name="jdbc.defaultExecuteBatch" attribute-value="20"/>-->
+ <!-- Oracle specific driver setting to set the default prefetch size.
+ Oracle Docs: "The value of this property is used as the default number of rows to prefetch."
+ Attention: With OracleXE + thin this setting cause unexpected behavior -->
+ <!--<attribute attribute-name="jdbc.defaultRowPrefetch" attribute-value="20"/>-->
- <!-- Attributes determining if ConnectionFactoryDBCPImpl
- should also pool PreparedStatement. This is programmatically disabled
- when using platform=Oracle9i since Oracle statement caching will conflict
- with DBCP ObjectPool-based PreparepdStatement caching (ie setting true
- here has no effect for Oracle9i platform). -->
+ <!-- Attributes determining if ConnectionFactoryDBCPImpl -->
<attribute attribute-name="dbcp.poolPreparedStatements" attribute-value="false"/>
<attribute attribute-name="dbcp.maxOpenPreparedStatements" attribute-value="30"/>
<!-- Attribute determining if the Commons DBCP connection wrapper will allow
@@ -118,7 +137,7 @@
</connection-pool>
<!-- alternative sequence manager implementations, see "Sequence Manager" guide -->
- <sequence-manager className="org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl">
+ <sequence-manager className="memory">
<!-- The attribute 'seq.perField': If set 'true' it's possible to define per
field-descriptor sequence manager. This way you can use different sequence
identifier generation strategies. If set 'false' only the default sequence manager
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.