notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
svn commit: r2181 - in development/planet/users/niclas/jdo: . common jdo-enhancer kodo-hsqldb kodo-hsqldb-test kodo-hsqldb-test/src/main/net/dpml/jdo/kodo/test kodo-hsqldb-test/src/test kodo-hsqldb-test/src/test/net kodo-hsqldb-test/src/test/net/dpml kodo-hsqldb-test/src/test/net/dpml/jdo kodo-hsqldb-test/src/test/net/dpml/jdo/kodo kodo-hsqldb-test/src/test/net/dpml/jdo/kodo/test kodo-task tjdo-hsqldb
- From: niclas AT hedhman.org
- To: notify-dpml AT lists.ibiblio.org
- Subject: svn commit: r2181 - in development/planet/users/niclas/jdo: . common jdo-enhancer kodo-hsqldb kodo-hsqldb-test kodo-hsqldb-test/src/main/net/dpml/jdo/kodo/test kodo-hsqldb-test/src/test kodo-hsqldb-test/src/test/net kodo-hsqldb-test/src/test/net/dpml kodo-hsqldb-test/src/test/net/dpml/jdo kodo-hsqldb-test/src/test/net/dpml/jdo/kodo kodo-hsqldb-test/src/test/net/dpml/jdo/kodo/test kodo-task tjdo-hsqldb
- Date: Thu, 31 Mar 2005 17:11:48 -0500
Author: niclas AT hedhman.org
Date: Thu Mar 31 17:11:44 2005
New Revision: 2181
Added:
development/planet/users/niclas/jdo/kodo-hsqldb-test/src/test/
development/planet/users/niclas/jdo/kodo-hsqldb-test/src/test/net/
development/planet/users/niclas/jdo/kodo-hsqldb-test/src/test/net/dpml/
development/planet/users/niclas/jdo/kodo-hsqldb-test/src/test/net/dpml/jdo/
development/planet/users/niclas/jdo/kodo-hsqldb-test/src/test/net/dpml/jdo/kodo/
development/planet/users/niclas/jdo/kodo-hsqldb-test/src/test/net/dpml/jdo/kodo/test/
development/planet/users/niclas/jdo/kodo-hsqldb-test/src/test/net/dpml/jdo/kodo/test/KodoTestCase.java
(contents, props changed)
Removed:
development/planet/users/niclas/jdo/kodo-hsqldb-test/src/main/net/dpml/jdo/kodo/test/KodoTestCase.java
Modified:
development/planet/users/niclas/jdo/build.xml
development/planet/users/niclas/jdo/common/build.xml
development/planet/users/niclas/jdo/index.xml
development/planet/users/niclas/jdo/jdo-enhancer/build.xml
development/planet/users/niclas/jdo/kodo-hsqldb-test/build.xml
development/planet/users/niclas/jdo/kodo-hsqldb/build.xml
development/planet/users/niclas/jdo/kodo-task/build.xml
development/planet/users/niclas/jdo/tjdo-hsqldb/build.xml
Log:
Updating JDO to be able to build under new Magic.
Modified: development/planet/users/niclas/jdo/build.xml
==============================================================================
--- development/planet/users/niclas/jdo/build.xml (original)
+++ development/planet/users/niclas/jdo/build.xml Thu Mar 31 17:11:44
2005
@@ -6,9 +6,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.dpml.net/central/about/legal/
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -17,10 +17,8 @@
-->
<project name="dpml-jdo" default="install" basedir="."
- xmlns:transit="antlib:net.dpml.transit"
->
+ xmlns:transit="antlib:net.dpml.transit">
- <transit:init />
- <import file="${dpml.templates}/reactor.xml"/>
+ <transit:import uri="artifact:template:dpml/magic/reactor"/>
-</project>
+</project>
\ No newline at end of file
Modified: development/planet/users/niclas/jdo/common/build.xml
==============================================================================
--- development/planet/users/niclas/jdo/common/build.xml (original)
+++ development/planet/users/niclas/jdo/common/build.xml Thu Mar 31
17:11:44 2005
@@ -19,7 +19,6 @@
<project name="dpml-jdo-kodo" default="install" basedir="."
xmlns:transit="antlib:net.dpml.transit">
- <transit:init />
- <import file="${dpml.templates}/standard.xml"/>
+ <transit:import uri="artifact:template:dpml/magic/standard"/>
-</project>
+</project>
\ No newline at end of file
Modified: development/planet/users/niclas/jdo/index.xml
==============================================================================
--- development/planet/users/niclas/jdo/index.xml (original)
+++ development/planet/users/niclas/jdo/index.xml Thu Mar 31 17:11:44
2005
@@ -17,9 +17,7 @@
<index>
<import uri="artifact:module:dpml/magic/dpml-magic#SNAPSHOT" />
- <import uri="artifact:module:dpml/metro/public/dpml-metro-public#SNAPSHOT"
/>
- <import
uri="artifact:module:dpml/metro/protected/dpml-metro-protected#SNAPSHOT" />
- <import uri="artifact:module:dpml/metro/tools/dpml-metro-tools#SNAPSHOT" />
+ <import uri="artifact:module:dpml/metro/dpml-metro#SNAPSHOT" />
<resource>
<info>
Modified: development/planet/users/niclas/jdo/jdo-enhancer/build.xml
==============================================================================
--- development/planet/users/niclas/jdo/jdo-enhancer/build.xml (original)
+++ development/planet/users/niclas/jdo/jdo-enhancer/build.xml Thu Mar 31
17:11:44 2005
@@ -18,15 +18,15 @@
<project name="dpml-jdo-enhancer" default="install" basedir="."
xmlns:transit="antlib:net.dpml.transit"
- xmlns:magic="antlib:net.dpml.magic"
+ xmlns:x="plugin:dpml/magic/dpml-magic-core"
>
- <transit:init />
- <import file="${dpml.templates}/standard.xml"/>
+
+ <transit:import uri="artifact:template:dpml/magic/standard"/>
<target name="package" depends="standard.package">
- <magic:export>
+ <x:export>
<antlib resource="net/dpml/jdo/antlib.xml" urn="antlib:net.dpml.jdo"/>
- </magic:export>
+ </x:export>
</target>
</project>
Modified: development/planet/users/niclas/jdo/kodo-hsqldb-test/build.xml
==============================================================================
--- development/planet/users/niclas/jdo/kodo-hsqldb-test/build.xml
(original)
+++ development/planet/users/niclas/jdo/kodo-hsqldb-test/build.xml Thu
Mar 31 17:11:44 2005
@@ -18,11 +18,11 @@
<project name="dpml-jdo-kodo-hsqldb-test" default="install" basedir="."
xmlns:transit="antlib:net.dpml.transit"
- xmlns:magic="antlib:net.dpml.magic"
+ xmlns:x="plugin:dpml/magic/dpml-magic-core"
xmlns:kodo="antlib:net.dpml.jdo.kodo"
>
- <transit:init />
- <import file="${dpml.templates}/standard.xml"/>
+
+ <transit:import uri="artifact:template:dpml/magic/standard"/>
<target name="build" depends="standard.build" >
<mkdir dir="${basedir}/target/schemas"/>
Added:
development/planet/users/niclas/jdo/kodo-hsqldb-test/src/test/net/dpml/jdo/kodo/test/KodoTestCase.java
==============================================================================
--- (empty file)
+++
development/planet/users/niclas/jdo/kodo-hsqldb-test/src/test/net/dpml/jdo/kodo/test/KodoTestCase.java
Thu Mar 31 17:11:44 2005
@@ -0,0 +1,66 @@
+package net.dpml.jdo.kodo.test;
+
+import java.io.InputStream;
+
+import java.util.Collection;
+import java.util.Properties;
+
+import javax.jdo.JDOHelper;
+import javax.jdo.PersistenceManager;
+import javax.jdo.PersistenceManagerFactory;
+import javax.jdo.Query;
+import javax.jdo.Transaction;
+
+import junit.framework.TestCase;
+
+public class KodoTestCase extends TestCase
+{
+ private PersistenceManagerFactory m_Factory;
+ private PersistenceManager m_Jdo;
+
+ public void setUp()
+ throws Exception
+ {
+ Properties props = new Properties();
+ InputStream in = getClass().getClassLoader().getResourceAsStream(
"kodo.properties" );
+ props.load( in );
+
+ m_Factory = JDOHelper.getPersistenceManagerFactory( props );
+ m_Jdo = m_Factory.getPersistenceManager();
+ }
+
+ public void tearDown()
+ throws Exception
+ {
+ m_Jdo.close();
+ m_Factory.close();
+ }
+
+ public void testAddOneB()
+ throws Exception
+ {
+ Transaction tx = m_Jdo.currentTransaction();
+ try
+ {
+ tx.begin();
+ B b = new B( "My Name" );
+ m_Jdo.makePersistent( b );
+ tx.commit();
+ } catch( Exception e )
+ {
+ tx.rollback();
+ throw e;
+ }
+ Query q = m_Jdo.newQuery( B.class, "name == \"My Name\"" );
+ try
+ {
+ Collection c = (Collection) q.execute();
+ assertEquals( "Returned items", 1, c.size() );
+ String name = (String) c.iterator().next();
+ assertEquals( "Name", "My Name", name );
+ } finally
+ {
+ q.closeAll();
+ }
+ }
+}
Modified: development/planet/users/niclas/jdo/kodo-hsqldb/build.xml
==============================================================================
--- development/planet/users/niclas/jdo/kodo-hsqldb/build.xml (original)
+++ development/planet/users/niclas/jdo/kodo-hsqldb/build.xml Thu Mar 31
17:11:44 2005
@@ -18,91 +18,90 @@
<project name="dpml-jdo-kodo-hsqldb" default="install" basedir="."
xmlns:transit="antlib:net.dpml.transit"
- xmlns:magic="antlib:net.dpml.magic"
+ xmlns:x="plugin:dpml/magic/dpml-magic-core"
>
- <transit:init />
- <import file="${dpml.templates}/standard.xml"/>
+ <transit:import uri="artifact:template:dpml/magic/standard"/>
<target name="build" depends="standard.build" >
- <magic:block name="kodo-hsqldb" >
- <magic:component name="factory"
class="net.dpml.jdo.kodo.PersistenceManagerFactoryImpl">
- <magic:parameters>
+ <x:block name="kodo-hsqldb" >
+ <x:component name="factory"
class="net.dpml.jdo.kodo.PersistenceManagerFactoryImpl">
+ <x:parameters>
<!-- Standard JDO proeprties -->
- <magic:parameter name="javax.jdo.option.ConnectionDriverName"
value="org.hsqldb.jdbcDriver" />
- <magic:parameter name="javax.jdo.option.ConnectionURL"
value="jdbc:hsqldb:db-kodo" />
- <magic:parameter name="javax.jdo.option.ConnectionUserName"
value="sa" />
- <magic:parameter name="javax.jdo.option.ConnectionPassword"
value="" />
+ <x:parameter name="javax.jdo.option.ConnectionDriverName"
value="org.hsqldb.jdbcDriver" />
+ <x:parameter name="javax.jdo.option.ConnectionURL"
value="jdbc:hsqldb:db-kodo" />
+ <x:parameter name="javax.jdo.option.ConnectionUserName" value="sa"
/>
+ <x:parameter name="javax.jdo.option.ConnectionPassword" value="" />
<!-- Not used now.
- <magic:parameter name="javax.jdo.option.ConnectionFactoryName"
value="" />
- <magic:parameter name="javax.jdo.option.ConnectionFactory2Name"
value="" />
- <magic:parameter name="javax.jdo.option.IgnoreCache" value="" />
- <magic:parameter name="javax.jdo.option.Multithreaded" value="" />
- <magic:parameter name="javax.jdo.option.NontransactionalRead"
value="" />
- <magic:parameter name="javax.jdo.option.NontransactionalWrite"
value="" />
- <magic:parameter name="javax.jdo.option.Optimistic" value="" />
- <magic:parameter name="javax.jdo.option.RestoreValues" value="" />
- <magic:parameter name="javax.jdo.option.RetainValues" value="" />
+ <x:parameter name="javax.jdo.option.ConnectionFactoryName"
value="" />
+ <x:parameter name="javax.jdo.option.ConnectionFactory2Name"
value="" />
+ <x:parameter name="javax.jdo.option.IgnoreCache" value="" />
+ <x:parameter name="javax.jdo.option.Multithreaded" value="" />
+ <x:parameter name="javax.jdo.option.NontransactionalRead" value=""
/>
+ <x:parameter name="javax.jdo.option.NontransactionalWrite"
value="" />
+ <x:parameter name="javax.jdo.option.Optimistic" value="" />
+ <x:parameter name="javax.jdo.option.RestoreValues" value="" />
+ <x:parameter name="javax.jdo.option.RetainValues" value="" />
-->
<!-- Kodo specific properties. -->
- <magic:parameter name="kodo.ConnectionFactoryProperties"
+ <x:parameter name="kodo.ConnectionFactoryProperties"
value="MaxActive=50, MaxIdle=10,
ValidationTimeout=50000, MaxCachedStatements=100, ValidationSQL=" />
- <magic:parameter name="kodo.LicenseKey" value="" />
+ <x:parameter name="kodo.LicenseKey" value="" />
<!-- Not used now.
- <magic:parameter name="kodo.AggregateListeners" value="" />
- <magic:parameter name="kodo.ClassResolver" value="" />
- <magic:parameter name="kodo.ConnectionProperties" value="" />
- <magic:parameter name="kodo.Connection2DriverName" value="" />
- <magic:parameter name="kodo.Connection2Password" value="" />
- <magic:parameter name="kodo.Connection2URL" value="" />
- <magic:parameter name="kodo.Connection2UserName" value="" />
- <magic:parameter name="kodo.Connection2Properties" value="" />
- <magic:parameter name="kodo.ConnectionFactory2Properties" value=""
/>
- <magic:parameter name="kodo.ConnectionRetainMode" value="" />
- <magic:parameter name="kodo.CopyObjectIds" value="" />
- <magic:parameter name="kodo.DataCache" value="" />
- <magic:parameter name="kodo.DataCacheTimeout" value="" />
- <magic:parameter name="kodo.EagerFetchMode" value="" />
- <magic:parameter name="kodo.FetchBatchSize" value="" />
- <magic:parameter name="kodo.FetchGroups" value="" />
- <magic:parameter name="kodo.FilterListeners" value="" />
- <magic:parameter name="kodo.FlushBeforeQueries" value="" />
- <magic:parameter name="kodo.ManagedRuntime" value="" />
- <magic:parameter name="kodo.ManagementServer" value="" />
- <magic:parameter name="kodo.ManagementUI" value="" />
- <magic:parameter name="kodo.PersistenceManagerImpl" value="" />
- <magic:parameter name="kodo.PersistentClasses" value="" />
- <magic:parameter name="kodo.ProxyManager" value="" />
- <magic:parameter name="kodo.QueryCache" value="" />
- <magic:parameter name="kodo.QueryCompilationCache" value="" />
- <magic:parameter name="kodo.RemoteCommitProvider" value="" />
- <magic:parameter name="kodo.RestoreMutableValues" value="" />
- <magic:parameter name="kodo.RetainValuesInOptimistic" value="" />
- <magic:parameter name="kodo.TransactionMode" value="" />
- <magic:parameter name="kodo.jdbc.AutoIncrementConstraints"
value="" />
- <magic:parameter name="kodo.jdbc.ClassIndicator" value="" />
- <magic:parameter name="kodo.jdbc.ConnectionDecorators" value="" />
- <magic:parameter name="kodo.jdbc.DataSourceMode" value="" />
- <magic:parameter name="kodo.jdbc.DBDictionary" value="" />
- <magic:parameter name="kodo.jdbc.FetchDirection" value="" />
- <magic:parameter name="kodo.jdbc.ForeignKeyConstraints" value="" />
- <magic:parameter name="kodo.jdbc.JDBCListeners" value="" />
- <magic:parameter name="kodo.jdbc.LRSSize" value="" />
- <magic:parameter name="kodo.jdbc.MappingFactory" value="" />
- <magic:parameter name="kodo.jdbc.ResultSetType" value="" />
- <magic:parameter name="kodo.jdbc.SchemaFactory" value="" />
- <magic:parameter name="kodo.jdbc.Schemas" value="" />
- <magic:parameter name="kodo.jdbc.SequenceFactory" value="" />
- <magic:parameter name="kodo.jdbc.SubclassMapping" value="" />
- <magic:parameter name="kodo.jdbc.TransactionIsolation" value="" />
- <magic:parameter name="kodo.jdbc.UpdateManager" value="" />
- <magic:parameter name="kodo.jdbc.VersionIndicator" value="" />
+ <x:parameter name="kodo.AggregateListeners" value="" />
+ <x:parameter name="kodo.ClassResolver" value="" />
+ <x:parameter name="kodo.ConnectionProperties" value="" />
+ <x:parameter name="kodo.Connection2DriverName" value="" />
+ <x:parameter name="kodo.Connection2Password" value="" />
+ <x:parameter name="kodo.Connection2URL" value="" />
+ <x:parameter name="kodo.Connection2UserName" value="" />
+ <x:parameter name="kodo.Connection2Properties" value="" />
+ <x:parameter name="kodo.ConnectionFactory2Properties" value="" />
+ <x:parameter name="kodo.ConnectionRetainMode" value="" />
+ <x:parameter name="kodo.CopyObjectIds" value="" />
+ <x:parameter name="kodo.DataCache" value="" />
+ <x:parameter name="kodo.DataCacheTimeout" value="" />
+ <x:parameter name="kodo.EagerFetchMode" value="" />
+ <x:parameter name="kodo.FetchBatchSize" value="" />
+ <x:parameter name="kodo.FetchGroups" value="" />
+ <x:parameter name="kodo.FilterListeners" value="" />
+ <x:parameter name="kodo.FlushBeforeQueries" value="" />
+ <x:parameter name="kodo.ManagedRuntime" value="" />
+ <x:parameter name="kodo.ManagementServer" value="" />
+ <x:parameter name="kodo.ManagementUI" value="" />
+ <x:parameter name="kodo.PersistenceManagerImpl" value="" />
+ <x:parameter name="kodo.PersistentClasses" value="" />
+ <x:parameter name="kodo.ProxyManager" value="" />
+ <x:parameter name="kodo.QueryCache" value="" />
+ <x:parameter name="kodo.QueryCompilationCache" value="" />
+ <x:parameter name="kodo.RemoteCommitProvider" value="" />
+ <x:parameter name="kodo.RestoreMutableValues" value="" />
+ <x:parameter name="kodo.RetainValuesInOptimistic" value="" />
+ <x:parameter name="kodo.TransactionMode" value="" />
+ <x:parameter name="kodo.jdbc.AutoIncrementConstraints" value="" />
+ <x:parameter name="kodo.jdbc.ClassIndicator" value="" />
+ <x:parameter name="kodo.jdbc.ConnectionDecorators" value="" />
+ <x:parameter name="kodo.jdbc.DataSourceMode" value="" />
+ <x:parameter name="kodo.jdbc.DBDictionary" value="" />
+ <x:parameter name="kodo.jdbc.FetchDirection" value="" />
+ <x:parameter name="kodo.jdbc.ForeignKeyConstraints" value="" />
+ <x:parameter name="kodo.jdbc.JDBCListeners" value="" />
+ <x:parameter name="kodo.jdbc.LRSSize" value="" />
+ <x:parameter name="kodo.jdbc.MappingFactory" value="" />
+ <x:parameter name="kodo.jdbc.ResultSetType" value="" />
+ <x:parameter name="kodo.jdbc.SchemaFactory" value="" />
+ <x:parameter name="kodo.jdbc.Schemas" value="" />
+ <x:parameter name="kodo.jdbc.SequenceFactory" value="" />
+ <x:parameter name="kodo.jdbc.SubclassMapping" value="" />
+ <x:parameter name="kodo.jdbc.TransactionIsolation" value="" />
+ <x:parameter name="kodo.jdbc.UpdateManager" value="" />
+ <x:parameter name="kodo.jdbc.VersionIndicator" value="" />
-->
- </magic:parameters>
- </magic:component>
- </magic:block>
+ </x:parameters>
+ </x:component>
+ </x:block>
</target>
</project>
Modified: development/planet/users/niclas/jdo/kodo-task/build.xml
==============================================================================
--- development/planet/users/niclas/jdo/kodo-task/build.xml (original)
+++ development/planet/users/niclas/jdo/kodo-task/build.xml Thu Mar 31
17:11:44 2005
@@ -18,15 +18,15 @@
<project name="dpml-jdo-kodo-task" default="install" basedir="."
xmlns:transit="antlib:net.dpml.transit"
- xmlns:magic="antlib:net.dpml.magic"
+ xmlns:x="plugin:dpml/magic/dpml-magic-core"
>
- <transit:init />
- <import file="${dpml.templates}/standard.xml"/>
+
+ <transit:import uri="artifact:template:dpml/magic/standard"/>
<target name="package" depends="standard.package">
- <magic:export>
+ <x:export>
<antlib resource="net/dpml/jdo/kodo/antlib.xml"
urn="antlib:net.dpml.jdo.kodo"/>
- </magic:export>
+ </x:export>
</target>
</project>
Modified: development/planet/users/niclas/jdo/tjdo-hsqldb/build.xml
==============================================================================
--- development/planet/users/niclas/jdo/tjdo-hsqldb/build.xml (original)
+++ development/planet/users/niclas/jdo/tjdo-hsqldb/build.xml Thu Mar 31
17:11:44 2005
@@ -18,21 +18,20 @@
<project name="dpml-jdo-tjdo-hsqldb" default="install" basedir="."
xmlns:transit="antlib:net.dpml.transit"
- xmlns:magic="antlib:net.dpml.magic"
+ xmlns:x="plugin:dpml/magic/dpml-magic-core"
>
- <transit:init />
- <import file="${dpml.templates}/standard.xml"/>
+ <transit:import uri="artifact:template:dpml/magic/standard"/>
<target name="build" depends="standard.build" >
- <magic:block name="tjdo-hsqldb" >
- <magic:component name="factory"
class="net.dpml.jdo.kodo.PersistenceManagerFactoryImpl">
- <magic:parameters>
+ <x:block name="tjdo-hsqldb" >
+ <x:component name="factory"
class="net.dpml.jdo.kodo.PersistenceManagerFactoryImpl">
+ <x:parameters>
<!-- Standard JDO proeprties -->
- <magic:parameter name="javax.jdo.option.ConnectionDriverName"
value="org.hsqldb.jdbcDriver" />
- <magic:parameter name="javax.jdo.option.ConnectionURL"
value="jdbc:hsqldb:db-kodo" />
- <magic:parameter name="javax.jdo.option.ConnectionUserName"
value="sa" />
- <magic:parameter name="javax.jdo.option.ConnectionPassword"
value="" />
+ <x:parameter name="javax.jdo.option.ConnectionDriverName"
value="org.hsqldb.jdbcDriver" />
+ <x:parameter name="javax.jdo.option.ConnectionURL"
value="jdbc:hsqldb:db-kodo" />
+ <x:parameter name="javax.jdo.option.ConnectionUserName" value="sa"
/>
+ <x:parameter name="javax.jdo.option.ConnectionPassword" value="" />
<!-- Not used now.
<magic:parameter name="javax.jdo.option.ConnectionFactoryName"
value="" />
@@ -46,8 +45,8 @@
<magic:parameter name="javax.jdo.option.RetainValues" value="" />
-->
- </magic:parameters>
- </magic:component>
- </magic:block>
+ </x:parameters>
+ </x:component>
+ </x:block>
</target>
</project>
- svn commit: r2181 - in development/planet/users/niclas/jdo: . common jdo-enhancer kodo-hsqldb kodo-hsqldb-test kodo-hsqldb-test/src/main/net/dpml/jdo/kodo/test kodo-hsqldb-test/src/test kodo-hsqldb-test/src/test/net kodo-hsqldb-test/src/test/net/dpml kodo-hsqldb-test/src/test/net/dpml/jdo kodo-hsqldb-test/src/test/net/dpml/jdo/kodo kodo-hsqldb-test/src/test/net/dpml/jdo/kodo/test kodo-task tjdo-hsqldb, niclas, 03/31/2005
Archive powered by MHonArc 2.6.24.