| java.lang.Object com.quadcap.sql.types.Value com.quadcap.sql.types.ValueBlob
All known Subclasses: com.quadcap.sql.types.ValueClob,
Method Summary | |
public Object | asJavaObject() | public Value | binop(int op, Value v) | public void | close() | public Value | convert(TypeBlob type) | public Value | convert(TypeVarBinary type) | public void | fromJavaObject(Object obj) | public InputStream | getBinaryStream() | public byte[] | getBytes(long lpos, int length) Retrieves all or part of the BLOB
value that this Blob object represents, as an array of
bytes. | public byte[] | getBytesVal() | public long | getPermBlock() | final InputStream | getPositionedStream(int pos) | RandomAccess | getRandomAccess() | public long | getTempBlock() | public Type | getType() | public void | init(Datafile file, long transId, InputStream is, int length) | public long | length() Returns the number of bytes in the BLOB value
designated by this Blob object. | public void | passivate(Datafile file, long transId) | public long | position(Blob blob, long start) | public long | position(byte[] pattern, long start) | public void | readExternal(ObjectInput in) | public void | serializeKey(KeyStream out) | public java.io.OutputStream | setBinaryStream(long lpos) Retrieves a stream that can be used to write to the BLOB
value that this Blob object represents. | public int | setBytes(long lpos, byte[] bytes) Writes the given array of bytes to the BLOB value that
this Blob object represents, starting at position
pos , and returns the number of bytes written. | public int | setBytes(long lpos, byte[] bytes, int offset, int len) Writes all or part of the given byte array to the
BLOB value that this Blob object represents
and returns the number of bytes written. | public void | setDatafile(Datafile file) | public void | setPermBlock(long block) | public String | show() | public String | toString() | public void | truncate(long len) Truncates the BLOB value that this Blob
object represents to be len bytes in length. | public Value | unop(int op) | public void | writeExternal(ObjectOutput out) |
permBlock | long permBlock(Code) | | |
tempBlock | long tempBlock(Code) | | |
trace | final static boolean trace(Code) | | |
ValueBlob | public ValueBlob()(Code) | | |
ValueBlob | public ValueBlob(byte[] bytes)(Code) | | |
close | public void close()(Code) | | |
getBytes | public byte[] getBytes(long lpos, int length) throws SQLException(Code) | | Retrieves all or part of the BLOB
value that this Blob object represents, as an array of
bytes. This byte array contains up to length
consecutive bytes starting at position pos .
Parameters: pos - the ordinal position of the first byte in the BLOB value to be extracted; the first byte is atposition 1 Parameters: length - the number of consecutive bytes to be copied a byte array containing up to length consecutive bytes from the BLOB value designatedby this Blob object, starting with thebyte at position pos exception: SQLException - if there is an error accessing theBLOB value See Also: ValueBlob.setBytes since: 1.2 |
getBytesVal | public byte[] getBytesVal()(Code) | | |
getPermBlock | public long getPermBlock()(Code) | | |
getTempBlock | public long getTempBlock()(Code) | | |
length | public long length() throws SQLException(Code) | | Returns the number of bytes in the BLOB value
designated by this Blob object.
length of the BLOB in bytes exception: SQLException - if there is an error accessing thelength of the BLOB since: 1.2 |
setBinaryStream | public java.io.OutputStream setBinaryStream(long lpos) throws SQLException(Code) | | Retrieves a stream that can be used to write to the BLOB
value that this Blob object represents. The stream begins
at position pos .
Parameters: pos - the position in the BLOB value at whichto start writing a java.io.OutputStream object to which data can be written exception: SQLException - if there is an error accessing theBLOB value See Also: ValueBlob.getBinaryStream since: 1.4 |
setBytes | public int setBytes(long lpos, byte[] bytes) throws SQLException(Code) | | Writes the given array of bytes to the BLOB value that
this Blob object represents, starting at position
pos , and returns the number of bytes written.
Parameters: pos - the position in the BLOB object at whichto start writing Parameters: bytes - the array of bytes to be written to the BLOB value that this Blob object represents the number of bytes written exception: SQLException - if there is an error accessing theBLOB value See Also: ValueBlob.getBytes since: 1.4 |
setBytes | public int setBytes(long lpos, byte[] bytes, int offset, int len) throws SQLException(Code) | | Writes all or part of the given byte array to the
BLOB value that this Blob object represents
and returns the number of bytes written.
Writing starts at position pos in the BLOB
value; len bytes from the given byte array are written.
Parameters: pos - the position in the BLOB object at whichto start writing Parameters: bytes - the array of bytes to be written to this BLOB object Parameters: offset - the offset into the array bytes at whichto start reading the bytes to be set Parameters: len - the number of bytes to be written to the BLOB value from the array of bytes bytes the number of bytes written exception: SQLException - if there is an error accessing theBLOB value See Also: ValueBlob.getBytes since: 1.4 |
setPermBlock | public void setPermBlock(long block)(Code) | | |
truncate | public void truncate(long len) throws SQLException(Code) | | Truncates the BLOB value that this Blob
object represents to be len bytes in length.
Parameters: len - the length, in bytes, to which the BLOB valuethat this Blob object represents should be truncated exception: SQLException - if there is an error accessing theBLOB value. since: 1.4 |
Methods inherited from com.quadcap.sql.types.Value | abstract public Object asJavaObject() throws SQLException(Code)(Java Doc) final public static ValueException badBinop(int op, Value l, Value r)(Code)(Java Doc) final public ValueException badBinop(int op, Value v)(Code)(Java Doc) final ValueException badType(Type type)(Code)(Java Doc) abstract public Value binop(int op, Value l) throws ValueException(Code)(Java Doc) final public static Value binop(int op, Value l, Value r) throws ValueException(Code)(Java Doc) public Value binop(int op, ValueBlob v) throws ValueException(Code)(Java Doc) public Value binop(int op, ValueBoolean v) throws ValueException(Code)(Java Doc) public Value binop(int op, ValueByte v) throws ValueException(Code)(Java Doc) public Value binop(int op, ValueClob v) throws ValueException(Code)(Java Doc) public Value binop(int op, ValueDate v) throws ValueException(Code)(Java Doc) public Value binop(int op, ValueDouble v) throws ValueException(Code)(Java Doc) public Value binop(int op, ValueFloat v) throws ValueException(Code)(Java Doc) public Value binop(int op, ValueInteger v) throws ValueException(Code)(Java Doc) public Value binop(int op, ValueInterval v) throws ValueException(Code)(Java Doc) public Value binop(int op, ValueLong v) throws ValueException(Code)(Java Doc) public Value binop(int op, ValueNull v) throws ValueException(Code)(Java Doc) public Value binop(int op, ValueOctets v) throws ValueException(Code)(Java Doc) public Value binop(int op, ValuePattern v) throws ValueException(Code)(Java Doc) public Value binop(int op, ValueScaledInteger v) throws ValueException(Code)(Java Doc) public Value binop(int op, ValueShort v) throws ValueException(Code)(Java Doc) public Value binop(int op, ValueString l) throws ValueException(Code)(Java Doc) public Value binop(int op, ValueTime v) throws ValueException(Code)(Java Doc) public Value binop(int op, ValueTimestamp v) throws ValueException(Code)(Java Doc) public Value binop(int op, ValueUnknown v) throws ValueException(Code)(Java Doc) final public static boolean boolOp(int op, Value l, Value r) throws ValueException(Code)(Java Doc) final public static byte[] bytes(Value val)(Code)(Java Doc) public Value convert(TypeBigInt type) throws ValueException(Code)(Java Doc) public Value convert(TypeBinary type) throws ValueException(Code)(Java Doc) public Value convert(TypeBlob type) throws ValueException(Code)(Java Doc) public Value convert(TypeBoolean type) throws ValueException(Code)(Java Doc) public Value convert(TypeChar type) throws ValueException(Code)(Java Doc) public Value convert(TypeClob type) throws ValueException(Code)(Java Doc) public Value convert(TypeDate type) throws ValueException(Code)(Java Doc) public Value convert(TypeDecimal type) throws ValueException(Code)(Java Doc) public Value convert(TypeInt type) throws ValueException(Code)(Java Doc) public Value convert(TypeInterval type) throws ValueException(Code)(Java Doc) public Value convert(TypeReal type) throws ValueException(Code)(Java Doc) public Value convert(TypeSmallInt type) throws ValueException(Code)(Java Doc) public Value convert(TypeVarChar type) throws ValueException(Code)(Java Doc) public Value convert(TypeVarBinary type) throws ValueException(Code)(Java Doc) public Value convert(TypeTime type) throws ValueException(Code)(Java Doc) public Value convert(TypeTimestamp type) throws ValueException(Code)(Java Doc) public Value convert(TypeTinyInt type) throws ValueException(Code)(Java Doc) final public static Value fromBytes(byte[] b)(Code)(Java Doc) abstract public void fromJavaObject(Object obj) throws ValueException(Code)(Java Doc) final public static Value fromObject(Object obj) throws ValueException(Code)(Java Doc) abstract public Type getType() throws SQLException(Code)(Java Doc) final public static boolean isNull(Value val)(Code)(Java Doc) final public static boolean isTrue(Value ret) throws ValueException(Code)(Java Doc) final static void jc(String javaClass, String valueClass)(Code)(Java Doc) final static void jdbcType(int typeNum, Type type)(Code)(Java Doc) abstract public void serializeKey(KeyStream out) throws IOException(Code)(Java Doc) public void setDatafile(Datafile db)(Code)(Java Doc) public static String tn(Value v)(Code)(Java Doc) final public static Type typeForJdbcType(int type)(Code)(Java Doc) public Value unop(int op) throws ValueException(Code)(Java Doc)
|
|
|