|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.osesb.utilities.jdbc.ByteArrayClob
public class ByteArrayClob
Utility Implementation for dealing with java.sql.Clob objects. For example, use this class to insert a Clob column or with the ResultSet, updateClob() method.
This class is not compatible with Oracle. Use the getOracleClobImplementation() method in org.osesb.utilities.jdbc.JDBCUtilities.
JDBCUtilitiesTest.testClob()| Field Summary | |
|---|---|
protected java.lang.StringBuffer |
buff
StringBuffer for Clob data. |
protected java.io.ByteArrayOutputStream |
clobStorage
ByteArrayOutputStream for Clob data. |
protected java.lang.String |
thisClassName
The full name of this class. |
| Constructor Summary | |
|---|---|
ByteArrayClob(byte[] clobData)
Creates a new instance of ByteArrayClob. |
|
ByteArrayClob(java.lang.String clobData)
Creates a new instance of ByteArrayClob. |
|
| Method Summary | |
|---|---|
java.io.InputStream |
getAsciiStream()
|
java.io.Reader |
getCharacterStream()
|
java.lang.String |
getSubString(long pos,
int length)
|
long |
length()
|
static void |
main(java.lang.String[] args)
|
long |
position(java.sql.Clob searchstr,
long start)
|
long |
position(java.lang.String searchstr,
long start)
|
java.io.OutputStream |
setAsciiStream(long pos)
|
java.io.Writer |
setCharacterStream(long pos)
|
int |
setString(long pos,
java.lang.String str)
|
int |
setString(long pos,
java.lang.String str,
int offset,
int len)
|
void |
truncate(long len)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.io.ByteArrayOutputStream clobStorage
protected java.lang.StringBuffer buff
protected java.lang.String thisClassName
| Constructor Detail |
|---|
public ByteArrayClob(java.lang.String clobData)
throws java.lang.Exception
clobData - Clob data as a String.
java.lang.Exception - if constructed with invalid parameters.
public ByteArrayClob(byte[] clobData)
throws java.lang.Exception
clobData - Clob data as a byte[].
java.lang.Exception - if constructed with invalid parameters.| Method Detail |
|---|
public long length()
length in interface java.sql.Clob
public java.lang.String getSubString(long pos,
int length)
getSubString in interface java.sql.Clobpublic java.io.Reader getCharacterStream()
getCharacterStream in interface java.sql.Clobpublic java.io.InputStream getAsciiStream()
getAsciiStream in interface java.sql.Clob
public long position(java.lang.String searchstr,
long start)
position in interface java.sql.Clob
public long position(java.sql.Clob searchstr,
long start)
position in interface java.sql.Clob
public int setString(long pos,
java.lang.String str)
throws java.sql.SQLException
setString in interface java.sql.Clobjava.sql.SQLException
public int setString(long pos,
java.lang.String str,
int offset,
int len)
throws java.sql.SQLException
setString in interface java.sql.Clobjava.sql.SQLExceptionpublic java.io.OutputStream setAsciiStream(long pos)
setAsciiStream in interface java.sql.Clobpublic java.io.Writer setCharacterStream(long pos)
setCharacterStream in interface java.sql.Clob
public void truncate(long len)
throws java.sql.SQLException
truncate in interface java.sql.Clobjava.sql.SQLExceptionpublic static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||