|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsqlg2.db.OracleDBSpecific
public final class OracleDBSpecific
DBSpecific implementation for Oracle.
| Constructor Summary | |
|---|---|
OracleDBSpecific()
|
|
| Method Summary | |
|---|---|
void |
freeBlob(java.sql.Connection conn,
java.sql.Blob blob)
Frees BLOB data after return from stored procedure. |
void |
freeClob(java.sql.Connection conn,
java.sql.Clob clob)
Frees CLOB data after return from stored procedure. |
java.io.OutputStream |
getBlobOutputStream(java.sql.Blob blob)
Retrieves stream to write BLOB contents |
java.lang.Class<? extends SqlChecker> |
getCheckerClass()
Returns checker of SQL statements for this DB. |
java.io.Writer |
getClobWriter(java.sql.Clob clob)
Retrieves stream to write CLOB contents |
int |
getDateSqlType(java.lang.Class<? extends java.util.Date> cls)
Determines which of SQL date types to use for given Java Date subclass - Types.DATE,
Types.TIME or Types.TIMESTAMP. |
static int |
getDateSqlTypeStatic(java.lang.Class<? extends java.util.Date> cls)
|
long |
getNextId(java.sql.Connection conn,
java.lang.String sequence)
Gets next number from sequence |
static java.lang.String |
getNextSeqSql(java.lang.String sequence)
|
int |
getResultSetType()
Returns type code to use for CallableStatement.registerOutParameter(int, int) for
cursor OUT parameters. |
java.util.Date |
getServerDate(java.sql.Connection conn)
Returns DB server local time. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OracleDBSpecific()
| Method Detail |
|---|
public static java.lang.String getNextSeqSql(java.lang.String sequence)
public long getNextId(java.sql.Connection conn,
java.lang.String sequence)
throws java.sql.SQLException
DBSpecific
getNextId in interface DBSpecificsequence - sequence name
java.sql.SQLException
public void freeClob(java.sql.Connection conn,
java.sql.Clob clob)
throws java.sql.SQLException
DBSpecific
freeClob in interface DBSpecificjava.sql.SQLException
public void freeBlob(java.sql.Connection conn,
java.sql.Blob blob)
throws java.sql.SQLException
DBSpecific
freeBlob in interface DBSpecificjava.sql.SQLException
public java.util.Date getServerDate(java.sql.Connection conn)
throws java.sql.SQLException
DBSpecific
getServerDate in interface DBSpecificjava.sql.SQLException
public java.io.OutputStream getBlobOutputStream(java.sql.Blob blob)
throws java.sql.SQLException
DBSpecific
getBlobOutputStream in interface DBSpecificjava.sql.SQLException
public java.io.Writer getClobWriter(java.sql.Clob clob)
throws java.sql.SQLException
DBSpecific
getClobWriter in interface DBSpecificjava.sql.SQLExceptionpublic static int getDateSqlTypeStatic(java.lang.Class<? extends java.util.Date> cls)
public int getDateSqlType(java.lang.Class<? extends java.util.Date> cls)
DBSpecificTypes.DATE,
Types.TIME or Types.TIMESTAMP.
getDateSqlType in interface DBSpecificpublic java.lang.Class<? extends SqlChecker> getCheckerClass()
DBSpecific
getCheckerClass in interface DBSpecificpublic int getResultSetType()
DBSpecificCallableStatement.registerOutParameter(int, int) for
cursor OUT parameters.
getResultSetType in interface DBSpecific
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||