![]() |
Quadcap Embeddable Database |
Inheritance diagram for com.quadcap.sql.types.ValueOctets:

Definition at line 58 of file ValueOctets.java.
Public Member Functions | |
| ValueOctets () | |
| Default constructor. | |
| ValueOctets (String s) | |
| Constructor from string. | |
| ValueOctets (byte[] val) | |
| Constructor from byte array. | |
| ValueOctets (byte[] val, int length) | |
| ValueOctets constructor from byte array and length. | |
| String | toString () |
| String representation: returned as ASCII hex. | |
| Value | unop (int op) throws ValueException |
| Unary op: we only implement ISNULL. | |
| Value | binop (int op, Value l) throws ValueException |
| First level binary op dispatch. | |
| Value | binop (int op, ValueNull r) throws ValueException |
| Binary op: OCTETS vs NULL. | |
| Value | binop (int op, ValueOctets r) throws ValueException |
| Binary op: OCTETS vs OCTETS. | |
| void | readExternal (ObjectInput in) throws IOException, ClassNotFoundException |
| Read myself from a stream. | |
| void | writeExternal (ObjectOutput out) throws IOException |
| Write myself to a stream. | |
| Object | readObject (ObjectInput in) throws IOException, ClassNotFoundException |
| Externable: read object. | |
| void | writeObject (ObjectOutput out, Object object) throws IOException |
| Externable: write object. | |
| Object | asJavaObject () |
| JDBC Java mapping to: 'byte[]'. | |
| void | fromJavaObject (Object obj) throws ValueException |
| JDBC Java mapping from 'byte[]'. | |
| final byte[] | getBytes () |
| Return the underlying byte array. | |
| final int | getLength () |
| Return the length of the OCTETS value. | |
| final InputStream | getBinaryStream () |
| Return a binary input stream to read the OCTETS value. | |
| Value | convert (TypeBinary type) throws ValueException |
| Convert to BINARY type. | |
| Value | convert (TypeVarBinary type) throws ValueException |
| Convert to VAR BINARY type. | |
| Value | convert (TypeBlob type) throws ValueException |
| Convert to BLOB. | |
| Value | convert (TypeBoolean type) throws ValueException |
| Convert to BOOLEAN. | |
| Value | convert (TypeVarChar type) throws ValueException |
| Convert to VARCHAR. | |
| Value | convert (TypeChar type) throws ValueException |
| Convert to CHAR. | |
| Type | getType () |
| Return my type (BINARY(len)). | |
| void | serializeKey (KeyStream out) throws IOException |
| Key serialization for this type. | |
Package Functions | |
| void | init (byte[] v) |
Package Attributes | |
| int | length |
| length in bits | |
| byte[] | val |
|
|
Default constructor.
Definition at line 66 of file ValueOctets.java. Referenced by com.quadcap.sql.types.ValueOctets.convert(), and com.quadcap.sql.types.ValueOctets.readObject(). |
|
|
Constructor from string. A little SQL parsing in here... Definition at line 71 of file ValueOctets.java. References com.quadcap.sql.types.ValueOctets.val. |
|
|
Constructor from byte array.
Definition at line 99 of file ValueOctets.java. References com.quadcap.sql.types.ValueOctets.init(). |
|
||||||||||||
|
ValueOctets constructor from byte array and length.
Definition at line 112 of file ValueOctets.java. |
|
|
JDBC Java mapping to: 'byte[]'.
Implements com.quadcap.sql.types.Value. Definition at line 252 of file ValueOctets.java. References com.quadcap.sql.types.ValueOctets.val. |
|
||||||||||||
|
Binary op: OCTETS vs OCTETS.
Reimplemented from com.quadcap.sql.types.Value. Definition at line 185 of file ValueOctets.java. References com.quadcap.sql.types.ValueOctets.val. |
|
||||||||||||
|
Binary op: OCTETS vs NULL.
Reimplemented from com.quadcap.sql.types.Value. Definition at line 166 of file ValueOctets.java. |
|
||||||||||||
|
First level binary op dispatch.
Implements com.quadcap.sql.types.Value. Definition at line 159 of file ValueOctets.java. References com.quadcap.sql.types.ValueOctets.binop(). Referenced by com.quadcap.sql.types.ValueOctets.binop(). |
|
|
Convert to CHAR.
Reimplemented from com.quadcap.sql.types.Value. Definition at line 344 of file ValueOctets.java. References com.quadcap.sql.types.ValueOctets.length, and com.quadcap.sql.types.ValueOctets.val. |
|
|
Convert to VARCHAR.
Reimplemented from com.quadcap.sql.types.Value. Definition at line 332 of file ValueOctets.java. References com.quadcap.sql.types.ValueOctets.length, and com.quadcap.sql.types.ValueOctets.val. |
|
|
Convert to BOOLEAN.
Reimplemented from com.quadcap.sql.types.Value. Definition at line 322 of file ValueOctets.java. References com.quadcap.sql.types.ValueOctets.val. |
|
|
Convert to BLOB.
Reimplemented from com.quadcap.sql.types.Value. Definition at line 309 of file ValueOctets.java. References com.quadcap.sql.types.ValueOctets.length, and com.quadcap.sql.types.ValueOctets.val. |
|
|
Convert to VAR BINARY type.
Reimplemented from com.quadcap.sql.types.Value. Definition at line 299 of file ValueOctets.java. References com.quadcap.sql.types.ValueOctets.length, com.quadcap.sql.types.ValueOctets.val, and com.quadcap.sql.types.ValueOctets.ValueOctets(). |
|
|
Convert to BINARY type.
Reimplemented from com.quadcap.sql.types.Value. Definition at line 289 of file ValueOctets.java. References com.quadcap.sql.types.ValueOctets.convert(), com.quadcap.sql.types.ValueOctets.length, com.quadcap.sql.types.ValueOctets.val, and com.quadcap.sql.types.ValueOctets.ValueOctets(). Referenced by com.quadcap.sql.types.ValueOctets.convert(). |
|
|
JDBC Java mapping from 'byte[]'.
Implements com.quadcap.sql.types.Value. Definition at line 259 of file ValueOctets.java. References com.quadcap.sql.types.ValueOctets.fromJavaObject(). Referenced by com.quadcap.sql.types.ValueOctets.fromJavaObject(). |
|
|
Return a binary input stream to read the OCTETS value.
Definition at line 282 of file ValueOctets.java. References com.quadcap.sql.types.ValueOctets.val. |
|
|
Return the underlying byte array.
Definition at line 270 of file ValueOctets.java. References com.quadcap.sql.types.ValueOctets.val. Referenced by com.quadcap.jdbc.ResultSet.getBytes(). |
|
|
Return the length of the OCTETS value.
Definition at line 277 of file ValueOctets.java. References com.quadcap.sql.types.ValueOctets.length. |
|
|
Return my type (BINARY(len)).
Implements com.quadcap.sql.types.Value. Definition at line 359 of file ValueOctets.java. References com.quadcap.sql.types.ValueOctets.length. |
|
|
Definition at line 103 of file ValueOctets.java. References com.quadcap.sql.types.ValueOctets.init(), and com.quadcap.sql.types.ValueOctets.val. Referenced by com.quadcap.sql.types.ValueOctets.init(), and com.quadcap.sql.types.ValueOctets.ValueOctets(). |
|
|
Read myself from a stream.
Definition at line 209 of file ValueOctets.java. References com.quadcap.sql.types.ValueOctets.length, com.quadcap.sql.types.ValueOctets.readExternal(), and com.quadcap.sql.types.ValueOctets.val. Referenced by com.quadcap.sql.types.ValueOctets.readExternal(), and com.quadcap.sql.types.ValueOctets.readObject(). |
|
|
Externable: read object.
Definition at line 232 of file ValueOctets.java. References com.quadcap.sql.types.ValueOctets.readExternal(), com.quadcap.sql.types.ValueOctets.readObject(), and com.quadcap.sql.types.ValueOctets.ValueOctets(). Referenced by com.quadcap.sql.types.ValueOctets.readObject(). |
|
|
Key serialization for this type.
Implements com.quadcap.sql.types.Value. Definition at line 366 of file ValueOctets.java. References com.quadcap.sql.types.ValueOctets.serializeKey(), and com.quadcap.sql.types.ValueOctets.val. Referenced by com.quadcap.sql.types.ValueOctets.serializeKey(). |
|
|
String representation: returned as ASCII hex.
Definition at line 123 of file ValueOctets.java. References com.quadcap.sql.types.ValueOctets.length, and com.quadcap.sql.types.ValueOctets.val. |
|
|
Unary op: we only implement ISNULL.
Reimplemented from com.quadcap.sql.types.Value. Definition at line 146 of file ValueOctets.java. References com.quadcap.sql.types.ValueOctets.unop(). Referenced by com.quadcap.sql.types.ValueOctets.unop(). |
|
|
Write myself to a stream.
Definition at line 221 of file ValueOctets.java. References com.quadcap.sql.types.ValueOctets.length, com.quadcap.sql.types.ValueOctets.val, and com.quadcap.sql.types.ValueOctets.writeExternal(). Referenced by com.quadcap.sql.types.ValueOctets.writeExternal(), and com.quadcap.sql.types.ValueOctets.writeObject(). |
|
||||||||||||
|
Externable: write object.
Definition at line 243 of file ValueOctets.java. References com.quadcap.sql.types.ValueOctets.writeExternal(), and com.quadcap.sql.types.ValueOctets.writeObject(). Referenced by com.quadcap.sql.types.ValueOctets.writeObject(). |
|
|
length in bits
Definition at line 60 of file ValueOctets.java. Referenced by com.quadcap.sql.types.ValueOctets.convert(), com.quadcap.sql.types.ValueOctets.getLength(), com.quadcap.sql.types.ValueOctets.getType(), com.quadcap.sql.types.ValueOctets.readExternal(), com.quadcap.sql.types.ValueOctets.toString(), and com.quadcap.sql.types.ValueOctets.writeExternal(). |
|