|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.ispsoft.jaxme.util.OraLob
Helper class for working with Lobs on Oracle.
Constructor Summary | |
OraLob()
|
Method Summary | |
static byte[] |
getContent(java.sql.Blob pBlob)
Reads data from a BLOB returned by the database. |
static java.lang.String |
getContent(java.sql.Clob pClob)
Reads data from a CLOB returned by the database. |
static java.lang.String |
getURLDecodedContent(java.sql.Clob pClob)
|
static java.sql.Blob |
prepareBLOB(java.sql.Connection pConn,
byte[] pBinData)
The Oracle driver doesn't accept arbitrary implementations of BLOB. |
static java.sql.Clob |
prepareCLOB(java.sql.Connection pConn,
java.lang.String pCharData)
The Oracle driver doesn't accept arbitrary implementations of CLOB. |
static java.sql.Clob |
prepareURLEncodedCLOB(java.sql.Connection pConn,
java.lang.String pCharData)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OraLob()
Method Detail |
public static java.sql.Blob prepareBLOB(java.sql.Connection pConn, byte[] pBinData) throws java.sql.SQLException
The Oracle driver doesn't accept arbitrary implementations of BLOB. It requires special instances, returned by this method.
pConn
- The connectionpBinData
- An array with binary data.
PreparedStatement#setBlob(int, java.sql.Blob)
.
java.sql.SQLException
public static byte[] getContent(java.sql.Blob pBlob) throws java.sql.SQLException
Reads data from a BLOB returned by the database.
pBlob
-
java.sql.SQLException
public static java.sql.Clob prepareCLOB(java.sql.Connection pConn, java.lang.String pCharData) throws java.sql.SQLException
The Oracle driver doesn't accept arbitrary implementations of CLOB. It requires special instances, returned by this method.
pConn
- The connectionpCharData
- An array with character data.
PreparedStatement#setClob(int, java.sql.Clob)
.
java.sql.SQLException
public static java.lang.String getContent(java.sql.Clob pClob) throws java.sql.SQLException
Reads data from a CLOB returned by the database.
java.sql.SQLException
public static java.sql.Clob prepareURLEncodedCLOB(java.sql.Connection pConn, java.lang.String pCharData) throws java.sql.SQLException
java.sql.SQLException
public static java.lang.String getURLDecodedContent(java.sql.Clob pClob) throws java.sql.SQLException
java.sql.SQLException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |