You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@continuum.apache.org by ri...@apache.org on 2007/09/24 09:45:28 UTC
svn commit: r578689 [2/2] - in
/maven/continuum/branches/continuum-jpa/continuum-model-jpa: ./ src/
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/main...
Added: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/scm/TestResult.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/scm/TestResult.java?rev=578689&view=auto
==============================================================================
--- maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/scm/TestResult.java (added)
+++ maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/scm/TestResult.java Mon Sep 24 00:45:24 2007
@@ -0,0 +1,117 @@
+package org.apache.maven.continuum.model.scm;
+
+import java.util.List;
+
+import javax.persistence.Basic;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.OneToMany;
+import javax.persistence.Table;
+
+import org.apache.maven.continuum.model.CommonUpdatableModelEntity;
+
+/**
+ * @author <a href='mailto:rahul.thakur.xdev@gmail.com'>Rahul Thakur</a>
+ * @version $Id$
+ */
+@Entity
+@Table( name = "TEST_RESULT" )
+public class TestResult extends CommonUpdatableModelEntity
+{
+
+ /**
+ * Field testCount
+ */
+ @Basic
+ @Column( name = "TEST_COUNT", nullable = false )
+ private int testCount = 0;
+
+ /**
+ * Field failureCount
+ */
+ @Basic
+ @Column( name = "FAILURE_COUNT", nullable = false )
+ private int failureCount = 0;
+
+ /**
+ * Field totalTime
+ */
+ @Basic
+ @Column( name = "TOTAL_TIME", nullable = false )
+ private long totalTime = 0;
+
+ /**
+ * Field suiteResults
+ */
+ @OneToMany
+ private List<SuiteResult> suiteResults;
+
+ /**
+ * @return the testCount
+ */
+ public int getTestCount()
+ {
+ return testCount;
+ }
+
+ /**
+ * @param testCount
+ * the testCount to set
+ */
+ public void setTestCount( int testCount )
+ {
+ this.testCount = testCount;
+ }
+
+ /**
+ * @return the failureCount
+ */
+ public int getFailureCount()
+ {
+ return failureCount;
+ }
+
+ /**
+ * @param failureCount
+ * the failureCount to set
+ */
+ public void setFailureCount( int failureCount )
+ {
+ this.failureCount = failureCount;
+ }
+
+ /**
+ * @return the totalTime
+ */
+ public long getTotalTime()
+ {
+ return totalTime;
+ }
+
+ /**
+ * @param totalTime
+ * the totalTime to set
+ */
+ public void setTotalTime( long totalTime )
+ {
+ this.totalTime = totalTime;
+ }
+
+ /**
+ * @return the suiteResults
+ */
+ public List<SuiteResult> getSuiteResults()
+ {
+ return suiteResults;
+ }
+
+ /**
+ * @param suiteResults
+ * the suiteResults to set
+ */
+ public void setSuiteResults( List<SuiteResult> suiteResults )
+ {
+ this.suiteResults = suiteResults;
+ }
+
+}
Propchange: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/scm/TestResult.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/scm/TestResult.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/system/ContinuumDatabase.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/system/ContinuumDatabase.java?rev=578689&view=auto
==============================================================================
--- maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/system/ContinuumDatabase.java (added)
+++ maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/system/ContinuumDatabase.java Mon Sep 24 00:45:24 2007
@@ -0,0 +1,290 @@
+package org.apache.maven.continuum.model.system;
+
+import java.io.Serializable;
+
+import org.apache.maven.continuum.model.project.ProjectGroup;
+import org.apache.maven.continuum.model.project.Schedule;
+
+/**
+ * This is not an entity.
+ *
+ * @version $Revision$ $Date$
+ */
+public class ContinuumDatabase implements Serializable
+{
+
+ /**
+ * Field projectGroups
+ */
+ private java.util.List projectGroups;
+
+ /**
+ * Field systemConfiguration
+ */
+ private SystemConfiguration systemConfiguration;
+
+ /**
+ * Field installations
+ */
+ private java.util.List installations;
+
+ /**
+ * Field schedules
+ */
+ private java.util.List schedules;
+
+ /**
+ * Field profiles
+ */
+ private java.util.List profiles;
+
+ // -----------/
+ // - Methods -/
+ // -----------/
+
+ /**
+ * Method addInstallation
+ *
+ * @param installation
+ */
+ public void addInstallation( Installation installation )
+ {
+ if ( !( installation instanceof Installation ) )
+ {
+ throw new ClassCastException(
+ "ContinuumDatabase.addInstallations(installation) parameter must be instanceof "
+ + Installation.class.getName() );
+ }
+ getInstallations().add( installation );
+ } // -- void addInstallation(Installation)
+
+ /**
+ * Method addProfile
+ *
+ * @param profile
+ */
+ public void addProfile( Profile profile )
+ {
+ if ( !( profile instanceof Profile ) )
+ {
+ throw new ClassCastException( "ContinuumDatabase.addProfiles(profile) parameter must be instanceof "
+ + Profile.class.getName() );
+ }
+ getProfiles().add( profile );
+ } // -- void addProfile(Profile)
+
+ /**
+ * Method addProjectGroup
+ *
+ * @param projectGroup
+ */
+ public void addProjectGroup( ProjectGroup projectGroup )
+ {
+ if ( !( projectGroup instanceof ProjectGroup ) )
+ {
+ throw new ClassCastException(
+ "ContinuumDatabase.addProjectGroups(projectGroup) parameter must be instanceof "
+ + ProjectGroup.class.getName() );
+ }
+ getProjectGroups().add( projectGroup );
+ } // -- void addProjectGroup(ProjectGroup)
+
+ /**
+ * Method addSchedule
+ *
+ * @param schedule
+ */
+ public void addSchedule( Schedule schedule )
+ {
+ if ( !( schedule instanceof Schedule ) )
+ {
+ throw new ClassCastException( "ContinuumDatabase.addSchedules(schedule) parameter must be instanceof "
+ + Schedule.class.getName() );
+ }
+ getSchedules().add( schedule );
+ } // -- void addSchedule(Schedule)
+
+ /**
+ * Method getInstallations
+ */
+ public java.util.List getInstallations()
+ {
+ if ( this.installations == null )
+ {
+ this.installations = new java.util.ArrayList();
+ }
+
+ return this.installations;
+ } // -- java.util.List getInstallations()
+
+ /**
+ * Method getProfiles
+ */
+ public java.util.List getProfiles()
+ {
+ if ( this.profiles == null )
+ {
+ this.profiles = new java.util.ArrayList();
+ }
+
+ return this.profiles;
+ } // -- java.util.List getProfiles()
+
+ /**
+ * Method getProjectGroups
+ */
+ public java.util.List getProjectGroups()
+ {
+ if ( this.projectGroups == null )
+ {
+ this.projectGroups = new java.util.ArrayList();
+ }
+
+ return this.projectGroups;
+ } // -- java.util.List getProjectGroups()
+
+ /**
+ * Method getSchedules
+ */
+ public java.util.List getSchedules()
+ {
+ if ( this.schedules == null )
+ {
+ this.schedules = new java.util.ArrayList();
+ }
+
+ return this.schedules;
+ } // -- java.util.List getSchedules()
+
+ /**
+ * Get null
+ */
+ public SystemConfiguration getSystemConfiguration()
+ {
+ return this.systemConfiguration;
+ } // -- SystemConfiguration getSystemConfiguration()
+
+ /**
+ * Method removeInstallation
+ *
+ * @param installation
+ */
+ public void removeInstallation( Installation installation )
+ {
+ if ( !( installation instanceof Installation ) )
+ {
+ throw new ClassCastException(
+ "ContinuumDatabase.removeInstallations(installation) parameter must be instanceof "
+ + Installation.class.getName() );
+ }
+ getInstallations().remove( installation );
+ } // -- void removeInstallation(Installation)
+
+ /**
+ * Method removeProfile
+ *
+ * @param profile
+ */
+ public void removeProfile( Profile profile )
+ {
+ if ( !( profile instanceof Profile ) )
+ {
+ throw new ClassCastException( "ContinuumDatabase.removeProfiles(profile) parameter must be instanceof "
+ + Profile.class.getName() );
+ }
+ getProfiles().remove( profile );
+ } // -- void removeProfile(Profile)
+
+ /**
+ * Method removeProjectGroup
+ *
+ * @param projectGroup
+ */
+ public void removeProjectGroup( ProjectGroup projectGroup )
+ {
+ if ( !( projectGroup instanceof ProjectGroup ) )
+ {
+ throw new ClassCastException(
+ "ContinuumDatabase.removeProjectGroups(projectGroup) parameter must be instanceof "
+ + ProjectGroup.class.getName() );
+ }
+ getProjectGroups().remove( projectGroup );
+ } // -- void removeProjectGroup(ProjectGroup)
+
+ /**
+ * Method removeSchedule
+ *
+ * @param schedule
+ */
+ public void removeSchedule( Schedule schedule )
+ {
+ if ( !( schedule instanceof Schedule ) )
+ {
+ throw new ClassCastException( "ContinuumDatabase.removeSchedules(schedule) parameter must be instanceof "
+ + Schedule.class.getName() );
+ }
+ getSchedules().remove( schedule );
+ } // -- void removeSchedule(Schedule)
+
+ /**
+ * Set null
+ *
+ * @param installations
+ */
+ public void setInstallations( java.util.List installations )
+ {
+ this.installations = installations;
+ } // -- void setInstallations(java.util.List)
+
+ /**
+ * Set null
+ *
+ * @param profiles
+ */
+ public void setProfiles( java.util.List profiles )
+ {
+ this.profiles = profiles;
+ } // -- void setProfiles(java.util.List)
+
+ /**
+ * Set null
+ *
+ * @param projectGroups
+ */
+ public void setProjectGroups( java.util.List projectGroups )
+ {
+ this.projectGroups = projectGroups;
+ } // -- void setProjectGroups(java.util.List)
+
+ /**
+ * Set null
+ *
+ * @param schedules
+ */
+ public void setSchedules( java.util.List schedules )
+ {
+ this.schedules = schedules;
+ } // -- void setSchedules(java.util.List)
+
+ /**
+ * Set null
+ *
+ * @param systemConfiguration
+ */
+ public void setSystemConfiguration( SystemConfiguration systemConfiguration )
+ {
+ this.systemConfiguration = systemConfiguration;
+ } // -- void setSystemConfiguration(SystemConfiguration)
+
+ private String modelEncoding = "UTF-8";
+
+ public void setModelEncoding( String modelEncoding )
+ {
+ this.modelEncoding = modelEncoding;
+ }
+
+ public String getModelEncoding()
+ {
+ return modelEncoding;
+ }
+}
Propchange: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/system/ContinuumDatabase.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/system/ContinuumDatabase.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/system/Installation.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/system/Installation.java?rev=578689&view=auto
==============================================================================
--- maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/system/Installation.java (added)
+++ maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/system/Installation.java Mon Sep 24 00:45:24 2007
@@ -0,0 +1,117 @@
+package org.apache.maven.continuum.model.system;
+
+import javax.persistence.Basic;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.Table;
+
+import org.apache.maven.continuum.model.CommonUpdatableModelEntity;
+
+/**
+ * @author <a href='mailto:rahul.thakur.xdev@gmail.com'>Rahul Thakur</a>
+ * @version $Id$
+ */
+@Entity
+@Table( name = "INSTALLATION" )
+public class Installation extends CommonUpdatableModelEntity
+{
+
+ /**
+ * Field type
+ * <p>
+ * TODO: Enum?
+ */
+ @Basic
+ @Column( name = "INSTALLATION_TYPE" )
+ private String type;
+
+ /**
+ * Field varValue
+ */
+ @Basic
+ @Column( name = "VAR_VALUE" )
+ private String varValue;
+
+ /**
+ * Field varName
+ */
+ @Basic
+ @Column( name = "VAR_NAME" )
+ private String varName;
+
+ /**
+ * Field name
+ */
+ @Basic
+ @Column( name = "NAME" )
+ private String name;
+
+ /**
+ * @return the type
+ */
+ public String getType()
+ {
+ return type;
+ }
+
+ /**
+ * @param type
+ * the type to set
+ */
+ public void setType( String type )
+ {
+ this.type = type;
+ }
+
+ /**
+ * @return the varValue
+ */
+ public String getVarValue()
+ {
+ return varValue;
+ }
+
+ /**
+ * @param varValue
+ * the varValue to set
+ */
+ public void setVarValue( String varValue )
+ {
+ this.varValue = varValue;
+ }
+
+ /**
+ * @return the varName
+ */
+ public String getVarName()
+ {
+ return varName;
+ }
+
+ /**
+ * @param varName
+ * the varName to set
+ */
+ public void setVarName( String varName )
+ {
+ this.varName = varName;
+ }
+
+ /**
+ * @return the name
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * @param name
+ * the name to set
+ */
+ public void setName( String name )
+ {
+ this.name = name;
+ }
+
+}
Propchange: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/system/Installation.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/system/Installation.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/system/NotificationAddress.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/system/NotificationAddress.java?rev=578689&view=auto
==============================================================================
--- maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/system/NotificationAddress.java (added)
+++ maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/system/NotificationAddress.java Mon Sep 24 00:45:24 2007
@@ -0,0 +1,97 @@
+package org.apache.maven.continuum.model.system;
+
+import javax.persistence.Basic;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.Table;
+import javax.persistence.Transient;
+
+import org.apache.maven.continuum.model.CommonUpdatableModelEntity;
+
+/**
+ *
+ * Configures one method for notifying users/developers when a build breaks.
+ *
+ * @version $Id$
+ */
+@Entity
+@Table( name = "NOTIFICATION_ADDRESS" )
+public class NotificationAddress extends CommonUpdatableModelEntity
+{
+
+ /**
+ * Field type
+ * <p>
+ * TODO: Enum?
+ */
+ @Basic
+ @Column( name = "ADDRESS_TYPE" )
+ private String type = "mail";
+
+ /**
+ * Field address
+ */
+ @Basic
+ @Column( name = "ADDRESS" )
+ private String address;
+
+ /**
+ * Field configuration
+ * <p>
+ * TODO: Map!
+ */
+ @Transient
+ private java.util.Map configuration;
+
+ /**
+ * @return the type
+ */
+ public String getType()
+ {
+ return type;
+ }
+
+ /**
+ * @param type
+ * the type to set
+ */
+ public void setType( String type )
+ {
+ this.type = type;
+ }
+
+ /**
+ * @return the address
+ */
+ public String getAddress()
+ {
+ return address;
+ }
+
+ /**
+ * @param address
+ * the address to set
+ */
+ public void setAddress( String address )
+ {
+ this.address = address;
+ }
+
+ /**
+ * @return the configuration
+ */
+ public java.util.Map getConfiguration()
+ {
+ return configuration;
+ }
+
+ /**
+ * @param configuration
+ * the configuration to set
+ */
+ public void setConfiguration( java.util.Map configuration )
+ {
+ this.configuration = configuration;
+ }
+
+}
Propchange: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/system/NotificationAddress.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/system/NotificationAddress.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/system/Profile.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/system/Profile.java?rev=578689&view=auto
==============================================================================
--- maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/system/Profile.java (added)
+++ maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/system/Profile.java Mon Sep 24 00:45:24 2007
@@ -0,0 +1,214 @@
+package org.apache.maven.continuum.model.system;
+
+import java.util.List;
+
+import javax.persistence.Basic;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.OneToMany;
+import javax.persistence.OneToOne;
+import javax.persistence.Table;
+
+import org.apache.maven.continuum.model.CommonUpdatableModelEntity;
+
+/**
+ * @author <a href='mailto:rahul.thakur.xdev@gmail.com'>Rahul Thakur</a>
+ * @version $Id$
+ */
+@Entity
+@Table( name = "PROFILE" )
+public class Profile extends CommonUpdatableModelEntity
+{
+
+ /**
+ * Field active
+ */
+ @Basic
+ @Column( name = "FLG_ACTIVE", nullable = false )
+ private boolean active = false;
+
+ /**
+ * Field name
+ */
+ @Basic
+ @Column( name = "NAME", nullable = false )
+ private String name;
+
+ /**
+ * Field description
+ */
+ @Basic
+ @Column( name = "DESCRIPTION" )
+ private String description;
+
+ /**
+ * Field scmMode
+ * <p>
+ * TODO: Enum?
+ */
+ @Basic
+ @Column( name = "SCM_MODE", nullable = false )
+ private int scmMode = 0;
+
+ /**
+ * Field buildWithoutChanges
+ */
+ @Basic
+ @Column( name = "FLG_BUILD_WITHOUT_CHANGES", nullable = false )
+ private boolean buildWithoutChanges = false;
+
+ /**
+ * Field jdk
+ */
+ @OneToOne
+ private Installation jdk;
+
+ /**
+ * Field builder
+ */
+ @OneToOne
+ private Installation builder;
+
+ /**
+ * Field environmentVariables
+ */
+ @OneToMany
+ private List<Installation> environmentVariables;
+
+ /**
+ * @return the active
+ */
+ public boolean isActive()
+ {
+ return active;
+ }
+
+ /**
+ * @param active
+ * the active to set
+ */
+ public void setActive( boolean active )
+ {
+ this.active = active;
+ }
+
+ /**
+ * @return the name
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * @param name
+ * the name to set
+ */
+ public void setName( String name )
+ {
+ this.name = name;
+ }
+
+ /**
+ * @return the description
+ */
+ public String getDescription()
+ {
+ return description;
+ }
+
+ /**
+ * @param description
+ * the description to set
+ */
+ public void setDescription( String description )
+ {
+ this.description = description;
+ }
+
+ /**
+ * @return the scmMode
+ */
+ public int getScmMode()
+ {
+ return scmMode;
+ }
+
+ /**
+ * @param scmMode
+ * the scmMode to set
+ */
+ public void setScmMode( int scmMode )
+ {
+ this.scmMode = scmMode;
+ }
+
+ /**
+ * @return the buildWithoutChanges
+ */
+ public boolean isBuildWithoutChanges()
+ {
+ return buildWithoutChanges;
+ }
+
+ /**
+ * @param buildWithoutChanges
+ * the buildWithoutChanges to set
+ */
+ public void setBuildWithoutChanges( boolean buildWithoutChanges )
+ {
+ this.buildWithoutChanges = buildWithoutChanges;
+ }
+
+ /**
+ * @return the jdk
+ */
+ public Installation getJdk()
+ {
+ return jdk;
+ }
+
+ /**
+ * @param jdk
+ * the jdk to set
+ */
+ public void setJdk( Installation jdk )
+ {
+ this.jdk = jdk;
+ }
+
+ /**
+ * @return the builder
+ */
+ public Installation getBuilder()
+ {
+ return builder;
+ }
+
+ /**
+ * @param builder
+ * the builder to set
+ */
+ public void setBuilder( Installation builder )
+ {
+ this.builder = builder;
+ }
+
+ /**
+ * @return the environmentVariables
+ */
+ public List<Installation> getEnvironmentVariables()
+ {
+ return environmentVariables;
+ }
+
+ /**
+ * @param environmentVariables
+ * the environmentVariables to set
+ */
+ public void setEnvironmentVariables( List<Installation> environmentVariables )
+ {
+ this.environmentVariables = environmentVariables;
+ }
+
+}
Propchange: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/system/Profile.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/system/Profile.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/system/SystemConfiguration.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/system/SystemConfiguration.java?rev=578689&view=auto
==============================================================================
--- maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/system/SystemConfiguration.java (added)
+++ maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/system/SystemConfiguration.java Mon Sep 24 00:45:24 2007
@@ -0,0 +1,211 @@
+package org.apache.maven.continuum.model.system;
+
+import javax.persistence.Basic;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.Table;
+
+import org.apache.maven.continuum.model.CommonUpdatableModelEntity;
+
+/**
+ * @author <a href='mailto:rahul.thakur.xdev@gmail.com'>Rahul Thakur</a>
+ * @version $Id$
+ */
+@Entity
+@Table( name = "SYSTEM_CONFIGURATION" )
+public class SystemConfiguration extends CommonUpdatableModelEntity
+{
+
+ /**
+ * Field guestAccountEnabled
+ */
+ @Basic
+ @Column( name = "FLG_GUEST_ACCOUNT_ENABLED", nullable = false )
+ private boolean guestAccountEnabled = true;
+
+ /**
+ * Field defaultScheduleDescription
+ */
+ @Basic
+ @Column( name = "DEFAULT_SCHEDULE_DESC", nullable = false )
+ private String defaultScheduleDescription = "Run hourly";
+
+ /**
+ * Field defaultScheduleCronExpression
+ */
+ @Basic
+ @Column( name = "DEFAULT_SCHEDULE_CRON_EXP", nullable = false )
+ private String defaultScheduleCronExpression = "0 0 * * * ?";
+
+ /**
+ * Field workingDirectory
+ */
+ @Basic
+ @Column( name = "WORKING_DIRECTORY", nullable = false )
+ private String workingDirectory = "working-directory";
+
+ /**
+ * Field buildOutputDirectory
+ */
+ @Basic
+ @Column( name = "BUILD_OUTPUT_DIRECTORY", nullable = false )
+ private String buildOutputDirectory = "build-output-directory";
+
+ /**
+ * Field deploymentRepositoryDirectory
+ */
+ @Basic
+ @Column( name = "DEPLOYMENT_REPOSITORY_DIRECTORY" )
+ private String deploymentRepositoryDirectory;
+
+ /**
+ * Field baseUrl
+ */
+ @Basic
+ @Column( name = "BASE_URL" )
+ private String baseUrl;
+
+ /**
+ * Field initialized
+ */
+ @Basic
+ @Column( name = "FLG_INITIALIZED", nullable = false )
+ private boolean initialized = false;
+
+ /**
+ * @return the guestAccountEnabled
+ */
+ public boolean isGuestAccountEnabled()
+ {
+ return guestAccountEnabled;
+ }
+
+ /**
+ * @param guestAccountEnabled
+ * the guestAccountEnabled to set
+ */
+ public void setGuestAccountEnabled( boolean guestAccountEnabled )
+ {
+ this.guestAccountEnabled = guestAccountEnabled;
+ }
+
+ /**
+ * @return the defaultScheduleDescription
+ */
+ public String getDefaultScheduleDescription()
+ {
+ return defaultScheduleDescription;
+ }
+
+ /**
+ * @param defaultScheduleDescription
+ * the defaultScheduleDescription to set
+ */
+ public void setDefaultScheduleDescription( String defaultScheduleDescription )
+ {
+ this.defaultScheduleDescription = defaultScheduleDescription;
+ }
+
+ /**
+ * @return the defaultScheduleCronExpression
+ */
+ public String getDefaultScheduleCronExpression()
+ {
+ return defaultScheduleCronExpression;
+ }
+
+ /**
+ * @param defaultScheduleCronExpression
+ * the defaultScheduleCronExpression to set
+ */
+ public void setDefaultScheduleCronExpression( String defaultScheduleCronExpression )
+ {
+ this.defaultScheduleCronExpression = defaultScheduleCronExpression;
+ }
+
+ /**
+ * @return the workingDirectory
+ */
+ public String getWorkingDirectory()
+ {
+ return workingDirectory;
+ }
+
+ /**
+ * @param workingDirectory
+ * the workingDirectory to set
+ */
+ public void setWorkingDirectory( String workingDirectory )
+ {
+ this.workingDirectory = workingDirectory;
+ }
+
+ /**
+ * @return the buildOutputDirectory
+ */
+ public String getBuildOutputDirectory()
+ {
+ return buildOutputDirectory;
+ }
+
+ /**
+ * @param buildOutputDirectory
+ * the buildOutputDirectory to set
+ */
+ public void setBuildOutputDirectory( String buildOutputDirectory )
+ {
+ this.buildOutputDirectory = buildOutputDirectory;
+ }
+
+ /**
+ * @return the deploymentRepositoryDirectory
+ */
+ public String getDeploymentRepositoryDirectory()
+ {
+ return deploymentRepositoryDirectory;
+ }
+
+ /**
+ * @param deploymentRepositoryDirectory
+ * the deploymentRepositoryDirectory to set
+ */
+ public void setDeploymentRepositoryDirectory( String deploymentRepositoryDirectory )
+ {
+ this.deploymentRepositoryDirectory = deploymentRepositoryDirectory;
+ }
+
+ /**
+ * @return the baseUrl
+ */
+ public String getBaseUrl()
+ {
+ return baseUrl;
+ }
+
+ /**
+ * @param baseUrl
+ * the baseUrl to set
+ */
+ public void setBaseUrl( String baseUrl )
+ {
+ this.baseUrl = baseUrl;
+ }
+
+ /**
+ * @return the initialized
+ */
+ public boolean isInitialized()
+ {
+ return initialized;
+ }
+
+ /**
+ * @param initialized
+ * the initialized to set
+ */
+ public void setInitialized( boolean initialized )
+ {
+ this.initialized = initialized;
+ }
+
+}
Propchange: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/system/SystemConfiguration.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/model/system/SystemConfiguration.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/api/DeprecatedSystemStore.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/api/DeprecatedSystemStore.java?rev=578689&view=auto
==============================================================================
--- maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/api/DeprecatedSystemStore.java (added)
+++ maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/api/DeprecatedSystemStore.java Mon Sep 24 00:45:24 2007
@@ -0,0 +1,207 @@
+package org.apache.maven.continuum.store.api;
+
+import java.util.List;
+
+import org.apache.maven.continuum.model.project.Schedule;
+import org.apache.maven.continuum.model.system.Installation;
+import org.apache.maven.continuum.model.system.Profile;
+import org.apache.maven.continuum.model.system.SystemConfiguration;
+
+/**
+ * Defines the contract consisting of operations that can be performed on
+ * following entities:
+ * <ul>
+ * <li>{@link Schedule},</li>
+ * <li>{@link Profile},</li>
+ * <li>{@link Installation},</li>
+ * <li>{@link SystemConfiguration}</li>
+ * </ul>
+ *
+ * @author <a href='mailto:rahul.thakur.xdev@gmail.com'>Rahul Thakur</a>
+ * @version $Id$
+ * @since 1.1
+ */
+public interface DeprecatedSystemStore
+{
+ public static final String ROLE = DeprecatedSystemStore.class.getName();
+
+ /**
+ * Removes the passed {@link Installation} instance from the underlying
+ * store.
+ *
+ * @param project {@link Installation} instance to remove.
+ * @throws StoreException if there was an error removing the
+ * entity.
+ */
+ public void deleteInstallation( Installation installation ) throws StoreException;
+
+ /**
+ * Removes the passed {@link Profile} instance from the underlying store.
+ *
+ * @param project {@link Profile} instance to remove.
+ * @throws StoreException if there was an error removing the
+ * entity.
+ */
+ public void deleteProfile( Profile profile ) throws StoreException;
+
+ /**
+ * Removes the passed {@link Schedule} instance from the underlying store.
+ *
+ * @param project {@link Schedule} instance to remove.
+ * @throws StoreException if there was an error removing the
+ * entity.
+ */
+ public void deleteSchedule( Schedule schedule ) throws StoreException;
+
+ /**
+ * Removes the passed {@link SystemConfiguration} instance from the
+ * underlying store.
+ *
+ * @param project {@link SystemConfiguration} instance to remove.
+ * @throws StoreException if there was an error removing the
+ * entity.
+ */
+ public void deleteSystemConfiguration( SystemConfiguration systemConfiguration ) throws StoreException;
+
+ /**
+ * Looks up the underlying store and returns a {@link Installation} instance
+ * that matches the specified id.
+ *
+ * @param id {@link Installation} id to match.
+ * @return matching {@link Installation} instance.
+ * @throws EntityNotFoundException if the instance could not be
+ * looked up.
+ * @throws StoreException
+ */
+ public Installation lookupInstallation( long id ) throws EntityNotFoundException, StoreException;
+
+ /**
+ * Looks up the underlying store and returns a {@link Profile} instance that
+ * matches the specified id.
+ *
+ * @param id {@link Profile} id to match.
+ * @return matching {@link Profile} instance.
+ * @throws EntityNotFoundException if the instance could not be
+ * looked up.
+ * @throws StoreException
+ */
+ public Profile lookupProfile( long id ) throws EntityNotFoundException, StoreException;
+
+ /**
+ * Looks up the underlying store and returns a {@link Schedule} instance
+ * that matches the specified id.
+ *
+ * @param id {@link Schedule} id to match.
+ * @return matching {@link Schedule} instance.
+ * @throws EntityNotFoundException if the instance could not be
+ * looked up.
+ * @throws StoreException
+ */
+ public Schedule lookupSchedule( long id ) throws EntityNotFoundException, StoreException;
+
+ /**
+ * Looks up the underlying store and returns a {@link SystemConfiguration}
+ * instance that matches the specified id.
+ *
+ * @param id {@link SystemConfiguration} id to match.
+ * @return matching {@link SystemConfiguration} instance.
+ * @throws EntityNotFoundException if the instance could not be
+ * looked up.
+ * @throws StoreException
+ */
+ public SystemConfiguration lookupSystemConfiguration( long id )
+ throws EntityNotFoundException, StoreException;
+
+ /**
+ * Persists the passed in {@link Installation} instance to the underlying
+ * store.
+ * <p>
+ * If the entity instance already exists in the database it is updated, else
+ * a new instance is created and an store-generated identifier assigned to
+ * it.
+ *
+ * @param project {@link Installation} instance to be created/saved.
+ * @return updated {@link Installation} instance.
+ * @throws StoreException if there was an error saving the entity.
+ */
+ public Installation saveInstallation( Installation installation ) throws StoreException;
+
+ /**
+ * Persists the passed in {@link Profile} instance to the underlying store.
+ * <p>
+ * If the entity instance already exists in the database it is updated, else
+ * a new instance is created and an store-generated identifier assigned to
+ * it.
+ *
+ * @param project {@link Profile} instance to be created/saved.
+ * @return updated {@link Profile} instance.
+ * @throws StoreException if there was an error saving the entity.
+ */
+ public Profile saveProfile( Profile profile ) throws StoreException;
+
+ /**
+ * Persists the passed in {@link Schedule} instance to the underlying store.
+ * <p>
+ * If the entity instance already exists in the database it is updated, else
+ * a new instance is created and an store-generated identifier assigned to
+ * it.
+ *
+ * @param project {@link Schedule} instance to be created/saved.
+ * @return updated {@link Schedule} instance.
+ * @throws StoreException if there was an error saving the entity.
+ */
+ public Schedule saveSchedule( Schedule schedule ) throws StoreException;
+
+ /**
+ * Persists the passed in {@link SystemConfiguration} instance to the
+ * underlying store.
+ * <p>
+ * If the entity instance already exists in the database it is updated, else
+ * a new instance is created and an store-generated identifier assigned to
+ * it.
+ *
+ * @param project {@link SystemConfiguration} instance to be created/saved.
+ * @return updated {@link SystemConfiguration} instance.
+ * @throws StoreException if there was an error saving the entity.
+ */
+ public SystemConfiguration saveSystemConfiguration( SystemConfiguration systemConfiguration )
+ throws StoreException;
+
+ /**
+ * Obtains and returns a {@link List} of <b>all</b> {@link Schedule}
+ * instances for the system, stored in the underlying store.
+ *
+ * @return list of all {@link Schedule} instances stored.
+ * @throws StoreException
+ */
+ public List getAllSchedules() throws StoreException;
+
+ /**
+ * Obtains and returns a {@link List} of <b>all</b> {@link Profile}
+ * instances for the system, stored in the underlying store.
+ *
+ * @return list of all {@link Profile} instances stored.
+ * @throws StoreException
+ */
+ public List getAllProfiles() throws StoreException;
+
+ /**
+ * Obtains and returns a {@link List} of <b>all</b> {@link Installation}
+ * instances for the system, stored in the underlying store.
+ *
+ * @return list of all {@link Installation} instances stored.
+ * @throws StoreException
+ */
+ public List getAllInstallations() throws StoreException;
+
+ /**
+ * Obtains and returns a {@link List} of <b>all</b>
+ * {@link SystemConfiguration} instances for the system, stored in the
+ * underlying store.
+ *
+ * @return list of all {@link SystemConfiguration} instances stored.
+ * @throws StoreException
+ */
+ public List getAllSystemConfigurations() throws StoreException;
+
+}
Propchange: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/api/DeprecatedSystemStore.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/api/DeprecatedSystemStore.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/api/EntityNotFoundException.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/api/EntityNotFoundException.java?rev=578689&view=auto
==============================================================================
--- maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/api/EntityNotFoundException.java (added)
+++ maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/api/EntityNotFoundException.java Mon Sep 24 00:45:24 2007
@@ -0,0 +1,37 @@
+package org.apache.maven.continuum.store.api;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.apache.org/licenses/LICENSE-2.0
+ *
+ * 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. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * @author <a href="mailto:trygvis@inamo.no">Trygve Laugstøl</a>
+ * @version $Id$
+ */
+public class EntityNotFoundException extends StoreException
+{
+ public EntityNotFoundException( String message )
+ {
+ super( message );
+ }
+
+ public EntityNotFoundException( String type, String id )
+ {
+ this( "Could not find object. Type '" + type + "'. Id: '" + id + "'." );
+ }
+}
Propchange: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/api/EntityNotFoundException.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/api/EntityNotFoundException.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/api/Query.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/api/Query.java?rev=578689&view=auto
==============================================================================
--- maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/api/Query.java (added)
+++ maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/api/Query.java Mon Sep 24 00:45:24 2007
@@ -0,0 +1,14 @@
+/**
+ *
+ */
+package org.apache.maven.continuum.store.api;
+
+/**
+ * Wraps up Type Query criteria to be used by store extensions to obtaining matching type instances.
+ *
+ * @author <a href='mailto:rahul.thakur.xdev@gmail.com'>Rahul Thakur</a>
+ */
+public abstract class Query
+{
+ // TODO: Implement!
+}
Propchange: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/api/Query.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/api/Query.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/api/Store.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/api/Store.java?rev=578689&view=auto
==============================================================================
--- maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/api/Store.java (added)
+++ maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/api/Store.java Mon Sep 24 00:45:24 2007
@@ -0,0 +1,64 @@
+/**
+ *
+ */
+package org.apache.maven.continuum.store.api;
+
+import java.util.List;
+
+/**
+ * @author <a href='mailto:rahul.thakur.xdev@gmail.com'>Rahul Thakur</a>
+ *
+ */
+public interface Store<T>
+{
+
+ /**
+ * Looks up the underlying store and returns a {@link T} instance that matches the specified id.
+ *
+ * @param id
+ * {@link T} id to match.
+ * @return matching {@link T} instance.
+ * @throws StoreException
+ * @throws EntityNotFoundException
+ * if the entity specified by the identifier could be located in the system.
+ * @throws EntityNotFoundException
+ * if the instance could not be looked up.
+ */
+ public T lookup( Long id ) throws StoreException, EntityNotFoundException;
+
+ /**
+ * Persists the passed in {@link T} instance to the underlying store.
+ * <p>
+ * If the entity instance already exists in the database it is updated, else a new instance is created and an
+ * store-generated identifier assigned to it.
+ *
+ * @param entity
+ * {@link T} instance to be created/saved.
+ * @return updated {@link T} instance.
+ * @throws StoreException
+ * if there was an error saving the entity.
+ */
+ public T save( T entity ) throws StoreException;
+
+ /**
+ * Removes the passed {@link T} instance from the underlying store.
+ *
+ * @param entity
+ * {@link T} instance to remove.
+ * @throws StoreException
+ * if there was an error removing the entity.
+ */
+ public void delete( T entity ) throws StoreException;
+
+ /**
+ * Obtains a {@link List} of instances of type {@link T} which match the criteria specified by the passed in query
+ * instance.
+ *
+ * @param query
+ * instance that wraps up the criteria for querying matching instances in the system.
+ * @return {@link List} of instances of type {@link T} which match the specified query.
+ * @throws StoreException
+ */
+ public List<T> query( Query query ) throws StoreException;
+
+}
Propchange: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/api/Store.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/api/Store.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/api/StoreException.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/api/StoreException.java?rev=578689&view=auto
==============================================================================
--- maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/api/StoreException.java (added)
+++ maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/api/StoreException.java Mon Sep 24 00:45:24 2007
@@ -0,0 +1,37 @@
+package org.apache.maven.continuum.store.api;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.apache.org/licenses/LICENSE-2.0
+ *
+ * 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. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * @author <a href="mailto:trygvis@inamo.no">Trygve Laugstøl</a>
+ * @version $Id$
+ */
+public class StoreException extends Exception
+{
+ public StoreException( String msg )
+ {
+ super( msg );
+ }
+
+ public StoreException( String msg, Exception ex )
+ {
+ super( msg, ex );
+ }
+}
Propchange: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/api/StoreException.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/api/StoreException.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/jpa/JpaProjectGroupStore.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/jpa/JpaProjectGroupStore.java?rev=578689&view=auto
==============================================================================
--- maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/jpa/JpaProjectGroupStore.java (added)
+++ maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/jpa/JpaProjectGroupStore.java Mon Sep 24 00:45:24 2007
@@ -0,0 +1,66 @@
+/**
+ *
+ */
+package org.apache.maven.continuum.store.jpa;
+
+import java.util.List;
+
+import org.apache.maven.continuum.model.project.ProjectGroup;
+import org.apache.maven.continuum.store.api.EntityNotFoundException;
+import org.apache.maven.continuum.store.api.StoreException;
+import org.apache.maven.continuum.store.api.Query;
+import org.apache.maven.continuum.store.api.Store;
+
+/**
+ * @author <a href='mailto:rahul.thakur.xdev@gmail.com'>Rahul Thakur</a>
+ *
+ */
+public class JpaProjectGroupStore implements Store<ProjectGroup>
+{
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.apache.maven.continuum.store.api.Store#delete(java.lang.Object)
+ */
+ public void delete( ProjectGroup entity ) throws StoreException
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.apache.maven.continuum.store.api.Store#lookup(java.lang.Long)
+ */
+ public ProjectGroup lookup( Long id ) throws StoreException, EntityNotFoundException
+ {
+ // TODO Auto-generated method stub
+
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.apache.maven.continuum.store.api.Store#save(java.lang.Object)
+ */
+ public ProjectGroup save( ProjectGroup entity ) throws StoreException
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.apache.maven.continuum.store.api.Store#query(org.apache.maven.continuum.store.api.Query)
+ */
+ public List<ProjectGroup> query( Query query ) throws StoreException
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+}
Propchange: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/jpa/JpaProjectGroupStore.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/jpa/JpaProjectGroupStore.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/jpa/JpaProjectStore.java
URL: http://svn.apache.org/viewvc/maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/jpa/JpaProjectStore.java?rev=578689&view=auto
==============================================================================
--- maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/jpa/JpaProjectStore.java (added)
+++ maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/jpa/JpaProjectStore.java Mon Sep 24 00:45:24 2007
@@ -0,0 +1,65 @@
+/**
+ *
+ */
+package org.apache.maven.continuum.store.jpa;
+
+import java.util.List;
+
+import org.apache.maven.continuum.model.project.Project;
+import org.apache.maven.continuum.store.api.EntityNotFoundException;
+import org.apache.maven.continuum.store.api.StoreException;
+import org.apache.maven.continuum.store.api.Query;
+import org.apache.maven.continuum.store.api.Store;
+
+/**
+ * @author <a href='mailto:rahul.thakur.xdev@gmail.com'>Rahul Thakur</a>
+ *
+ */
+public class JpaProjectStore implements Store<Project>
+{
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.apache.maven.continuum.store.api.Store#delete(java.lang.Object)
+ */
+ public void delete( Project entity ) throws StoreException
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.apache.maven.continuum.store.api.Store#lookup(java.lang.Long)
+ */
+ public Project lookup( Long id ) throws StoreException, EntityNotFoundException
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.apache.maven.continuum.store.api.Store#save(java.lang.Object)
+ */
+ public Project save( Project entity ) throws StoreException
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.apache.maven.continuum.store.api.Store#query(org.apache.maven.continuum.store.api.Query)
+ */
+ public List<Project> query( Query query ) throws StoreException
+ {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+}
Propchange: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/jpa/JpaProjectStore.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/continuum/branches/continuum-jpa/continuum-model-jpa/src/main/java/org/apache/maven/continuum/store/jpa/JpaProjectStore.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"