public abstract class DBHelper extends Object
DBHelper subclass
and ensure that it can be found by editing the
getDBHelperForURL method in this class.| Modifier and Type | Class and Description |
|---|---|
static class |
DBHelper.BioSequenceStyle
Deprecated.
|
static class |
DBHelper.DeleteStyle
Deprecated.
|
static class |
DBHelper.JoinStyle
Deprecated.
|
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
DBHelper()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsTable(DataSource ds,
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(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(Connection conn,
String table,
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.
|
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
public DBHelper()
public static DBHelper getDBHelper(Connection conn)
conn - a connection to the database.DBHelper.public abstract int getInsertID(Connection conn, String table, String columnName) throws SQLException
SQLExceptionpublic DBHelper.DeleteStyle getDeleteStyle()
public DBHelper.JoinStyle getJoinStyle()
public DBHelper.BioSequenceStyle getBioSequenceStyle()
public boolean containsTable(DataSource ds, String tablename)
ds - a DataSource that can provide a connection to a databasetablename - the name of the table.NullPointerException - if pool is null.IllegalArgumentException - if tablename is null or empty.Copyright © 2014 BioJava. All rights reserved.