|
MDi JLib 1.7.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.microdeveloper.data.OracleClob
public class OracleClob
Extends the Oracle CLOB interface to allow for operations that are currently unsupported in the Oracle driver.
Version Notes:
Constructor Summary | |
---|---|
OracleClob()
Creates a new instance of OracleClob |
|
OracleClob(Clob c)
Creates a new instance of Clob using a given java.sql.Clob |
|
OracleClob(CLOB c)
Creates a new instance of Clob using a given oracle.sql.CLOB |
Method Summary | |
---|---|
void |
setClob(Clob c)
Sets this Clob to the given java.sql.Clob |
void |
setClob(CLOB c)
Sets this Clob to the given oracle.sql.CLOB |
void |
setClob(String s)
Sets this Clob to the given String |
static Clob |
toClob(String s)
Converts a string to a java.sql.Clob object |
static CLOB |
toCLOB(String s)
Converts a string to a oracle.sql.CLOB object |
String |
toString()
Converts this Clob to a String. |
static String |
toString(Clob c)
Converts java.sql.Clob c to a String. |
static String |
toString(CLOB c)
Converts oracle.sql.CLOB c to a String. |
void |
truncate()
Clears the CLOB but does not make the Clob null |
CLOB |
truncate(CLOB c)
Clears the given CLOB but does not make the Clob null |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OracleClob()
public OracleClob(CLOB c)
c
- the CLOB to use when instantiatedpublic OracleClob(Clob c)
c
- the CLOB to use when instantiatedMethod Detail |
---|
public String toString()
toString
in interface OracleClobInterface
toString
in class Object
public static String toString(CLOB c)
c
- CLOB to be converted
public static String toString(Clob c)
c
- CLOB to be converted
public static CLOB toCLOB(String s) throws SQLException
s
- String to convert
SQLException
- thrown if the conversion failspublic static Clob toClob(String s) throws SQLException
s
- String to convert
SQLException
- thrown if the conversion failspublic void setClob(CLOB c) throws SQLException
setClob
in interface OracleClobInterface
c
- the CLOB to mirror
SQLException
- thrown if the conversion failspublic void setClob(Clob c) throws SQLException
c
- the CLOB to mirror
SQLException
- thrown if the conversion failspublic void setClob(String s) throws SQLException
setClob
in interface OracleClobInterface
s
- the String to set the Clob to
SQLException
- thrown if the conversion failspublic void truncate() throws SQLException
truncate
in interface OracleClobInterface
SQLException
- thrown if the Clob cannot be cleared or has not been initializedpublic CLOB truncate(CLOB c) throws SQLException
truncate
in interface OracleClobInterface
c
- CLOB to truncate
SQLException
- Thrown if the attempt to clear the CLOB fails
|
MDi JLib 1.7.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |