Fix factory issue.

This commit is contained in:
Christian P. MOMON 2013-09-05 22:56:59 +02:00
parent 31e7fb3650
commit 7709d3b442
2 changed files with 26 additions and 1 deletions

View file

@ -15,6 +15,7 @@
*/ */
package fr.devinsy.sikevadb; package fr.devinsy.sikevadb;
import java.io.File;
import java.util.Date; import java.util.Date;
import fr.devinsy.util.StringList; import fr.devinsy.util.StringList;
@ -25,6 +26,14 @@ import fr.devinsy.util.StringList;
* @author Christian P. Momon * @author Christian P. Momon
*/ */
public class FileSikevaDB implements SikevaDB { public class FileSikevaDB implements SikevaDB {
/**
*
* @param path
*/
public FileSikevaDB(final File path) {
}
/** /**
* *
* @param path * @param path

View file

@ -15,6 +15,8 @@
*/ */
package fr.devinsy.sikevadb; package fr.devinsy.sikevadb;
import java.io.File;
/** /**
* *
* *
@ -26,7 +28,7 @@ public class SikevaDBFactory {
* @param path * @param path
* @return * @return
*/ */
public static SikevaDB get(final String path) { public static SikevaDB get(final File path) {
SikevaDB result; SikevaDB result;
result = new FileSikevaDB(path); result = new FileSikevaDB(path);
@ -35,6 +37,20 @@ public class SikevaDBFactory {
return result; return result;
} }
/**
*
* @param path
* @return
*/
public static SikevaDB get(final String contextName) {
SikevaDB result;
result = new SQLSikevaDB(contextName);
//
return result;
}
/** /**
* *
* @param driverClassName * @param driverClassName