|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
org.apache.derby.impl.drda.EXTDTAInputStream
class EXTDTAInputStream
EXTDTAObjectHolder provides Externalized Large Object representation that does not hold locks until the end of the transaction (DERBY-255) It serves as a holder for lob data and is only valid as long as the original result set from which it came is on the same row.
Field Summary | |
---|---|
private java.io.InputStream |
binaryInputStream
|
(package private) int |
columnNumber
Column index starting with 1 |
(package private) int |
ndrdaType
DRDA Type of column |
(package private) EngineResultSet |
rs
ResultSet that contains the stream |
Constructor Summary | |
---|---|
private |
EXTDTAInputStream(java.sql.ResultSet rs,
int columnNumber,
int ndrdaType)
|
Method Summary | |
---|---|
int |
available()
|
void |
close()
|
boolean |
equals(java.lang.Object arg0)
|
protected void |
finalize()
|
static EXTDTAInputStream |
getEXTDTAStream(java.sql.ResultSet rs,
int column,
int drdaType)
Create a new EXTDTAInputStream. |
int |
hashCode()
|
void |
initInputStream()
This method takes information of ResultSet and initializes the binaryInputStream variable of this object with not empty stream by calling getBinaryStream or getCharacterStream() as appropriate. |
protected boolean |
isEmptyStream()
|
boolean |
isNull()
Is the value null? |
void |
mark(int arg0)
|
boolean |
markSupported()
|
int |
read()
Requires initInputStream() be called before we can read from the stream |
int |
read(byte[] arg0)
|
int |
read(byte[] arg0,
int arg1,
int arg2)
|
void |
reset()
|
long |
skip(long arg0)
|
Methods inherited from class java.lang.Object |
---|
clone, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.io.InputStream binaryInputStream
EngineResultSet rs
int columnNumber
int ndrdaType
Constructor Detail |
---|
private EXTDTAInputStream(java.sql.ResultSet rs, int columnNumber, int ndrdaType)
Method Detail |
---|
public static EXTDTAInputStream getEXTDTAStream(java.sql.ResultSet rs, int column, int drdaType)
initInputStream()
rs
- result set from which to retrieve the lobcolumn
- column numberdrdaType
- FD:OCA type of object one of
DRDAConstants.DRDA_TYPE_NLOBBYTES
DRDAConstants.DRDA_TYPE_LOBBYTES
DRDAConstants.DRDA_TYPE_NLOBCMIXED
DRDAConstants.DRDA_TYPE_LOBCMIXED
java.sql.SQLException
DDMWriter.writeScalarStream(boolean, int, org.apache.derby.impl.drda.EXTDTAInputStream, boolean)
,
initInputStream()
public int read() throws java.io.IOException
initInputStream()
be called before we can read from the stream
read
in class java.io.InputStream
java.io.IOException
InputStream.read()
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
InputStream.available()
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.InputStream
java.io.IOException
InputStream.close()
public boolean equals(java.lang.Object arg0)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public void mark(int arg0)
mark
in class java.io.InputStream
InputStream.mark(int)
public boolean markSupported()
markSupported
in class java.io.InputStream
InputStream.markSupported()
public int read(byte[] arg0) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
InputStream.read(byte[])
public int read(byte[] arg0, int arg1, int arg2) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
InputStream.read(byte[], int, int)
public void reset() throws java.io.IOException
reset
in class java.io.InputStream
java.io.IOException
InputStream.reset()
public long skip(long arg0) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException
InputStream.skip(long)
protected boolean isEmptyStream() throws java.sql.SQLException
java.sql.SQLException
public void initInputStream() throws java.sql.SQLException
java.sql.SQLException
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public boolean isNull() throws java.sql.SQLException
java.sql.SQLException
|
Built on Thu 2012-03-29 21:53:33+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |