From: <mwl...@us...> - 2009-01-15 23:56:17
|
Revision: 841 http://cishell.svn.sourceforge.net/cishell/?rev=841&view=rev Author: mwlinnem Date: 2009-01-15 21:38:00 +0000 (Thu, 15 Jan 2009) Log Message: ----------- Initial import. Same code as the old one, but a working plugin setup. Added Paths: ----------- trunk/core/org.cishell.service.database/.classpath trunk/core/org.cishell.service.database/.project trunk/core/org.cishell.service.database/.settings/ trunk/core/org.cishell.service.database/META-INF/ trunk/core/org.cishell.service.database/META-INF/MANIFEST.MF trunk/core/org.cishell.service.database/build.properties trunk/core/org.cishell.service.database/src/ trunk/core/org.cishell.service.database/src/org/ trunk/core/org.cishell.service.database/src/org/cishell/ trunk/core/org.cishell.service.database/src/org/cishell/service/ trunk/core/org.cishell.service.database/src/org/cishell/service/database/ trunk/core/org.cishell.service.database/src/org/cishell/service/database/DatabaseCopyException.java trunk/core/org.cishell.service.database/src/org/cishell/service/database/DatabaseCreationException.java trunk/core/org.cishell.service.database/src/org/cishell/service/database/DatabaseService.java Added: trunk/core/org.cishell.service.database/.classpath =================================================================== --- trunk/core/org.cishell.service.database/.classpath (rev 0) +++ trunk/core/org.cishell.service.database/.classpath 2009-01-15 21:38:00 UTC (rev 841) @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.4"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> + <classpathentry kind="src" path="src"/> + <classpathentry kind="output" path="bin"/> +</classpath> Added: trunk/core/org.cishell.service.database/.project =================================================================== --- trunk/core/org.cishell.service.database/.project (rev 0) +++ trunk/core/org.cishell.service.database/.project 2009-01-15 21:38:00 UTC (rev 841) @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.cishell.service.database</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.jdt.core.javabuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.ManifestBuilder</name> + <arguments> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.pde.SchemaBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.pde.PluginNature</nature> + <nature>org.eclipse.jdt.core.javanature</nature> + </natures> +</projectDescription> Added: trunk/core/org.cishell.service.database/META-INF/MANIFEST.MF =================================================================== --- trunk/core/org.cishell.service.database/META-INF/MANIFEST.MF (rev 0) +++ trunk/core/org.cishell.service.database/META-INF/MANIFEST.MF 2009-01-15 21:38:00 UTC (rev 841) @@ -0,0 +1,7 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Database Plug-in +Bundle-SymbolicName: org.cishell.service.database +Bundle-Version: 1.0.0 +Bundle-RequiredExecutionEnvironment: J2SE-1.4 +Export-Package: org.cishell.service.database Added: trunk/core/org.cishell.service.database/build.properties =================================================================== --- trunk/core/org.cishell.service.database/build.properties (rev 0) +++ trunk/core/org.cishell.service.database/build.properties 2009-01-15 21:38:00 UTC (rev 841) @@ -0,0 +1,4 @@ +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + . Added: trunk/core/org.cishell.service.database/src/org/cishell/service/database/DatabaseCopyException.java =================================================================== --- trunk/core/org.cishell.service.database/src/org/cishell/service/database/DatabaseCopyException.java (rev 0) +++ trunk/core/org.cishell.service.database/src/org/cishell/service/database/DatabaseCopyException.java 2009-01-15 21:38:00 UTC (rev 841) @@ -0,0 +1,38 @@ +/* **************************************************************************** + * CIShell: Cyberinfrastructure Shell, An Algorithm Integration Framework. + * + * All rights reserved. This program and the accompanying materials are made + * available under the terms of the Apache License v2.0 which accompanies + * this distribution, and is available at: + * http://www.apache.org/licenses/LICENSE-2.0.html + * + * Created on Jan 13, 2009 at Indiana University. + * + * Contributors: + * Indiana University - + * ***************************************************************************/ +package org.cishell.service.database; + +public class DatabaseCopyException extends Exception { + + private static final long serialVersionUID = 1L; + + //Constructors from Exception superclass + + public DatabaseCopyException() { + super(); + } + + public DatabaseCopyException(String arg0) { + super(arg0); + } + + public DatabaseCopyException(Throwable arg0) { + super(arg0); + } + + public DatabaseCopyException(String arg0, Throwable arg1) { + super(arg0, arg1); + } + +} Added: trunk/core/org.cishell.service.database/src/org/cishell/service/database/DatabaseCreationException.java =================================================================== --- trunk/core/org.cishell.service.database/src/org/cishell/service/database/DatabaseCreationException.java (rev 0) +++ trunk/core/org.cishell.service.database/src/org/cishell/service/database/DatabaseCreationException.java 2009-01-15 21:38:00 UTC (rev 841) @@ -0,0 +1,25 @@ +package org.cishell.service.database; + +public class DatabaseCreationException extends Exception { + + private static final long serialVersionUID = 1L; + + //Constructors from Exception superclass + + public DatabaseCreationException() { + super(); + } + + public DatabaseCreationException(String arg0) { + super(arg0); + } + + public DatabaseCreationException(Throwable arg0) { + super(arg0); + } + + public DatabaseCreationException(String arg0, Throwable arg1) { + super(arg0, arg1); + } + +} Added: trunk/core/org.cishell.service.database/src/org/cishell/service/database/DatabaseService.java =================================================================== --- trunk/core/org.cishell.service.database/src/org/cishell/service/database/DatabaseService.java (rev 0) +++ trunk/core/org.cishell.service.database/src/org/cishell/service/database/DatabaseService.java 2009-01-15 21:38:00 UTC (rev 841) @@ -0,0 +1,9 @@ +package org.cishell.service.database; + +import javax.sql.DataSource; + +public interface DatabaseService { + + public DataSource createDatabase() throws DatabaseCreationException; + public DataSource copyDatabase(DataSource database) throws DatabaseCopyException; +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |