public abstract class BaseDB extends Object
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
getCheckString()
Returns a SQL statement that is the cheapest way to check the validity of a connection.
|
protected abstract int |
getFullSequenceID(Connection dbc,
String tablename)
Returns a sequence number that can be used to create a new PK for a
record in the given table.
|
protected abstract Reader |
getLobReader(Connection dbc,
ResultSet rs,
int col)
Returns a Reader from the blob (clob) column specified.
|
protected abstract Reader |
getLobReader(Connection dbc,
ResultSet rs,
String col)
Returns a Reader from the blob (clob) column specified.
|
protected abstract InputStream |
getLobStream(Connection dbc,
ResultSet rs,
int col)
Returns an InputStream from the blob (clob) column specified.
|
protected abstract InputStream |
getLobStream(Connection dbc,
ResultSet rs,
String col)
Returns an InputStream from the blob (clob) column specified.
|
String |
getName() |
protected abstract int |
getSequenceID(Connection dbc,
String tablename)
Returns a sequence number that can be used to create a new PK for a
record in the given table.
|
boolean |
oracleOuterJoin() |
protected abstract void |
setBlob(Connection dbc,
String table,
String column,
String[] pkfields,
Object[] key,
InputStream is,
int len) |
protected void |
setBlob(Connection dbc,
String table,
String column,
String where,
byte[][] data) |
protected abstract void |
setBlob(Connection dbc,
String table,
String column,
String where,
InputStream is,
int len)
Writes a blob to the requested record.
|
protected abstract void |
setClob(Connection dbc,
String table,
String column,
String where,
Reader r) |
static int |
streamCopy(OutputStream os,
InputStream is) |
protected BaseDB(String name)
public String getName()
protected abstract int getSequenceID(Connection dbc, String tablename) throws SQLException
dbc - tablename - SQLExceptionprotected abstract int getFullSequenceID(Connection dbc, String tablename) throws SQLException
dbc - tablename - SQLExceptionprotected abstract void setBlob(Connection dbc, String table, String column, String where, InputStream is, int len) throws SQLException
SQLExceptionprotected abstract void setBlob(Connection dbc, String table, String column, String[] pkfields, Object[] key, InputStream is, int len) throws SQLException
SQLExceptionprotected abstract String getCheckString()
public static int streamCopy(OutputStream os, InputStream is) throws IOException
IOExceptionprotected abstract Reader getLobReader(Connection dbc, ResultSet rs, int col) throws Exception
rs - col - Exceptionprotected abstract Reader getLobReader(Connection dbc, ResultSet rs, String col) throws Exception
rs - col - Exceptionprotected abstract InputStream getLobStream(Connection dbc, ResultSet rs, int col) throws Exception
rs - col - Exceptionprotected abstract InputStream getLobStream(Connection dbc, ResultSet rs, String col) throws Exception
rs - col - Exceptionpublic boolean oracleOuterJoin()
protected void setBlob(Connection dbc, String table, String column, String where, byte[][] data) throws SQLException
SQLExceptionCopyright © 2017 etc.to. All rights reserved.