continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r279123 [2/3] - in /maven/continuum/trunk/continuum-updater: ./ src/ src/assemble/ src/bin/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/maven/ src/main/java/org/apache/maven/continuum/ src/...
Date Tue, 06 Sep 2005 21:36:35 GMT
Added: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumJPoxStore.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumJPoxStore.java?rev=279123&view=auto
==============================================================================
--- maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumJPoxStore.java (added)
+++ maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumJPoxStore.java Tue Sep  6 14:36:03 2005
@@ -0,0 +1,2237 @@
+package org.apache.maven.continuum.project.v1_0_alpha_3;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Iterator;
+
+import javax.jdo.Extent;
+import javax.jdo.FetchPlan;
+import javax.jdo.Query;
+import javax.jdo.PersistenceManager;
+import javax.jdo.PersistenceManagerFactory;
+import javax.jdo.JDOUserException;
+import javax.jdo.Transaction;
+
+// Model class imports
+import org.apache.maven.continuum.scm.v1_0_alpha_3.CheckOutScmResult;
+import org.apache.maven.continuum.scm.v1_0_alpha_3.UpdateScmResult;
+
+/**
+ * Generated JPox storage mechanism for Continuum.
+ *
+ * @author Mr Modello
+ */
+public class ContinuumJPoxStore
+{
+        public final static String ContinuumProject_DETAIL_FETCH_GROUP = "ContinuumProject_detail";
+        public final static String ContinuumNotifier_DETAIL_FETCH_GROUP = "ContinuumNotifier_detail";
+        public final static String ContinuumDeveloper_DETAIL_FETCH_GROUP = "ContinuumDeveloper_detail";
+        public final static String MavenTwoProject_DETAIL_FETCH_GROUP = "MavenTwoProject_detail";
+        public final static String MavenOneProject_DETAIL_FETCH_GROUP = "MavenOneProject_detail";
+        public final static String AntProject_DETAIL_FETCH_GROUP = "AntProject_detail";
+        public final static String ShellProject_DETAIL_FETCH_GROUP = "ShellProject_detail";
+        public final static String ContinuumBuild_DETAIL_FETCH_GROUP = "ContinuumBuild_detail";
+        public final static String CheckOutScmResult_DETAIL_FETCH_GROUP = "CheckOutScmResult_detail";
+        public final static String UpdateScmResult_DETAIL_FETCH_GROUP = "UpdateScmResult_detail";
+    private static ThreadLocal threadState = new ThreadLocal();
+
+    private PersistenceManagerFactory pmf;
+
+    public ContinuumJPoxStore( PersistenceManagerFactory pmf )
+    {
+        this.pmf = pmf;
+    }
+
+    // ----------------------------------------------------------------------
+    //
+    // ----------------------------------------------------------------------
+
+    public static class ThreadState
+    {
+        private PersistenceManager pm;
+
+        private Transaction tx;
+
+        private int depth;
+
+        public PersistenceManager getPersistenceManager()
+        {
+            return pm;
+        }
+
+        public Transaction getTransaction()
+        {
+            return tx;
+        }
+
+        public int getDepth()
+        {
+            return depth;
+        }
+    }
+
+    // ----------------------------------------------------------------------
+    // Transaction Management Methods
+    // ----------------------------------------------------------------------
+
+    public ThreadState getThreadState()
+    {
+        return (ThreadState) threadState.get();
+    }
+
+    public PersistenceManager begin()
+        throws Exception
+    {
+        ThreadState state = (ThreadState) threadState.get();
+
+        if ( state == null )
+        {
+            state = new ThreadState();
+
+            state.pm = pmf.getPersistenceManager();
+
+            state.tx = state.pm.currentTransaction();
+
+            state.tx.begin();
+
+            threadState.set( state );
+
+            return state.pm;
+        }
+        else
+        {
+            state.depth++;
+
+            return state.pm;
+        }
+    }
+
+    public void commit()
+        throws Exception
+    {
+        ThreadState state = (ThreadState) threadState.get();
+
+        if ( state == null )
+        {
+            throw new Exception( "commit() must only be called after begin()." );
+        }
+
+        if ( state.depth > 0 )
+        {
+            state.depth--;
+
+            return;
+        }
+
+        threadState.set( null );
+
+        try
+        {
+            state.tx.commit();
+        }
+        catch( Exception ex )
+        {
+            if ( state.tx.isActive() )
+            {
+                state.tx.rollback();
+            }
+
+            throw ex;
+        }
+        finally
+        {
+            closePersistenceManager( state.pm );
+        }
+    }
+
+    public void rollback()
+        throws Exception
+    {
+        ThreadState state = (ThreadState) threadState.get();
+
+        if ( state == null )
+        {
+            // The tx is not active because it has already been committed or rolled back
+
+            return;
+        }
+
+        threadState.set( null );
+
+        try
+        {
+            if ( state.tx.isActive() )
+            {
+                state.tx.rollback();
+            }
+        }
+        finally
+        {
+            closePersistenceManager( state.pm );
+        }
+    }
+
+    // ----------------------------------------------------------------------
+    // ContinuumProject CRUD
+    // ----------------------------------------------------------------------
+
+    public Object addContinuumProject( ContinuumProject o )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            pm.makePersistent( o );
+
+            Object id = pm.getObjectId( o );
+
+            commit();
+
+            return id;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public Object storeContinuumProject( ContinuumProject o )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            Object id;
+
+            // New instance so store it
+            if ( o.getId() == null )
+            {
+                pm.makePersistent( o );
+
+                id = pm.getObjectId( o );
+            }
+            // exists, so update it
+            else
+            {
+                pm.attachCopy( o, true );
+
+                id = o.getId();
+            }
+
+            commit();
+
+            return id;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public void deleteContinuumProject( String id )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            Query query = pm.newQuery( ContinuumProject.class );
+
+            query.setIgnoreCache( true );
+
+            query.setFilter( "this.id == \"" + id + "\"" );
+
+            Collection result = (Collection) query.execute();
+
+            if ( result.isEmpty() )
+            {
+                throw new RuntimeException( "No such object of type \"ContinuumProject\" with id: \"" + id + "\"." );
+            }
+
+            pm.deletePersistentAll( result );
+
+            commit();
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public ContinuumProject getContinuumProject( String id, boolean detach )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            pm.getFetchPlan().setGroup( FetchPlan.DEFAULT );
+
+            pm.getFetchPlan().addGroup( "ContinuumProject_detail" );
+
+            Query query = pm.newQuery( ContinuumProject.class );
+
+            query.setIgnoreCache( true );
+
+            query.setFilter( "this.id == \"" + id + "\"" );
+
+            Collection result = (Collection) query.execute();
+
+            if ( result.isEmpty() )
+            {
+                throw new RuntimeException( "No such object of type \"ContinuumProject\" with id: \"" + id + "\"." );
+            }
+
+            ContinuumProject object = (ContinuumProject) result.iterator().next();
+
+            if ( detach )
+            {
+                object = (ContinuumProject) pm.detachCopy( object );
+            }
+
+            commit();
+
+            return object;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public ContinuumProject getContinuumProjectByJdoId( Object id, boolean detach )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            pm.getFetchPlan().setGroup( FetchPlan.DEFAULT );
+
+            pm.getFetchPlan().addGroup( "ContinuumProject_detail" );
+
+            ContinuumProject object = (ContinuumProject) pm.getObjectById( id, true );
+
+            if ( detach )
+            {
+                object = (ContinuumProject) pm.detachCopy( object );
+            }
+
+            commit();
+
+            return object;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public Collection getContinuumProjectCollection( boolean detach, String filter, String ordering )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            Extent extent = pm.getExtent( ContinuumProject.class, true );
+
+            Query query = pm.newQuery( extent );
+
+            if ( ordering != null )
+            {
+                query.setOrdering( ordering );
+            }
+
+            if ( filter != null )
+            {
+                query.setFilter( filter );
+            }
+
+            Collection result = ((Collection) query.execute() );
+
+            Collection collection;
+
+            // TODO: Why did was this done with a iterator and not makeTransientAll()? -- trygve
+            //       I would guess I had to do it this way to make sure JPOX fetched all fields
+            //       so this should probably go away now if detach works like expected.
+            //       Also; why refresh()?
+            if ( detach )
+            {
+                collection = new ArrayList();
+
+                for ( Iterator it = result.iterator(); it.hasNext(); )
+                {
+                    Object object = it.next();
+
+                    pm.refresh( object );
+
+                    object = pm.detachCopy( object );
+
+                    collection.add( object );
+                }
+            }
+            else
+            {
+                collection = result;
+            }
+
+            commit();
+
+            return collection;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    // ----------------------------------------------------------------------
+    // ContinuumNotifier CRUD
+    // ----------------------------------------------------------------------
+
+    public Object addContinuumNotifier( ContinuumNotifier o )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            pm.makePersistent( o );
+
+            Object id = pm.getObjectId( o );
+
+            commit();
+
+            return id;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+
+    public void deleteContinuumNotifier( String id )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            Query query = pm.newQuery( ContinuumNotifier.class );
+
+            query.setIgnoreCache( true );
+
+            query.setFilter( "this.id == \"" + id + "\"" );
+
+            Collection result = (Collection) query.execute();
+
+            if ( result.isEmpty() )
+            {
+                throw new RuntimeException( "No such object of type \"ContinuumNotifier\" with id: \"" + id + "\"." );
+            }
+
+            pm.deletePersistentAll( result );
+
+            commit();
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public ContinuumNotifier getContinuumNotifier( String id, boolean detach )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            pm.getFetchPlan().setGroup( FetchPlan.DEFAULT );
+
+            pm.getFetchPlan().addGroup( "ContinuumNotifier_detail" );
+
+            Query query = pm.newQuery( ContinuumNotifier.class );
+
+            query.setIgnoreCache( true );
+
+            query.setFilter( "this.id == \"" + id + "\"" );
+
+            Collection result = (Collection) query.execute();
+
+            if ( result.isEmpty() )
+            {
+                throw new RuntimeException( "No such object of type \"ContinuumNotifier\" with id: \"" + id + "\"." );
+            }
+
+            ContinuumNotifier object = (ContinuumNotifier) result.iterator().next();
+
+            if ( detach )
+            {
+                object = (ContinuumNotifier) pm.detachCopy( object );
+            }
+
+            commit();
+
+            return object;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public ContinuumNotifier getContinuumNotifierByJdoId( Object id, boolean detach )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            pm.getFetchPlan().setGroup( FetchPlan.DEFAULT );
+
+            pm.getFetchPlan().addGroup( "ContinuumNotifier_detail" );
+
+            ContinuumNotifier object = (ContinuumNotifier) pm.getObjectById( id, true );
+
+            if ( detach )
+            {
+                object = (ContinuumNotifier) pm.detachCopy( object );
+            }
+
+            commit();
+
+            return object;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public Collection getContinuumNotifierCollection( boolean detach, String filter, String ordering )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            Extent extent = pm.getExtent( ContinuumNotifier.class, true );
+
+            Query query = pm.newQuery( extent );
+
+            if ( ordering != null )
+            {
+                query.setOrdering( ordering );
+            }
+
+            if ( filter != null )
+            {
+                query.setFilter( filter );
+            }
+
+            Collection result = ((Collection) query.execute() );
+
+            Collection collection;
+
+            // TODO: Why did was this done with a iterator and not makeTransientAll()? -- trygve
+            //       I would guess I had to do it this way to make sure JPOX fetched all fields
+            //       so this should probably go away now if detach works like expected.
+            //       Also; why refresh()?
+            if ( detach )
+            {
+                collection = new ArrayList();
+
+                for ( Iterator it = result.iterator(); it.hasNext(); )
+                {
+                    Object object = it.next();
+
+                    pm.refresh( object );
+
+                    object = pm.detachCopy( object );
+
+                    collection.add( object );
+                }
+            }
+            else
+            {
+                collection = result;
+            }
+
+            commit();
+
+            return collection;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    // ----------------------------------------------------------------------
+    // ContinuumDeveloper CRUD
+    // ----------------------------------------------------------------------
+
+    public Object addContinuumDeveloper( ContinuumDeveloper o )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            pm.makePersistent( o );
+
+            Object id = pm.getObjectId( o );
+
+            commit();
+
+            return id;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public Object storeContinuumDeveloper( ContinuumDeveloper o )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            Object id;
+
+            // New instance so store it
+            if ( o.getId() == null )
+            {
+                pm.makePersistent( o );
+
+                id = pm.getObjectId( o );
+            }
+            // exists, so update it
+            else
+            {
+                pm.attachCopy( o, true );
+
+                id = o.getId();
+            }
+
+            commit();
+
+            return id;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public void deleteContinuumDeveloper( String id )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            Query query = pm.newQuery( ContinuumDeveloper.class );
+
+            query.setIgnoreCache( true );
+
+            query.setFilter( "this.id == \"" + id + "\"" );
+
+            Collection result = (Collection) query.execute();
+
+            if ( result.isEmpty() )
+            {
+                throw new RuntimeException( "No such object of type \"ContinuumDeveloper\" with id: \"" + id + "\"." );
+            }
+
+            pm.deletePersistentAll( result );
+
+            commit();
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public ContinuumDeveloper getContinuumDeveloper( String id, boolean detach )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            pm.getFetchPlan().setGroup( FetchPlan.DEFAULT );
+
+            pm.getFetchPlan().addGroup( "ContinuumDeveloper_detail" );
+
+            Query query = pm.newQuery( ContinuumDeveloper.class );
+
+            query.setIgnoreCache( true );
+
+            query.setFilter( "this.id == \"" + id + "\"" );
+
+            Collection result = (Collection) query.execute();
+
+            if ( result.isEmpty() )
+            {
+                throw new RuntimeException( "No such object of type \"ContinuumDeveloper\" with id: \"" + id + "\"." );
+            }
+
+            ContinuumDeveloper object = (ContinuumDeveloper) result.iterator().next();
+
+            if ( detach )
+            {
+                object = (ContinuumDeveloper) pm.detachCopy( object );
+            }
+
+            commit();
+
+            return object;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public ContinuumDeveloper getContinuumDeveloperByJdoId( Object id, boolean detach )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            pm.getFetchPlan().setGroup( FetchPlan.DEFAULT );
+
+            pm.getFetchPlan().addGroup( "ContinuumDeveloper_detail" );
+
+            ContinuumDeveloper object = (ContinuumDeveloper) pm.getObjectById( id, true );
+
+            if ( detach )
+            {
+                object = (ContinuumDeveloper) pm.detachCopy( object );
+            }
+
+            commit();
+
+            return object;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public Collection getContinuumDeveloperCollection( boolean detach, String filter, String ordering )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            Extent extent = pm.getExtent( ContinuumDeveloper.class, true );
+
+            Query query = pm.newQuery( extent );
+
+            if ( ordering != null )
+            {
+                query.setOrdering( ordering );
+            }
+
+            if ( filter != null )
+            {
+                query.setFilter( filter );
+            }
+
+            Collection result = ((Collection) query.execute() );
+
+            Collection collection;
+
+            // TODO: Why did was this done with a iterator and not makeTransientAll()? -- trygve
+            //       I would guess I had to do it this way to make sure JPOX fetched all fields
+            //       so this should probably go away now if detach works like expected.
+            //       Also; why refresh()?
+            if ( detach )
+            {
+                collection = new ArrayList();
+
+                for ( Iterator it = result.iterator(); it.hasNext(); )
+                {
+                    Object object = it.next();
+
+                    pm.refresh( object );
+
+                    object = pm.detachCopy( object );
+
+                    collection.add( object );
+                }
+            }
+            else
+            {
+                collection = result;
+            }
+
+            commit();
+
+            return collection;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    // ----------------------------------------------------------------------
+    // MavenTwoProject CRUD
+    // ----------------------------------------------------------------------
+
+    public Object addMavenTwoProject( MavenTwoProject o )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            pm.makePersistent( o );
+
+            Object id = pm.getObjectId( o );
+
+            commit();
+
+            return id;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+
+    public void deleteMavenTwoProject( String id )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            Query query = pm.newQuery( MavenTwoProject.class );
+
+            query.setIgnoreCache( true );
+
+            query.setFilter( "this.id == \"" + id + "\"" );
+
+            Collection result = (Collection) query.execute();
+
+            if ( result.isEmpty() )
+            {
+                throw new RuntimeException( "No such object of type \"MavenTwoProject\" with id: \"" + id + "\"." );
+            }
+
+            pm.deletePersistentAll( result );
+
+            commit();
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public MavenTwoProject getMavenTwoProject( String id, boolean detach )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            pm.getFetchPlan().setGroup( FetchPlan.DEFAULT );
+
+            pm.getFetchPlan().addGroup( "MavenTwoProject_detail" );
+
+            Query query = pm.newQuery( MavenTwoProject.class );
+
+            query.setIgnoreCache( true );
+
+            query.setFilter( "this.id == \"" + id + "\"" );
+
+            Collection result = (Collection) query.execute();
+
+            if ( result.isEmpty() )
+            {
+                throw new RuntimeException( "No such object of type \"MavenTwoProject\" with id: \"" + id + "\"." );
+            }
+
+            MavenTwoProject object = (MavenTwoProject) result.iterator().next();
+
+            if ( detach )
+            {
+                object = (MavenTwoProject) pm.detachCopy( object );
+            }
+
+            commit();
+
+            return object;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public MavenTwoProject getMavenTwoProjectByJdoId( Object id, boolean detach )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            pm.getFetchPlan().setGroup( FetchPlan.DEFAULT );
+
+            pm.getFetchPlan().addGroup( "MavenTwoProject_detail" );
+
+            MavenTwoProject object = (MavenTwoProject) pm.getObjectById( id, true );
+
+            if ( detach )
+            {
+                object = (MavenTwoProject) pm.detachCopy( object );
+            }
+
+            commit();
+
+            return object;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public Collection getMavenTwoProjectCollection( boolean detach, String filter, String ordering )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            Extent extent = pm.getExtent( MavenTwoProject.class, true );
+
+            Query query = pm.newQuery( extent );
+
+            if ( ordering != null )
+            {
+                query.setOrdering( ordering );
+            }
+
+            if ( filter != null )
+            {
+                query.setFilter( filter );
+            }
+
+            Collection result = ((Collection) query.execute() );
+
+            Collection collection;
+
+            // TODO: Why did was this done with a iterator and not makeTransientAll()? -- trygve
+            //       I would guess I had to do it this way to make sure JPOX fetched all fields
+            //       so this should probably go away now if detach works like expected.
+            //       Also; why refresh()?
+            if ( detach )
+            {
+                collection = new ArrayList();
+
+                for ( Iterator it = result.iterator(); it.hasNext(); )
+                {
+                    Object object = it.next();
+
+                    pm.refresh( object );
+
+                    object = pm.detachCopy( object );
+
+                    collection.add( object );
+                }
+            }
+            else
+            {
+                collection = result;
+            }
+
+            commit();
+
+            return collection;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    // ----------------------------------------------------------------------
+    // MavenOneProject CRUD
+    // ----------------------------------------------------------------------
+
+    public Object addMavenOneProject( MavenOneProject o )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            pm.makePersistent( o );
+
+            Object id = pm.getObjectId( o );
+
+            commit();
+
+            return id;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+
+    public void deleteMavenOneProject( String id )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            Query query = pm.newQuery( MavenOneProject.class );
+
+            query.setIgnoreCache( true );
+
+            query.setFilter( "this.id == \"" + id + "\"" );
+
+            Collection result = (Collection) query.execute();
+
+            if ( result.isEmpty() )
+            {
+                throw new RuntimeException( "No such object of type \"MavenOneProject\" with id: \"" + id + "\"." );
+            }
+
+            pm.deletePersistentAll( result );
+
+            commit();
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public MavenOneProject getMavenOneProject( String id, boolean detach )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            pm.getFetchPlan().setGroup( FetchPlan.DEFAULT );
+
+            pm.getFetchPlan().addGroup( "MavenOneProject_detail" );
+
+            Query query = pm.newQuery( MavenOneProject.class );
+
+            query.setIgnoreCache( true );
+
+            query.setFilter( "this.id == \"" + id + "\"" );
+
+            Collection result = (Collection) query.execute();
+
+            if ( result.isEmpty() )
+            {
+                throw new RuntimeException( "No such object of type \"MavenOneProject\" with id: \"" + id + "\"." );
+            }
+
+            MavenOneProject object = (MavenOneProject) result.iterator().next();
+
+            if ( detach )
+            {
+                object = (MavenOneProject) pm.detachCopy( object );
+            }
+
+            commit();
+
+            return object;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public MavenOneProject getMavenOneProjectByJdoId( Object id, boolean detach )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            pm.getFetchPlan().setGroup( FetchPlan.DEFAULT );
+
+            pm.getFetchPlan().addGroup( "MavenOneProject_detail" );
+
+            MavenOneProject object = (MavenOneProject) pm.getObjectById( id, true );
+
+            if ( detach )
+            {
+                object = (MavenOneProject) pm.detachCopy( object );
+            }
+
+            commit();
+
+            return object;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public Collection getMavenOneProjectCollection( boolean detach, String filter, String ordering )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            Extent extent = pm.getExtent( MavenOneProject.class, true );
+
+            Query query = pm.newQuery( extent );
+
+            if ( ordering != null )
+            {
+                query.setOrdering( ordering );
+            }
+
+            if ( filter != null )
+            {
+                query.setFilter( filter );
+            }
+
+            Collection result = ((Collection) query.execute() );
+
+            Collection collection;
+
+            // TODO: Why did was this done with a iterator and not makeTransientAll()? -- trygve
+            //       I would guess I had to do it this way to make sure JPOX fetched all fields
+            //       so this should probably go away now if detach works like expected.
+            //       Also; why refresh()?
+            if ( detach )
+            {
+                collection = new ArrayList();
+
+                for ( Iterator it = result.iterator(); it.hasNext(); )
+                {
+                    Object object = it.next();
+
+                    pm.refresh( object );
+
+                    object = pm.detachCopy( object );
+
+                    collection.add( object );
+                }
+            }
+            else
+            {
+                collection = result;
+            }
+
+            commit();
+
+            return collection;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    // ----------------------------------------------------------------------
+    // AntProject CRUD
+    // ----------------------------------------------------------------------
+
+    public Object addAntProject( AntProject o )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            pm.makePersistent( o );
+
+            Object id = pm.getObjectId( o );
+
+            commit();
+
+            return id;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+
+    public void deleteAntProject( String id )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            Query query = pm.newQuery( AntProject.class );
+
+            query.setIgnoreCache( true );
+
+            query.setFilter( "this.id == \"" + id + "\"" );
+
+            Collection result = (Collection) query.execute();
+
+            if ( result.isEmpty() )
+            {
+                throw new RuntimeException( "No such object of type \"AntProject\" with id: \"" + id + "\"." );
+            }
+
+            pm.deletePersistentAll( result );
+
+            commit();
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public AntProject getAntProject( String id, boolean detach )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            pm.getFetchPlan().setGroup( FetchPlan.DEFAULT );
+
+            pm.getFetchPlan().addGroup( "AntProject_detail" );
+
+            Query query = pm.newQuery( AntProject.class );
+
+            query.setIgnoreCache( true );
+
+            query.setFilter( "this.id == \"" + id + "\"" );
+
+            Collection result = (Collection) query.execute();
+
+            if ( result.isEmpty() )
+            {
+                throw new RuntimeException( "No such object of type \"AntProject\" with id: \"" + id + "\"." );
+            }
+
+            AntProject object = (AntProject) result.iterator().next();
+
+            if ( detach )
+            {
+                object = (AntProject) pm.detachCopy( object );
+            }
+
+            commit();
+
+            return object;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public AntProject getAntProjectByJdoId( Object id, boolean detach )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            pm.getFetchPlan().setGroup( FetchPlan.DEFAULT );
+
+            pm.getFetchPlan().addGroup( "AntProject_detail" );
+
+            AntProject object = (AntProject) pm.getObjectById( id, true );
+
+            if ( detach )
+            {
+                object = (AntProject) pm.detachCopy( object );
+            }
+
+            commit();
+
+            return object;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public Collection getAntProjectCollection( boolean detach, String filter, String ordering )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            Extent extent = pm.getExtent( AntProject.class, true );
+
+            Query query = pm.newQuery( extent );
+
+            if ( ordering != null )
+            {
+                query.setOrdering( ordering );
+            }
+
+            if ( filter != null )
+            {
+                query.setFilter( filter );
+            }
+
+            Collection result = ((Collection) query.execute() );
+
+            Collection collection;
+
+            // TODO: Why did was this done with a iterator and not makeTransientAll()? -- trygve
+            //       I would guess I had to do it this way to make sure JPOX fetched all fields
+            //       so this should probably go away now if detach works like expected.
+            //       Also; why refresh()?
+            if ( detach )
+            {
+                collection = new ArrayList();
+
+                for ( Iterator it = result.iterator(); it.hasNext(); )
+                {
+                    Object object = it.next();
+
+                    pm.refresh( object );
+
+                    object = pm.detachCopy( object );
+
+                    collection.add( object );
+                }
+            }
+            else
+            {
+                collection = result;
+            }
+
+            commit();
+
+            return collection;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    // ----------------------------------------------------------------------
+    // ShellProject CRUD
+    // ----------------------------------------------------------------------
+
+    public Object addShellProject( ShellProject o )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            pm.makePersistent( o );
+
+            Object id = pm.getObjectId( o );
+
+            commit();
+
+            return id;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+
+    public void deleteShellProject( String id )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            Query query = pm.newQuery( ShellProject.class );
+
+            query.setIgnoreCache( true );
+
+            query.setFilter( "this.id == \"" + id + "\"" );
+
+            Collection result = (Collection) query.execute();
+
+            if ( result.isEmpty() )
+            {
+                throw new RuntimeException( "No such object of type \"ShellProject\" with id: \"" + id + "\"." );
+            }
+
+            pm.deletePersistentAll( result );
+
+            commit();
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public ShellProject getShellProject( String id, boolean detach )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            pm.getFetchPlan().setGroup( FetchPlan.DEFAULT );
+
+            pm.getFetchPlan().addGroup( "ShellProject_detail" );
+
+            Query query = pm.newQuery( ShellProject.class );
+
+            query.setIgnoreCache( true );
+
+            query.setFilter( "this.id == \"" + id + "\"" );
+
+            Collection result = (Collection) query.execute();
+
+            if ( result.isEmpty() )
+            {
+                throw new RuntimeException( "No such object of type \"ShellProject\" with id: \"" + id + "\"." );
+            }
+
+            ShellProject object = (ShellProject) result.iterator().next();
+
+            if ( detach )
+            {
+                object = (ShellProject) pm.detachCopy( object );
+            }
+
+            commit();
+
+            return object;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public ShellProject getShellProjectByJdoId( Object id, boolean detach )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            pm.getFetchPlan().setGroup( FetchPlan.DEFAULT );
+
+            pm.getFetchPlan().addGroup( "ShellProject_detail" );
+
+            ShellProject object = (ShellProject) pm.getObjectById( id, true );
+
+            if ( detach )
+            {
+                object = (ShellProject) pm.detachCopy( object );
+            }
+
+            commit();
+
+            return object;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public Collection getShellProjectCollection( boolean detach, String filter, String ordering )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            Extent extent = pm.getExtent( ShellProject.class, true );
+
+            Query query = pm.newQuery( extent );
+
+            if ( ordering != null )
+            {
+                query.setOrdering( ordering );
+            }
+
+            if ( filter != null )
+            {
+                query.setFilter( filter );
+            }
+
+            Collection result = ((Collection) query.execute() );
+
+            Collection collection;
+
+            // TODO: Why did was this done with a iterator and not makeTransientAll()? -- trygve
+            //       I would guess I had to do it this way to make sure JPOX fetched all fields
+            //       so this should probably go away now if detach works like expected.
+            //       Also; why refresh()?
+            if ( detach )
+            {
+                collection = new ArrayList();
+
+                for ( Iterator it = result.iterator(); it.hasNext(); )
+                {
+                    Object object = it.next();
+
+                    pm.refresh( object );
+
+                    object = pm.detachCopy( object );
+
+                    collection.add( object );
+                }
+            }
+            else
+            {
+                collection = result;
+            }
+
+            commit();
+
+            return collection;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    // ----------------------------------------------------------------------
+    // ContinuumBuild CRUD
+    // ----------------------------------------------------------------------
+
+    public Object addContinuumBuild( ContinuumBuild o )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            pm.makePersistent( o );
+
+            Object id = pm.getObjectId( o );
+
+            commit();
+
+            return id;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public Object storeContinuumBuild( ContinuumBuild o )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            Object id;
+
+            // New instance so store it
+            if ( o.getId() == null )
+            {
+                pm.makePersistent( o );
+
+                id = pm.getObjectId( o );
+            }
+            // exists, so update it
+            else
+            {
+                pm.attachCopy( o, true );
+
+                id = o.getId();
+            }
+
+            commit();
+
+            return id;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public void deleteContinuumBuild( String id )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            Query query = pm.newQuery( ContinuumBuild.class );
+
+            query.setIgnoreCache( true );
+
+            query.setFilter( "this.id == \"" + id + "\"" );
+
+            Collection result = (Collection) query.execute();
+
+            if ( result.isEmpty() )
+            {
+                throw new RuntimeException( "No such object of type \"ContinuumBuild\" with id: \"" + id + "\"." );
+            }
+
+            pm.deletePersistentAll( result );
+
+            commit();
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public ContinuumBuild getContinuumBuild( String id, boolean detach )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            pm.getFetchPlan().setGroup( FetchPlan.DEFAULT );
+
+            pm.getFetchPlan().addGroup( "ContinuumBuild_detail" );
+
+            Query query = pm.newQuery( ContinuumBuild.class );
+
+            query.setIgnoreCache( true );
+
+            query.setFilter( "this.id == \"" + id + "\"" );
+
+            Collection result = (Collection) query.execute();
+
+            if ( result.isEmpty() )
+            {
+                throw new RuntimeException( "No such object of type \"ContinuumBuild\" with id: \"" + id + "\"." );
+            }
+
+            ContinuumBuild object = (ContinuumBuild) result.iterator().next();
+
+            if ( detach )
+            {
+                object = (ContinuumBuild) pm.detachCopy( object );
+            }
+
+            commit();
+
+            return object;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public ContinuumBuild getContinuumBuildByJdoId( Object id, boolean detach )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            pm.getFetchPlan().setGroup( FetchPlan.DEFAULT );
+
+            pm.getFetchPlan().addGroup( "ContinuumBuild_detail" );
+
+            ContinuumBuild object = (ContinuumBuild) pm.getObjectById( id, true );
+
+            if ( detach )
+            {
+                object = (ContinuumBuild) pm.detachCopy( object );
+            }
+
+            commit();
+
+            return object;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public Collection getContinuumBuildCollection( boolean detach, String filter, String ordering )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            Extent extent = pm.getExtent( ContinuumBuild.class, true );
+
+            Query query = pm.newQuery( extent );
+
+            if ( ordering != null )
+            {
+                query.setOrdering( ordering );
+            }
+
+            if ( filter != null )
+            {
+                query.setFilter( filter );
+            }
+
+            Collection result = ((Collection) query.execute() );
+
+            Collection collection;
+
+            // TODO: Why did was this done with a iterator and not makeTransientAll()? -- trygve
+            //       I would guess I had to do it this way to make sure JPOX fetched all fields
+            //       so this should probably go away now if detach works like expected.
+            //       Also; why refresh()?
+            if ( detach )
+            {
+                collection = new ArrayList();
+
+                for ( Iterator it = result.iterator(); it.hasNext(); )
+                {
+                    Object object = it.next();
+
+                    pm.refresh( object );
+
+                    object = pm.detachCopy( object );
+
+                    collection.add( object );
+                }
+            }
+            else
+            {
+                collection = result;
+            }
+
+            commit();
+
+            return collection;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+
+
+    // ----------------------------------------------------------------------
+    // CheckOutScmResult CRUD
+    // ----------------------------------------------------------------------
+
+    public Object addCheckOutScmResult( CheckOutScmResult o )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            pm.makePersistent( o );
+
+            Object id = pm.getObjectId( o );
+
+            commit();
+
+            return id;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+
+    public void deleteCheckOutScmResult( String id )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            Query query = pm.newQuery( CheckOutScmResult.class );
+
+            query.setIgnoreCache( true );
+
+            query.setFilter( "this.id == \"" + id + "\"" );
+
+            Collection result = (Collection) query.execute();
+
+            if ( result.isEmpty() )
+            {
+                throw new RuntimeException( "No such object of type \"CheckOutScmResult\" with id: \"" + id + "\"." );
+            }
+
+            pm.deletePersistentAll( result );
+
+            commit();
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public CheckOutScmResult getCheckOutScmResult( String id, boolean detach )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            pm.getFetchPlan().setGroup( FetchPlan.DEFAULT );
+
+            pm.getFetchPlan().addGroup( "CheckOutScmResult_detail" );
+
+            Query query = pm.newQuery( CheckOutScmResult.class );
+
+            query.setIgnoreCache( true );
+
+            query.setFilter( "this.id == \"" + id + "\"" );
+
+            Collection result = (Collection) query.execute();
+
+            if ( result.isEmpty() )
+            {
+                throw new RuntimeException( "No such object of type \"CheckOutScmResult\" with id: \"" + id + "\"." );
+            }
+
+            CheckOutScmResult object = (CheckOutScmResult) result.iterator().next();
+
+            if ( detach )
+            {
+                object = (CheckOutScmResult) pm.detachCopy( object );
+            }
+
+            commit();
+
+            return object;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public CheckOutScmResult getCheckOutScmResultByJdoId( Object id, boolean detach )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            pm.getFetchPlan().setGroup( FetchPlan.DEFAULT );
+
+            pm.getFetchPlan().addGroup( "CheckOutScmResult_detail" );
+
+            CheckOutScmResult object = (CheckOutScmResult) pm.getObjectById( id, true );
+
+            if ( detach )
+            {
+                object = (CheckOutScmResult) pm.detachCopy( object );
+            }
+
+            commit();
+
+            return object;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public Collection getCheckOutScmResultCollection( boolean detach, String filter, String ordering )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            Extent extent = pm.getExtent( CheckOutScmResult.class, true );
+
+            Query query = pm.newQuery( extent );
+
+            if ( ordering != null )
+            {
+                query.setOrdering( ordering );
+            }
+
+            if ( filter != null )
+            {
+                query.setFilter( filter );
+            }
+
+            Collection result = ((Collection) query.execute() );
+
+            Collection collection;
+
+            // TODO: Why did was this done with a iterator and not makeTransientAll()? -- trygve
+            //       I would guess I had to do it this way to make sure JPOX fetched all fields
+            //       so this should probably go away now if detach works like expected.
+            //       Also; why refresh()?
+            if ( detach )
+            {
+                collection = new ArrayList();
+
+                for ( Iterator it = result.iterator(); it.hasNext(); )
+                {
+                    Object object = it.next();
+
+                    pm.refresh( object );
+
+                    object = pm.detachCopy( object );
+
+                    collection.add( object );
+                }
+            }
+            else
+            {
+                collection = result;
+            }
+
+            commit();
+
+            return collection;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    // ----------------------------------------------------------------------
+    // UpdateScmResult CRUD
+    // ----------------------------------------------------------------------
+
+    public Object addUpdateScmResult( UpdateScmResult o )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            pm.makePersistent( o );
+
+            Object id = pm.getObjectId( o );
+
+            commit();
+
+            return id;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+
+    public void deleteUpdateScmResult( String id )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            Query query = pm.newQuery( UpdateScmResult.class );
+
+            query.setIgnoreCache( true );
+
+            query.setFilter( "this.id == \"" + id + "\"" );
+
+            Collection result = (Collection) query.execute();
+
+            if ( result.isEmpty() )
+            {
+                throw new RuntimeException( "No such object of type \"UpdateScmResult\" with id: \"" + id + "\"." );
+            }
+
+            pm.deletePersistentAll( result );
+
+            commit();
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public UpdateScmResult getUpdateScmResult( String id, boolean detach )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            pm.getFetchPlan().setGroup( FetchPlan.DEFAULT );
+
+            pm.getFetchPlan().addGroup( "UpdateScmResult_detail" );
+
+            Query query = pm.newQuery( UpdateScmResult.class );
+
+            query.setIgnoreCache( true );
+
+            query.setFilter( "this.id == \"" + id + "\"" );
+
+            Collection result = (Collection) query.execute();
+
+            if ( result.isEmpty() )
+            {
+                throw new RuntimeException( "No such object of type \"UpdateScmResult\" with id: \"" + id + "\"." );
+            }
+
+            UpdateScmResult object = (UpdateScmResult) result.iterator().next();
+
+            if ( detach )
+            {
+                object = (UpdateScmResult) pm.detachCopy( object );
+            }
+
+            commit();
+
+            return object;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public UpdateScmResult getUpdateScmResultByJdoId( Object id, boolean detach )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            pm.getFetchPlan().setGroup( FetchPlan.DEFAULT );
+
+            pm.getFetchPlan().addGroup( "UpdateScmResult_detail" );
+
+            UpdateScmResult object = (UpdateScmResult) pm.getObjectById( id, true );
+
+            if ( detach )
+            {
+                object = (UpdateScmResult) pm.detachCopy( object );
+            }
+
+            commit();
+
+            return object;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+    public Collection getUpdateScmResultCollection( boolean detach, String filter, String ordering )
+        throws Exception
+    {
+        try
+        {
+            PersistenceManager pm = begin();
+
+            Extent extent = pm.getExtent( UpdateScmResult.class, true );
+
+            Query query = pm.newQuery( extent );
+
+            if ( ordering != null )
+            {
+                query.setOrdering( ordering );
+            }
+
+            if ( filter != null )
+            {
+                query.setFilter( filter );
+            }
+
+            Collection result = ((Collection) query.execute() );
+
+            Collection collection;
+
+            // TODO: Why did was this done with a iterator and not makeTransientAll()? -- trygve
+            //       I would guess I had to do it this way to make sure JPOX fetched all fields
+            //       so this should probably go away now if detach works like expected.
+            //       Also; why refresh()?
+            if ( detach )
+            {
+                collection = new ArrayList();
+
+                for ( Iterator it = result.iterator(); it.hasNext(); )
+                {
+                    Object object = it.next();
+
+                    pm.refresh( object );
+
+                    object = pm.detachCopy( object );
+
+                    collection.add( object );
+                }
+            }
+            else
+            {
+                collection = result;
+            }
+
+            commit();
+
+            return collection;
+        }
+        catch( Exception ex )
+        {
+            rollback();
+
+            throw ex;
+        }
+    }
+
+
+    // ----------------------------------------------------------------------
+    // Utility Methods
+    // ----------------------------------------------------------------------
+
+    private void closePersistenceManager( PersistenceManager pm )
+    {
+        try
+        {
+            pm.close();
+        }
+        catch( JDOUserException ex )
+        {
+            ex.printStackTrace();
+        }
+    }
+}

Propchange: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumJPoxStore.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumJPoxStore.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumNotifier.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumNotifier.java?rev=279123&view=auto
==============================================================================
--- maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumNotifier.java (added)
+++ maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumNotifier.java Tue Sep  6 14:36:03 2005
@@ -0,0 +1,93 @@
+/*
+ * $Id$
+ */
+
+package org.apache.maven.continuum.project.v1_0_alpha_3;
+
+  //---------------------------------/
+ //- Imported classes and packages -/
+//---------------------------------/
+
+import java.util.*;
+import java.util.Map;
+
+/**
+ * Class ContinuumNotifier.
+ * 
+ * @version $Revision$ $Date$
+ */
+public class ContinuumNotifier implements java.io.Serializable {
+
+
+      //--------------------------/
+     //- Class/Member Variables -/
+    //--------------------------/
+
+    /**
+     * Field type
+     */
+    private String type = "mail";
+
+    /**
+     * Field configuration
+     */
+    private java.util.Map configuration;
+
+
+      //-----------/
+     //- Methods -/
+    //-----------/
+
+    /**
+     * Method addConfiguration
+     * 
+     * @param key
+     * @param value
+     */
+    public void addConfiguration(Object key, String value)
+    {
+        getConfiguration().put( key, value );
+    } //-- void addConfiguration(Object, String) 
+
+    /**
+     * Method getConfiguration
+     */
+    public java.util.Map getConfiguration()
+    {
+        if ( this.configuration == null )
+        {
+            this.configuration = new java.util.HashMap();
+        }
+        
+        return this.configuration;
+    } //-- java.util.Map getConfiguration() 
+
+    /**
+     * Method getType
+     */
+    public String getType()
+    {
+        return this.type;
+    } //-- String getType() 
+
+    /**
+     * Method setConfiguration
+     * 
+     * @param configuration
+     */
+    public void setConfiguration(java.util.Map configuration)
+    {
+        this.configuration = configuration;
+    } //-- void setConfiguration(java.util.Map) 
+
+    /**
+     * Method setType
+     * 
+     * @param type
+     */
+    public void setType(String type)
+    {
+        this.type = type;
+    } //-- void setType(String) 
+
+}

Propchange: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumNotifier.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumNotifier.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumProject.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumProject.java?rev=279123&view=auto
==============================================================================
--- maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumProject.java (added)
+++ maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumProject.java Tue Sep  6 14:36:03 2005
@@ -0,0 +1,623 @@
+/*
+ * $Id$
+ */
+
+package org.apache.maven.continuum.project.v1_0_alpha_3;
+
+  //---------------------------------/
+ //- Imported classes and packages -/
+//---------------------------------/
+
+import java.util.*;
+import java.util.List;
+
+/**
+ * Class ContinuumProject.
+ * 
+ * @version $Revision$ $Date$
+ */
+public abstract class ContinuumProject implements java.io.Serializable {
+
+
+      //--------------------------/
+     //- Class/Member Variables -/
+    //--------------------------/
+
+    /**
+     * Field id
+     */
+    private String id;
+
+    /**
+     * Field name
+     */
+    private String name;
+
+    /**
+     * Field scmUrl
+     */
+    private String scmUrl;
+
+    /**
+     * Field version
+     */
+    private String version;
+
+    /**
+     * Field workingDirectory
+     */
+    private String workingDirectory;
+
+    /**
+     * Field state
+     */
+    private int state = 0;
+
+    /**
+     * Field executorId
+     */
+    private String executorId;
+
+    /**
+     * Field lastBuildId
+     */
+    private String lastBuildId;
+
+    /**
+     * Field previousBuildId
+     */
+    private String previousBuildId;
+
+    /**
+     * Field buildNumber
+     */
+    private int buildNumber = 0;
+
+    /**
+     * Field builds
+     */
+    private java.util.List builds;
+
+    /**
+     * Field checkOutScmResult
+     */
+    private CheckOutScmResult checkOutScmResult;
+
+    /**
+     * Field checkOutErrorMessage
+     */
+    private String checkOutErrorMessage;
+
+    /**
+     * Field checkOutErrorException
+     */
+    private String checkOutErrorException;
+
+    /**
+     * Field mailType
+     */
+    private String mailType;
+
+    /**
+     * Field commandLineArguments
+     */
+    private String commandLineArguments;
+
+    /**
+     * Field url
+     */
+    private String url;
+
+    /**
+     * Field groupId
+     */
+    private String groupId;
+
+    /**
+     * Field testOutputDirectory
+     */
+    private String testOutputDirectory;
+
+    /**
+     * Field developers
+     */
+    private java.util.List developers;
+
+    /**
+     * Field notifiers
+     */
+    private java.util.List notifiers;
+
+
+      //-----------/
+     //- Methods -/
+    //-----------/
+
+    /**
+     * Method addBuild
+     * 
+     * @param continuumBuild
+     */
+    public void addBuild(ContinuumBuild continuumBuild)
+    {
+        getBuilds().add( continuumBuild );
+        continuumBuild.createContinuumProjectAssociation( this );
+    } //-- void addBuild(ContinuumBuild) 
+
+    /**
+     * Method addDeveloper
+     * 
+     * @param continuumDeveloper
+     */
+    public void addDeveloper(ContinuumDeveloper continuumDeveloper)
+    {
+        getDevelopers().add( continuumDeveloper );
+    } //-- void addDeveloper(ContinuumDeveloper) 
+
+    /**
+     * Method addNotifier
+     * 
+     * @param continuumNotifier
+     */
+    public void addNotifier(ContinuumNotifier continuumNotifier)
+    {
+        getNotifiers().add( continuumNotifier );
+    } //-- void addNotifier(ContinuumNotifier) 
+
+    /**
+     * Method breakContinuumBuildAssociation
+     * 
+     * @param continuumBuild
+     */
+    public void breakContinuumBuildAssociation(ContinuumBuild continuumBuild)
+    {
+        if ( ! getBuilds().contains( continuumBuild ) )
+        {
+            throw new IllegalStateException( "continuumBuild isn't associated." );
+        }
+        
+        getBuilds().remove( continuumBuild );
+    } //-- void breakContinuumBuildAssociation(ContinuumBuild) 
+
+    /**
+     * Method createContinuumBuildAssociation
+     * 
+     * @param continuumBuild
+     */
+    public void createContinuumBuildAssociation(ContinuumBuild continuumBuild)
+    {
+        Collection builds = getBuilds();
+        
+        if ( getBuilds().contains(continuumBuild) )
+        {
+            throw new IllegalStateException( "continuumBuild is already assigned." );
+        }
+        
+        builds.add( continuumBuild );
+    } //-- void createContinuumBuildAssociation(ContinuumBuild) 
+
+    /**
+     * Method getBuildNumber
+     */
+    public int getBuildNumber()
+    {
+        return this.buildNumber;
+    } //-- int getBuildNumber() 
+
+    /**
+     * Method getBuilds
+     */
+    public java.util.List getBuilds()
+    {
+        if ( this.builds == null )
+        {
+            this.builds = new java.util.ArrayList();
+        }
+        
+        return this.builds;
+    } //-- java.util.List getBuilds() 
+
+    /**
+     * Method getCheckOutErrorException
+     */
+    public String getCheckOutErrorException()
+    {
+        return this.checkOutErrorException;
+    } //-- String getCheckOutErrorException() 
+
+    /**
+     * Method getCheckOutErrorMessage
+     */
+    public String getCheckOutErrorMessage()
+    {
+        return this.checkOutErrorMessage;
+    } //-- String getCheckOutErrorMessage() 
+
+    /**
+     * Method getCheckOutScmResult
+     */
+    public CheckOutScmResult getCheckOutScmResult()
+    {
+        return this.checkOutScmResult;
+    } //-- CheckOutScmResult getCheckOutScmResult() 
+
+    /**
+     * Method getCommandLineArguments
+     */
+    public String getCommandLineArguments()
+    {
+        return this.commandLineArguments;
+    } //-- String getCommandLineArguments() 
+
+    /**
+     * Method getDevelopers
+     */
+    public java.util.List getDevelopers()
+    {
+        if ( this.developers == null )
+        {
+            this.developers = new java.util.ArrayList();
+        }
+        
+        return this.developers;
+    } //-- java.util.List getDevelopers() 
+
+    /**
+     * Method getExecutorId
+     */
+    public String getExecutorId()
+    {
+        return this.executorId;
+    } //-- String getExecutorId() 
+
+    /**
+     * Method getGroupId
+     */
+    public String getGroupId()
+    {
+        return this.groupId;
+    } //-- String getGroupId() 
+
+    /**
+     * Method getId
+     */
+    public String getId()
+    {
+        return this.id;
+    } //-- String getId() 
+
+    /**
+     * Method getLastBuildId
+     */
+    public String getLastBuildId()
+    {
+        return this.lastBuildId;
+    } //-- String getLastBuildId() 
+
+    /**
+     * Method getMailType
+     */
+    public String getMailType()
+    {
+        return this.mailType;
+    } //-- String getMailType() 
+
+    /**
+     * Method getName
+     */
+    public String getName()
+    {
+        return this.name;
+    } //-- String getName() 
+
+    /**
+     * Method getNotifiers
+     */
+    public java.util.List getNotifiers()
+    {
+        if ( this.notifiers == null )
+        {
+            this.notifiers = new java.util.ArrayList();
+        }
+        
+        return this.notifiers;
+    } //-- java.util.List getNotifiers() 
+
+    /**
+     * Method getPreviousBuildId
+     */
+    public String getPreviousBuildId()
+    {
+        return this.previousBuildId;
+    } //-- String getPreviousBuildId() 
+
+    /**
+     * Method getScmUrl
+     */
+    public String getScmUrl()
+    {
+        return this.scmUrl;
+    } //-- String getScmUrl() 
+
+    /**
+     * Method getState
+     */
+    public int getState()
+    {
+        return this.state;
+    } //-- int getState() 
+
+    /**
+     * Method getTestOutputDirectory
+     */
+    public String getTestOutputDirectory()
+    {
+        return this.testOutputDirectory;
+    } //-- String getTestOutputDirectory() 
+
+    /**
+     * Method getUrl
+     */
+    public String getUrl()
+    {
+        return this.url;
+    } //-- String getUrl() 
+
+    /**
+     * Method getVersion
+     */
+    public String getVersion()
+    {
+        return this.version;
+    } //-- String getVersion() 
+
+    /**
+     * Method getWorkingDirectory
+     */
+    public String getWorkingDirectory()
+    {
+        return this.workingDirectory;
+    } //-- String getWorkingDirectory() 
+
+    /**
+     * Method removeBuild
+     * 
+     * @param continuumBuild
+     */
+    public void removeBuild(ContinuumBuild continuumBuild)
+    {
+        continuumBuild.breakContinuumProjectAssociation( this );
+        getBuilds().remove( continuumBuild );
+    } //-- void removeBuild(ContinuumBuild) 
+
+    /**
+     * Method removeDeveloper
+     * 
+     * @param continuumDeveloper
+     */
+    public void removeDeveloper(ContinuumDeveloper continuumDeveloper)
+    {
+        getDevelopers().remove( continuumDeveloper );
+    } //-- void removeDeveloper(ContinuumDeveloper) 
+
+    /**
+     * Method removeNotifier
+     * 
+     * @param continuumNotifier
+     */
+    public void removeNotifier(ContinuumNotifier continuumNotifier)
+    {
+        getNotifiers().remove( continuumNotifier );
+    } //-- void removeNotifier(ContinuumNotifier) 
+
+    /**
+     * Method setBuildNumber
+     * 
+     * @param buildNumber
+     */
+    public void setBuildNumber(int buildNumber)
+    {
+        this.buildNumber = buildNumber;
+    } //-- void setBuildNumber(int) 
+
+    /**
+     * Method setBuilds
+     * 
+     * @param builds
+     */
+    public void setBuilds(java.util.List builds)
+    {
+        this.builds = builds;
+    } //-- void setBuilds(java.util.List) 
+
+    /**
+     * Method setCheckOutErrorException
+     * 
+     * @param checkOutErrorException
+     */
+    public void setCheckOutErrorException(String checkOutErrorException)
+    {
+        this.checkOutErrorException = checkOutErrorException;
+    } //-- void setCheckOutErrorException(String) 
+
+    /**
+     * Method setCheckOutErrorMessage
+     * 
+     * @param checkOutErrorMessage
+     */
+    public void setCheckOutErrorMessage(String checkOutErrorMessage)
+    {
+        this.checkOutErrorMessage = checkOutErrorMessage;
+    } //-- void setCheckOutErrorMessage(String) 
+
+    /**
+     * Method setCheckOutScmResult
+     * 
+     * @param checkOutScmResult
+     */
+    public void setCheckOutScmResult(CheckOutScmResult checkOutScmResult)
+    {
+        this.checkOutScmResult = checkOutScmResult;
+    } //-- void setCheckOutScmResult(CheckOutScmResult) 
+
+    /**
+     * Method setCommandLineArguments
+     * 
+     * @param commandLineArguments
+     */
+    public void setCommandLineArguments(String commandLineArguments)
+    {
+        this.commandLineArguments = commandLineArguments;
+    } //-- void setCommandLineArguments(String) 
+
+    /**
+     * Method setDevelopers
+     * 
+     * @param developers
+     */
+    public void setDevelopers(java.util.List developers)
+    {
+        this.developers = developers;
+    } //-- void setDevelopers(java.util.List) 
+
+    /**
+     * Method setExecutorId
+     * 
+     * @param executorId
+     */
+    public void setExecutorId(String executorId)
+    {
+        this.executorId = executorId;
+    } //-- void setExecutorId(String) 
+
+    /**
+     * Method setGroupId
+     * 
+     * @param groupId
+     */
+    public void setGroupId(String groupId)
+    {
+        this.groupId = groupId;
+    } //-- void setGroupId(String) 
+
+    /**
+     * Method setId
+     * 
+     * @param id
+     */
+    public void setId(String id)
+    {
+        this.id = id;
+    } //-- void setId(String) 
+
+    /**
+     * Method setLastBuildId
+     * 
+     * @param lastBuildId
+     */
+    public void setLastBuildId(String lastBuildId)
+    {
+        this.lastBuildId = lastBuildId;
+    } //-- void setLastBuildId(String) 
+
+    /**
+     * Method setMailType
+     * 
+     * @param mailType
+     */
+    public void setMailType(String mailType)
+    {
+        this.mailType = mailType;
+    } //-- void setMailType(String) 
+
+    /**
+     * Method setName
+     * 
+     * @param name
+     */
+    public void setName(String name)
+    {
+        this.name = name;
+    } //-- void setName(String) 
+
+    /**
+     * Method setNotifiers
+     * 
+     * @param notifiers
+     */
+    public void setNotifiers(java.util.List notifiers)
+    {
+        this.notifiers = notifiers;
+    } //-- void setNotifiers(java.util.List) 
+
+    /**
+     * Method setPreviousBuildId
+     * 
+     * @param previousBuildId
+     */
+    public void setPreviousBuildId(String previousBuildId)
+    {
+        this.previousBuildId = previousBuildId;
+    } //-- void setPreviousBuildId(String) 
+
+    /**
+     * Method setScmUrl
+     * 
+     * @param scmUrl
+     */
+    public void setScmUrl(String scmUrl)
+    {
+        this.scmUrl = scmUrl;
+    } //-- void setScmUrl(String) 
+
+    /**
+     * Method setState
+     * 
+     * @param state
+     */
+    public void setState(int state)
+    {
+        this.state = state;
+    } //-- void setState(int) 
+
+    /**
+     * Method setTestOutputDirectory
+     * 
+     * @param testOutputDirectory
+     */
+    public void setTestOutputDirectory(String testOutputDirectory)
+    {
+        this.testOutputDirectory = testOutputDirectory;
+    } //-- void setTestOutputDirectory(String) 
+
+    /**
+     * Method setUrl
+     * 
+     * @param url
+     */
+    public void setUrl(String url)
+    {
+        this.url = url;
+    } //-- void setUrl(String) 
+
+    /**
+     * Method setVersion
+     * 
+     * @param version
+     */
+    public void setVersion(String version)
+    {
+        this.version = version;
+    } //-- void setVersion(String) 
+
+    /**
+     * Method setWorkingDirectory
+     * 
+     * @param workingDirectory
+     */
+    public void setWorkingDirectory(String workingDirectory)
+    {
+        this.workingDirectory = workingDirectory;
+    } //-- void setWorkingDirectory(String) 
+
+}

Propchange: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumProject.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ContinuumProject.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/MavenOneProject.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/MavenOneProject.java?rev=279123&view=auto
==============================================================================
--- maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/MavenOneProject.java (added)
+++ maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/MavenOneProject.java Tue Sep  6 14:36:03 2005
@@ -0,0 +1,55 @@
+/*
+ * $Id$
+ */
+
+package org.apache.maven.continuum.project.v1_0_alpha_3;
+
+  //---------------------------------/
+ //- Imported classes and packages -/
+//---------------------------------/
+
+import java.util.*;
+
+/**
+ * Class MavenOneProject.
+ * 
+ * @version $Revision$ $Date$
+ */
+public class MavenOneProject extends ContinuumProject 
+implements java.io.Serializable
+{
+
+
+      //--------------------------/
+     //- Class/Member Variables -/
+    //--------------------------/
+
+    /**
+     * Field goals
+     */
+    private String goals;
+
+
+      //-----------/
+     //- Methods -/
+    //-----------/
+
+    /**
+     * Method getGoals
+     */
+    public String getGoals()
+    {
+        return this.goals;
+    } //-- String getGoals() 
+
+    /**
+     * Method setGoals
+     * 
+     * @param goals
+     */
+    public void setGoals(String goals)
+    {
+        this.goals = goals;
+    } //-- void setGoals(String) 
+
+}

Propchange: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/MavenOneProject.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/MavenOneProject.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/MavenTwoProject.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/MavenTwoProject.java?rev=279123&view=auto
==============================================================================
--- maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/MavenTwoProject.java (added)
+++ maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/MavenTwoProject.java Tue Sep  6 14:36:03 2005
@@ -0,0 +1,55 @@
+/*
+ * $Id$
+ */
+
+package org.apache.maven.continuum.project.v1_0_alpha_3;
+
+  //---------------------------------/
+ //- Imported classes and packages -/
+//---------------------------------/
+
+import java.util.*;
+
+/**
+ * Class MavenTwoProject.
+ * 
+ * @version $Revision$ $Date$
+ */
+public class MavenTwoProject extends ContinuumProject 
+implements java.io.Serializable
+{
+
+
+      //--------------------------/
+     //- Class/Member Variables -/
+    //--------------------------/
+
+    /**
+     * Field goals
+     */
+    private String goals;
+
+
+      //-----------/
+     //- Methods -/
+    //-----------/
+
+    /**
+     * Method getGoals
+     */
+    public String getGoals()
+    {
+        return this.goals;
+    } //-- String getGoals() 
+
+    /**
+     * Method setGoals
+     * 
+     * @param goals
+     */
+    public void setGoals(String goals)
+    {
+        this.goals = goals;
+    } //-- void setGoals(String) 
+
+}

Propchange: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/MavenTwoProject.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/MavenTwoProject.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ShellProject.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ShellProject.java?rev=279123&view=auto
==============================================================================
--- maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ShellProject.java (added)
+++ maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ShellProject.java Tue Sep  6 14:36:03 2005
@@ -0,0 +1,55 @@
+/*
+ * $Id$
+ */
+
+package org.apache.maven.continuum.project.v1_0_alpha_3;
+
+  //---------------------------------/
+ //- Imported classes and packages -/
+//---------------------------------/
+
+import java.util.*;
+
+/**
+ * Class ShellProject.
+ * 
+ * @version $Revision$ $Date$
+ */
+public class ShellProject extends ContinuumProject 
+implements java.io.Serializable
+{
+
+
+      //--------------------------/
+     //- Class/Member Variables -/
+    //--------------------------/
+
+    /**
+     * Field executable
+     */
+    private String executable;
+
+
+      //-----------/
+     //- Methods -/
+    //-----------/
+
+    /**
+     * Method getExecutable
+     */
+    public String getExecutable()
+    {
+        return this.executable;
+    } //-- String getExecutable() 
+
+    /**
+     * Method setExecutable
+     * 
+     * @param executable
+     */
+    public void setExecutable(String executable)
+    {
+        this.executable = executable;
+    } //-- void setExecutable(String) 
+
+}

Propchange: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ShellProject.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/project/v1_0_alpha_3/ShellProject.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/scm/v1_0_alpha_3/CheckOutScmResult.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/scm/v1_0_alpha_3/CheckOutScmResult.java?rev=279123&view=auto
==============================================================================
--- maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/scm/v1_0_alpha_3/CheckOutScmResult.java (added)
+++ maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/scm/v1_0_alpha_3/CheckOutScmResult.java Tue Sep  6 14:36:03 2005
@@ -0,0 +1,89 @@
+/*
+ * $Id$
+ */
+
+package org.apache.maven.continuum.scm.v1_0_0;
+
+  //---------------------------------/
+ //- Imported classes and packages -/
+//---------------------------------/
+
+import java.util.*;
+import java.util.List;
+import org.apache.maven.continuum.project.v1_0_0.AntProject;
+import org.apache.maven.continuum.project.v1_0_0.ContinuumBuild;
+import org.apache.maven.continuum.project.v1_0_0.ContinuumDeveloper;
+import org.apache.maven.continuum.project.v1_0_0.ContinuumNotifier;
+import org.apache.maven.continuum.project.v1_0_0.ContinuumProject;
+import org.apache.maven.continuum.project.v1_0_0.MavenOneProject;
+import org.apache.maven.continuum.project.v1_0_0.MavenTwoProject;
+import org.apache.maven.continuum.project.v1_0_0.ShellProject;
+
+/**
+ * Class CheckOutScmResult.
+ * 
+ * @version $Revision$ $Date$
+ */
+public class CheckOutScmResult extends ScmResult 
+implements java.io.Serializable
+{
+
+
+      //--------------------------/
+     //- Class/Member Variables -/
+    //--------------------------/
+
+    /**
+     * Field checkedOutFiles
+     */
+    private java.util.List checkedOutFiles;
+
+
+      //-----------/
+     //- Methods -/
+    //-----------/
+
+    /**
+     * Method addCheckedOutFile
+     * 
+     * @param scmFile
+     */
+    public void addCheckedOutFile(ScmFile scmFile)
+    {
+        getCheckedOutFiles().add( scmFile );
+    } //-- void addCheckedOutFile(ScmFile) 
+
+    /**
+     * Method getCheckedOutFiles
+     */
+    public java.util.List getCheckedOutFiles()
+    {
+        if ( this.checkedOutFiles == null )
+        {
+            this.checkedOutFiles = new java.util.ArrayList();
+        }
+        
+        return this.checkedOutFiles;
+    } //-- java.util.List getCheckedOutFiles() 
+
+    /**
+     * Method removeCheckedOutFile
+     * 
+     * @param scmFile
+     */
+    public void removeCheckedOutFile(ScmFile scmFile)
+    {
+        getCheckedOutFiles().remove( scmFile );
+    } //-- void removeCheckedOutFile(ScmFile) 
+
+    /**
+     * Method setCheckedOutFiles
+     * 
+     * @param checkedOutFiles
+     */
+    public void setCheckedOutFiles(java.util.List checkedOutFiles)
+    {
+        this.checkedOutFiles = checkedOutFiles;
+    } //-- void setCheckedOutFiles(java.util.List) 
+
+}

Propchange: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/scm/v1_0_alpha_3/CheckOutScmResult.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/scm/v1_0_alpha_3/CheckOutScmResult.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/scm/v1_0_alpha_3/ScmFile.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/scm/v1_0_alpha_3/ScmFile.java?rev=279123&view=auto
==============================================================================
--- maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/scm/v1_0_alpha_3/ScmFile.java (added)
+++ maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/scm/v1_0_alpha_3/ScmFile.java Tue Sep  6 14:36:03 2005
@@ -0,0 +1,61 @@
+/*
+ * $Id$
+ */
+
+package org.apache.maven.continuum.scm.v1_0_0;
+
+  //---------------------------------/
+ //- Imported classes and packages -/
+//---------------------------------/
+
+import java.util.*;
+import org.apache.maven.continuum.project.v1_0_0.AntProject;
+import org.apache.maven.continuum.project.v1_0_0.ContinuumBuild;
+import org.apache.maven.continuum.project.v1_0_0.ContinuumDeveloper;
+import org.apache.maven.continuum.project.v1_0_0.ContinuumNotifier;
+import org.apache.maven.continuum.project.v1_0_0.ContinuumProject;
+import org.apache.maven.continuum.project.v1_0_0.MavenOneProject;
+import org.apache.maven.continuum.project.v1_0_0.MavenTwoProject;
+import org.apache.maven.continuum.project.v1_0_0.ShellProject;
+
+/**
+ * Class ScmFile.
+ * 
+ * @version $Revision$ $Date$
+ */
+public class ScmFile implements java.io.Serializable {
+
+
+      //--------------------------/
+     //- Class/Member Variables -/
+    //--------------------------/
+
+    /**
+     * Field path
+     */
+    private String path;
+
+
+      //-----------/
+     //- Methods -/
+    //-----------/
+
+    /**
+     * Method getPath
+     */
+    public String getPath()
+    {
+        return this.path;
+    } //-- String getPath() 
+
+    /**
+     * Method setPath
+     * 
+     * @param path
+     */
+    public void setPath(String path)
+    {
+        this.path = path;
+    } //-- void setPath(String) 
+
+}

Propchange: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/scm/v1_0_alpha_3/ScmFile.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/continuum/trunk/continuum-updater/src/main/java/org/apache/maven/continuum/scm/v1_0_alpha_3/ScmFile.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"



Mime
View raw message