|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.dbutil.BaseDB
public abstract class BaseDB
Constructor Summary | |
---|---|
protected |
BaseDB()
|
Method Summary | |
---|---|
protected abstract java.lang.String |
getCheckString()
Returns a SQL statement that is the cheapest way to check the validity of a connection. |
protected abstract int |
getFullSequenceID(java.sql.Connection dbc,
java.lang.String tablename)
Returns a sequence number that can be used to create a new PK for a record in the given table. |
protected abstract java.io.Reader |
getLobReader(java.sql.Connection dbc,
java.sql.ResultSet rs,
int col)
Returns a Reader from the blob (clob) column specified. |
protected abstract java.io.Reader |
getLobReader(java.sql.Connection dbc,
java.sql.ResultSet rs,
java.lang.String col)
Returns a Reader from the blob (clob) column specified. |
protected abstract java.io.InputStream |
getLobStream(java.sql.Connection dbc,
java.sql.ResultSet rs,
int col)
Returns an InputStream from the blob (clob) column specified. |
protected abstract java.io.InputStream |
getLobStream(java.sql.Connection dbc,
java.sql.ResultSet rs,
java.lang.String col)
Returns an InputStream from the blob (clob) column specified. |
protected abstract int |
getSequenceID(java.sql.Connection dbc,
java.lang.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(java.sql.Connection dbc,
java.lang.String table,
java.lang.String column,
java.lang.String[] pkfields,
java.lang.Object[] key,
java.io.InputStream is)
|
protected void |
setBlob(java.sql.Connection dbc,
java.lang.String table,
java.lang.String column,
java.lang.String where,
byte[][] data)
|
protected abstract void |
setBlob(java.sql.Connection dbc,
java.lang.String table,
java.lang.String column,
java.lang.String where,
java.io.InputStream is)
Writes a blob to the requested record. |
protected abstract void |
setClob(java.sql.Connection dbc,
java.lang.String table,
java.lang.String column,
java.lang.String where,
java.io.Reader r)
|
static int |
streamCopy(java.io.OutputStream os,
java.io.InputStream is)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected BaseDB()
Method Detail |
---|
protected abstract int getSequenceID(java.sql.Connection dbc, java.lang.String tablename) throws java.sql.SQLException
dbc
- tablename
-
java.sql.SQLException
protected abstract int getFullSequenceID(java.sql.Connection dbc, java.lang.String tablename) throws java.sql.SQLException
dbc
- tablename
-
java.sql.SQLException
protected abstract void setBlob(java.sql.Connection dbc, java.lang.String table, java.lang.String column, java.lang.String where, java.io.InputStream is) throws java.sql.SQLException
java.sql.SQLException
protected abstract void setBlob(java.sql.Connection dbc, java.lang.String table, java.lang.String column, java.lang.String[] pkfields, java.lang.Object[] key, java.io.InputStream is) throws java.sql.SQLException
java.sql.SQLException
protected abstract java.lang.String getCheckString()
public static int streamCopy(java.io.OutputStream os, java.io.InputStream is) throws java.io.IOException
java.io.IOException
protected abstract java.io.Reader getLobReader(java.sql.Connection dbc, java.sql.ResultSet rs, int col) throws java.lang.Exception
rs
- col
-
java.lang.Exception
protected abstract java.io.Reader getLobReader(java.sql.Connection dbc, java.sql.ResultSet rs, java.lang.String col) throws java.lang.Exception
rs
- col
-
java.lang.Exception
protected abstract java.io.InputStream getLobStream(java.sql.Connection dbc, java.sql.ResultSet rs, int col) throws java.lang.Exception
rs
- col
-
java.lang.Exception
protected abstract java.io.InputStream getLobStream(java.sql.Connection dbc, java.sql.ResultSet rs, java.lang.String col) throws java.lang.Exception
rs
- col
-
java.lang.Exception
public boolean oracleOuterJoin()
protected void setBlob(java.sql.Connection dbc, java.lang.String table, java.lang.String column, java.lang.String where, byte[][] data) throws java.sql.SQLException
java.sql.SQLException
protected abstract void setClob(java.sql.Connection dbc, java.lang.String table, java.lang.String column, java.lang.String where, java.io.Reader r) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |