Package com.ocient.jdbc
Class XGClob
java.lang.Object
com.ocient.jdbc.XGClob
An in-memory implementation of java.sql.Clob and java.sql.NClob. This class can be either
read-only (for data from an XGResultSet) or writeable (for data created via
XGConnection.createClob()). It holds the data in a StringBuilder.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfree()getCharacterStream(long pos, long length) getSubString(long pos, int length) longlength()longlongsetAsciiStream(long pos) setCharacterStream(long pos) intintvoidtruncate(long len)
-
Constructor Details
-
XGClob
public XGClob()Creates a new, writeable, empty XGClob. Used by Connection.createClob() and createNClob(). -
XGClob
Creates a new, read-only XGClob wrapping the given string data. Used by XGResultSet.getClob().- Parameters:
data- The string data to wrap.
-
-
Method Details
-
length
- Specified by:
lengthin interfaceClob- Throws:
SQLException
-
getSubString
- Specified by:
getSubStringin interfaceClob- Throws:
SQLException
-
getCharacterStream
- Specified by:
getCharacterStreamin interfaceClob- Throws:
SQLException
-
getAsciiStream
- Specified by:
getAsciiStreamin interfaceClob- Throws:
SQLException
-
position
- Specified by:
positionin interfaceClob- Throws:
SQLException
-
position
- Specified by:
positionin interfaceClob- Throws:
SQLException
-
getCharacterStream
- Specified by:
getCharacterStreamin interfaceClob- Throws:
SQLException
-
free
- Specified by:
freein interfaceClob- Throws:
SQLException
-
setString
- Specified by:
setStringin interfaceClob- Throws:
SQLException
-
setString
- Specified by:
setStringin interfaceClob- Throws:
SQLException
-
setAsciiStream
- Specified by:
setAsciiStreamin interfaceClob- Throws:
SQLException
-
setCharacterStream
- Specified by:
setCharacterStreamin interfaceClob- Throws:
SQLException
-
truncate
- Specified by:
truncatein interfaceClob- Throws:
SQLException
-