public class DisconnectedStream
extends java.lang.Object
implements org.brains2b.sql.meta.types.Stream
This implementation exists while some database (f.e. Oracle) will only allow access to the stream from the exact position within a ResultSet
This method is the simplest way to keep this stream by using LobCache as store the current content of the stream. This is not an ideal solution. It would be better to keep a cursor inside this stream, but this would require information on the unique identifiers of a record to retrieve the stream when requested
| Constructor and Description |
|---|
DisconnectedStream() |
DisconnectedStream(java.io.InputStream is) |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getInputStream() |
java.io.OutputStream |
getOutputStream() |
int |
hashCode() |
boolean |
isAccessed() |
long |
length() |
public DisconnectedStream()
public DisconnectedStream(java.io.InputStream is)
public java.io.InputStream getInputStream()
throws java.sql.SQLException
getInputStream in interface org.brains2b.sql.meta.types.Streamjava.sql.SQLExceptionpublic java.io.OutputStream getOutputStream()
throws java.sql.SQLException
getOutputStream in interface org.brains2b.sql.meta.types.Streamjava.sql.SQLExceptionpublic boolean isAccessed()
throws java.sql.SQLException
isAccessed in interface org.brains2b.sql.meta.types.Streamjava.sql.SQLExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic long length()
throws java.sql.SQLException
length in interface org.brains2b.sql.meta.types.Streamjava.sql.SQLException