Package org.biojava.bio.seq.db.biosql
Class OracleDBHelper
java.lang.Object
org.biojava.bio.seq.db.biosql.DBHelper
org.biojava.bio.seq.db.biosql.OracleDBHelper
Deprecated.
Use hibernate and org.biojavax.bio.db.*
This is a
DBHelper that provides support for Oracle
databases.- Author:
- Len Trigg, Eric Haugen, Richard Holland
-
Nested Class Summary
Nested classes/interfaces inherited from class org.biojava.bio.seq.db.biosql.DBHelper
DBHelper.BioSequenceStyle, DBHelper.DeleteStyle, DBHelper.JoinStyle -
Field Summary
Fields inherited from class org.biojava.bio.seq.db.biosql.DBHelper
BIOSEQUENCE_GENERIC, BIOSEQUENCE_ORACLECLOB, DELETE_GENERIC, DELETE_MYSQL4, DELETE_POSTGRESQL, JOIN_GENERIC, JOIN_ORACLE8 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclobToString(Connection conn, ResultSet rs, int column) Deprecated.booleancontainsTable(DataSource ds, String tablename) Deprecated.Detects whether a particular table is present in the database.Deprecated.Returns the an object indicating the style of biosequence storage that this database should employ.intgetInsertID(Connection conn, String table, String columnName) Deprecated.Returns the id value created during the last insert command.Deprecated.Returns the an object indicating the style of table joining that this database should employ.voidstringToClob(Connection conn, ResultSet rs, int column, String value) Deprecated.Methods inherited from class org.biojava.bio.seq.db.biosql.DBHelper
getDBHelper, getDeleteStyle
-
Constructor Details
-
OracleDBHelper
Deprecated.
-
-
Method Details
-
getJoinStyle
Deprecated.Description copied from class:DBHelperReturns the an object indicating the style of table joining that this database should employ.- Overrides:
getJoinStylein classDBHelper- Returns:
- the preferred joining style.
-
getInsertID
Deprecated.Description copied from class:DBHelperReturns the id value created during the last insert command. This is for tables that have an auto increment column.- Specified by:
getInsertIDin classDBHelper- Returns:
- the last id assigned, or -1 if the id could not be found.
- Throws:
SQLException
-
containsTable
Deprecated.Description copied from class:DBHelperDetects whether a particular table is present in the database.- Overrides:
containsTablein classDBHelper- Parameters:
ds- aDataSourcethat can provide a connection to a databasetablename- the name of the table.- Returns:
- true if the table exists in the database.
-
getBioSequenceStyle
Deprecated.Description copied from class:DBHelperReturns the an object indicating the style of biosequence storage that this database should employ. Generally, leave it at the default unless you are using the Oracle schema, in which case you need to override it to return BIOSEQUENCE_ORACLECLOB. This is because, in the Oracle schema we need to use CLOBs (except when using Len Trigg's version which uses LONGs instead.)- Overrides:
getBioSequenceStylein classDBHelper- Returns:
- the preferred joining style.
-
clobToString
Deprecated. -
stringToClob
Deprecated.
-