private static class P2JPostgreSQLDialect.FWDClob
extends java.lang.Object
implements java.sql.Clob
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
data
The data.
|
| Constructor and Description |
|---|
FWDClob(java.lang.String data)
Create a new CLOB instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
free()
Release the
data. |
java.io.InputStream |
getAsciiStream()
Get the ASCII stream.
|
java.io.Reader |
getCharacterStream()
Get the character stream.
|
java.io.Reader |
getCharacterStream(long pos,
long length)
Get the character stream starting from the given position, and with the specified length.
|
java.lang.String |
getSubString(long pos,
int length)
Get the substring starting from the given position, and with the specified length.
|
long |
length()
Get the
data length. |
long |
position(java.sql.Clob searchstr,
long start)
Operation not allowed.
|
long |
position(java.lang.String searchstr,
long start)
Operation not allowed.
|
java.io.OutputStream |
setAsciiStream(long pos)
Operation not allowed.
|
java.io.Writer |
setCharacterStream(long pos)
Operation not allowed.
|
int |
setString(long pos,
java.lang.String str)
Operation not allowed.
|
int |
setString(long pos,
java.lang.String str,
int offset,
int len)
Operation not allowed.
|
void |
truncate(long len)
Operation not allowed.
|
public FWDClob(java.lang.String data)
data - The data.public long length()
throws java.sql.SQLException
data length.length in interface java.sql.Clobjava.sql.SQLExceptionpublic java.lang.String getSubString(long pos,
int length)
throws java.sql.SQLException
getSubString in interface java.sql.Clobpos - The 1-based position.length - The length.java.sql.SQLExceptionpublic java.io.Reader getCharacterStream()
throws java.sql.SQLException
getCharacterStream in interface java.sql.Clobjava.sql.SQLExceptionpublic java.io.InputStream getAsciiStream()
throws java.sql.SQLException
getAsciiStream in interface java.sql.Clobjava.sql.SQLExceptionpublic java.io.Reader getCharacterStream(long pos,
long length)
throws java.sql.SQLException
getCharacterStream in interface java.sql.Clobpos - The 1-based position.length - The length.java.sql.SQLExceptionpublic void free()
throws java.sql.SQLException
data.free in interface java.sql.Clobjava.sql.SQLExceptionpublic long position(java.lang.String searchstr,
long start)
throws java.sql.SQLException
position in interface java.sql.Clobjava.sql.SQLException - Alwayspublic long position(java.sql.Clob searchstr,
long start)
throws java.sql.SQLException
position in interface java.sql.Clobjava.sql.SQLException - Alwayspublic int setString(long pos,
java.lang.String str)
throws java.sql.SQLException
setString in interface java.sql.Clobjava.sql.SQLException - Alwayspublic int setString(long pos,
java.lang.String str,
int offset,
int len)
throws java.sql.SQLException
setString in interface java.sql.Clobjava.sql.SQLException - Alwayspublic java.io.OutputStream setAsciiStream(long pos)
throws java.sql.SQLException
setAsciiStream in interface java.sql.Clobjava.sql.SQLException - Alwayspublic java.io.Writer setCharacterStream(long pos)
throws java.sql.SQLException
setCharacterStream in interface java.sql.Clobjava.sql.SQLException - Alwayspublic void truncate(long len)
throws java.sql.SQLException
truncate in interface java.sql.Clobjava.sql.SQLException - Always