|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biojava.bio.seq.db.biosql.DBHelper
public abstract class DBHelper
Isolates all code that is specific to a particular RDBMS. To add
support for a new RDBMS, write a new DBHelper
subclass
and ensure that it can be found by editing the
getDBHelperForURL
method in this class.
Nested Class Summary | |
---|---|
static class |
DBHelper.BioSequenceStyle
Deprecated. |
static class |
DBHelper.DeleteStyle
Deprecated. |
static class |
DBHelper.JoinStyle
Deprecated. |
Field Summary | |
---|---|
static DBHelper.BioSequenceStyle |
BIOSEQUENCE_GENERIC
Deprecated. |
static DBHelper.BioSequenceStyle |
BIOSEQUENCE_ORACLECLOB
Deprecated. |
static DBHelper.DeleteStyle |
DELETE_GENERIC
Deprecated. |
static DBHelper.DeleteStyle |
DELETE_MYSQL4
Deprecated. |
static DBHelper.DeleteStyle |
DELETE_POSTGRESQL
Deprecated. |
static DBHelper.JoinStyle |
JOIN_GENERIC
Deprecated. |
static DBHelper.JoinStyle |
JOIN_ORACLE8
Deprecated. |
Constructor Summary | |
---|---|
DBHelper()
Deprecated. |
Method Summary | |
---|---|
boolean |
containsTable(javax.sql.DataSource ds,
java.lang.String tablename)
Deprecated. Detects whether a particular table is present in the database. |
DBHelper.BioSequenceStyle |
getBioSequenceStyle()
Deprecated. Returns the an object indicating the style of biosequence storage that this database should employ. |
static DBHelper |
getDBHelper(java.sql.Connection conn)
Deprecated. Returns a DBHelper implementation suitable for a particular database. |
DBHelper.DeleteStyle |
getDeleteStyle()
Deprecated. Returns the an object indicating the style of deletion that this database should employ. |
abstract int |
getInsertID(java.sql.Connection conn,
java.lang.String table,
java.lang.String columnName)
Deprecated. Returns the id value created during the last insert command. |
DBHelper.JoinStyle |
getJoinStyle()
Deprecated. Returns the an object indicating the style of table joining that this database should employ. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final DBHelper.DeleteStyle DELETE_POSTGRESQL
public static final DBHelper.DeleteStyle DELETE_MYSQL4
public static final DBHelper.DeleteStyle DELETE_GENERIC
public static final DBHelper.JoinStyle JOIN_ORACLE8
public static final DBHelper.JoinStyle JOIN_GENERIC
public static final DBHelper.BioSequenceStyle BIOSEQUENCE_GENERIC
public static final DBHelper.BioSequenceStyle BIOSEQUENCE_ORACLECLOB
Constructor Detail |
---|
public DBHelper()
Method Detail |
---|
public static DBHelper getDBHelper(java.sql.Connection conn)
conn
- a connection to the database.
DBHelper
.public abstract int getInsertID(java.sql.Connection conn, java.lang.String table, java.lang.String columnName) throws java.sql.SQLException
java.sql.SQLException
public DBHelper.DeleteStyle getDeleteStyle()
public DBHelper.JoinStyle getJoinStyle()
public DBHelper.BioSequenceStyle getBioSequenceStyle()
public boolean containsTable(javax.sql.DataSource ds, java.lang.String tablename)
ds
- a DataSource
that can provide a connection to a databasetablename
- the name of the table.
java.lang.NullPointerException
- if pool is null.
java.lang.IllegalArgumentException
- if tablename is null or empty.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |