org.jpox.store.rdbms.datatype
Class ClobImpl
java.lang.Object
org.jpox.store.rdbms.datatype.ClobImpl
- All Implemented Interfaces:
- java.sql.Clob
public class ClobImpl
- extends java.lang.Object
- implements java.sql.Clob
The mapping in the JavaTM programming language
for the SQL CLOB type.
An SQL CLOB is a built-in type
that stores a Character Large Object as a column value in a row of
a database table.
By default drivers implement a Clob object using an SQL
locator(CLOB), which means that a Clob object
contains a logical pointer to the SQL CLOB data rather than
the data itself. A Clob object is valid for the duration
of the transaction in which it was created.
The Clob interface provides methods for getting the
length of an SQL CLOB (Character Large Object) value,
for materializing a CLOB value on the client, and for
searching for a substring or CLOB object within a
CLOB value.
Methods in the interfaces ResultSet,
CallableStatement, and PreparedStatement, such as
getClob and setClob allow a programmer to
access an SQL CLOB value. In addition, this interface
has methods for updating a CLOB value.
This class is new in the JDBC 2.0 API.
- Version:
- $Revision: 1.2 $
|
Constructor Summary |
ClobImpl(java.lang.String string)
Constructor taking a string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClobImpl
public ClobImpl(java.lang.String string)
throws java.io.IOException
- Constructor taking a string.
- Parameters:
string - The string.
- Throws:
java.io.IOException
length
public long length()
throws java.sql.SQLException
- Specified by:
length in interface java.sql.Clob
- Throws:
java.sql.SQLException
truncate
public void truncate(long len)
throws java.sql.SQLException
- Specified by:
truncate in interface java.sql.Clob
- Throws:
java.sql.SQLException
getAsciiStream
public java.io.InputStream getAsciiStream()
throws java.sql.SQLException
- Specified by:
getAsciiStream in interface java.sql.Clob
- Throws:
java.sql.SQLException
setAsciiStream
public java.io.OutputStream setAsciiStream(long pos)
throws java.sql.SQLException
- Specified by:
setAsciiStream in interface java.sql.Clob
- Throws:
java.sql.SQLException
getCharacterStream
public java.io.Reader getCharacterStream()
throws java.sql.SQLException
- Specified by:
getCharacterStream in interface java.sql.Clob
- Throws:
java.sql.SQLException
setCharacterStream
public java.io.Writer setCharacterStream(long pos)
throws java.sql.SQLException
- Specified by:
setCharacterStream in interface java.sql.Clob
- Throws:
java.sql.SQLException
getSubString
public java.lang.String getSubString(long pos,
int length)
throws java.sql.SQLException
- Specified by:
getSubString in interface java.sql.Clob
- Throws:
java.sql.SQLException
setString
public int setString(long pos,
java.lang.String str)
throws java.sql.SQLException
- Specified by:
setString in interface java.sql.Clob
- Throws:
java.sql.SQLException
setString
public int setString(long pos,
java.lang.String str,
int offset,
int len)
throws java.sql.SQLException
- Specified by:
setString in interface java.sql.Clob
- Throws:
java.sql.SQLException
position
public long position(java.lang.String searchstr,
long start)
throws java.sql.SQLException
- Specified by:
position in interface java.sql.Clob
- Throws:
java.sql.SQLException
position
public long position(java.sql.Clob searchstr,
long start)
throws java.sql.SQLException
- Specified by:
position in interface java.sql.Clob
- Throws:
java.sql.SQLException
Copyright © -2010 . All Rights Reserved.