Quadcap Embeddable Database

com.quadcap.sql.types.ValueByte Class Reference

Inheritance diagram for com.quadcap.sql.types.ValueByte:

com.quadcap.sql.types.Value Externalizable List of all members.

Detailed Description

A byte value.

Author:
Stan Bailes

Definition at line 51 of file ValueByte.java.

Public Member Functions

 ValueByte ()
 ValueByte (byte val)
 ValueByte (int v) throws ValueException
final int intValue ()
final byte byteValue ()
Value unop (int op) throws ValueException
Value binop (int op, Value l) throws ValueException
 Two-level virtual operator dispatch.

Value binop (int op, ValueNull r) throws ValueException
Value binop (int op, ValueDouble r) throws ValueException
Value binop (int op, ValueFloat r) throws ValueException
Value binop (int op, ValueInteger r) throws ValueException
Value binop (int op, ValueShort r) throws ValueException
Value binop (int op, ValueLong r) throws ValueException
Value binop (int op, ValueByte r) throws ValueException
Value binop (int op, ValueScaledInteger r) throws ValueException
void readExternal (ObjectInput in) throws IOException
void writeExternal (ObjectOutput out) throws IOException
Object asJavaObject ()
void fromJavaObject (Object obj) throws ValueException
String toString ()
Value convert (TypeBoolean type) throws ValueException
Value convert (TypeTinyInt type) throws ValueException
Value convert (TypeSmallInt type) throws ValueException
Value convert (TypeInt type) throws ValueException
Value convert (TypeBigInt type) throws ValueException
Value convert (TypeReal type) throws ValueException
Value convert (TypeDecimal type) throws ValueException
Type getType ()
void serializeKey (KeyStream out) throws IOException

Static Public Member Functions

final Value binop (int op, ValueByte e, ValueByte f) throws ValueException

Package Attributes

byte val


Constructor & Destructor Documentation

com.quadcap.sql.types.ValueByte.ValueByte  ) 
 

Definition at line 54 of file ValueByte.java.

Referenced by com.quadcap.sql.types.ValueByte.binop(), and com.quadcap.sql.types.ValueByte.unop().

com.quadcap.sql.types.ValueByte.ValueByte byte  val  ) 
 

Definition at line 56 of file ValueByte.java.

com.quadcap.sql.types.ValueByte.ValueByte int  v  )  throws ValueException
 

Definition at line 58 of file ValueByte.java.


Member Function Documentation

Object com.quadcap.sql.types.ValueByte.asJavaObject  )  [virtual]
 

Implements com.quadcap.sql.types.Value.

Definition at line 186 of file ValueByte.java.

References com.quadcap.sql.types.ValueByte.val.

final Value com.quadcap.sql.types.ValueByte.binop int  op,
ValueByte  e,
ValueByte  f
throws ValueException [static]
 

Definition at line 136 of file ValueByte.java.

References com.quadcap.sql.types.ValueByte.ValueByte().

Value com.quadcap.sql.types.ValueByte.binop int  op,
ValueScaledInteger  r
throws ValueException
 

Reimplemented from com.quadcap.sql.types.Value.

Definition at line 132 of file ValueByte.java.

References com.quadcap.sql.types.Value.binop(), and com.quadcap.sql.types.ValueByte.val.

Value com.quadcap.sql.types.ValueByte.binop int  op,
ValueByte  r
throws ValueException
 

Reimplemented from com.quadcap.sql.types.Value.

Definition at line 128 of file ValueByte.java.

References com.quadcap.sql.types.Value.binop().

Value com.quadcap.sql.types.ValueByte.binop int  op,
ValueLong  r
throws ValueException
 

Reimplemented from com.quadcap.sql.types.Value.

Definition at line 124 of file ValueByte.java.

References com.quadcap.sql.types.Value.binop(), and com.quadcap.sql.types.ValueByte.val.

Value com.quadcap.sql.types.ValueByte.binop int  op,
ValueShort  r
throws ValueException
 

Reimplemented from com.quadcap.sql.types.Value.

Definition at line 120 of file ValueByte.java.

References com.quadcap.sql.types.Value.binop(), and com.quadcap.sql.types.ValueByte.val.

Value com.quadcap.sql.types.ValueByte.binop int  op,
ValueInteger  r
throws ValueException
 

Reimplemented from com.quadcap.sql.types.Value.

Definition at line 116 of file ValueByte.java.

References com.quadcap.sql.types.Value.binop(), and com.quadcap.sql.types.ValueByte.val.

Value com.quadcap.sql.types.ValueByte.binop int  op,
ValueFloat  r
throws ValueException
 

Reimplemented from com.quadcap.sql.types.Value.

Definition at line 112 of file ValueByte.java.

References com.quadcap.sql.types.Value.binop(), and com.quadcap.sql.types.ValueByte.val.

Value com.quadcap.sql.types.ValueByte.binop int  op,
ValueDouble  r
throws ValueException
 

Reimplemented from com.quadcap.sql.types.Value.

Definition at line 108 of file ValueByte.java.

References com.quadcap.sql.types.Value.binop(), and com.quadcap.sql.types.ValueByte.val.

Value com.quadcap.sql.types.ValueByte.binop int  op,
ValueNull  r
throws ValueException
 

Reimplemented from com.quadcap.sql.types.Value.

Definition at line 86 of file ValueByte.java.

Value com.quadcap.sql.types.ValueByte.binop int  op,
Value  l
throws ValueException [virtual]
 

Two-level virtual operator dispatch.

Each subtype implements the same basic template for this abstract function:

 Value binop(int op, Value l) {
    return l.binop(op, this);
 }

 
Then, type overloading allows for each type to implement all ops for which it can be the left hand side for all allowed types on the right hand side: Value binop(int op, ValueInteger l); Value binop(int op, ValueLong l); ...

Implements com.quadcap.sql.types.Value.

Definition at line 82 of file ValueByte.java.

References com.quadcap.sql.types.ValueByte.binop().

Referenced by com.quadcap.sql.types.ValueByte.binop().

final byte com.quadcap.sql.types.ValueByte.byteValue  ) 
 

Definition at line 66 of file ValueByte.java.

References com.quadcap.sql.types.ValueByte.val.

Referenced by com.quadcap.jdbc.ResultSet.getByte().

Value com.quadcap.sql.types.ValueByte.convert TypeDecimal  type  )  throws ValueException
 

Reimplemented from com.quadcap.sql.types.Value.

Definition at line 228 of file ValueByte.java.

References com.quadcap.sql.types.ValueByte.val.

Value com.quadcap.sql.types.ValueByte.convert TypeReal  type  )  throws ValueException
 

Reimplemented from com.quadcap.sql.types.Value.

Definition at line 220 of file ValueByte.java.

References com.quadcap.sql.types.ValueByte.val.

Value com.quadcap.sql.types.ValueByte.convert TypeBigInt  type  )  throws ValueException
 

Reimplemented from com.quadcap.sql.types.Value.

Definition at line 216 of file ValueByte.java.

References com.quadcap.sql.types.ValueByte.val.

Value com.quadcap.sql.types.ValueByte.convert TypeInt  type  )  throws ValueException
 

Reimplemented from com.quadcap.sql.types.Value.

Definition at line 212 of file ValueByte.java.

References com.quadcap.sql.types.ValueByte.val.

Value com.quadcap.sql.types.ValueByte.convert TypeSmallInt  type  )  throws ValueException
 

Reimplemented from com.quadcap.sql.types.Value.

Definition at line 208 of file ValueByte.java.

References com.quadcap.sql.types.ValueByte.val.

Value com.quadcap.sql.types.ValueByte.convert TypeTinyInt  type  )  throws ValueException
 

Reimplemented from com.quadcap.sql.types.Value.

Definition at line 204 of file ValueByte.java.

Value com.quadcap.sql.types.ValueByte.convert TypeBoolean  type  )  throws ValueException
 

Reimplemented from com.quadcap.sql.types.Value.

Definition at line 200 of file ValueByte.java.

References com.quadcap.sql.types.ValueByte.convert(), and com.quadcap.sql.types.ValueByte.val.

Referenced by com.quadcap.sql.types.ValueByte.convert().

void com.quadcap.sql.types.ValueByte.fromJavaObject Object  obj  )  throws ValueException [virtual]
 

Implements com.quadcap.sql.types.Value.

Definition at line 190 of file ValueByte.java.

References com.quadcap.sql.types.ValueByte.fromJavaObject(), and com.quadcap.sql.types.ValueByte.val.

Referenced by com.quadcap.sql.types.ValueByte.fromJavaObject().

Type com.quadcap.sql.types.ValueByte.getType  )  [virtual]
 

Implements com.quadcap.sql.types.Value.

Definition at line 232 of file ValueByte.java.

final int com.quadcap.sql.types.ValueByte.intValue  ) 
 

Definition at line 65 of file ValueByte.java.

References com.quadcap.sql.types.ValueByte.val.

void com.quadcap.sql.types.ValueByte.readExternal ObjectInput  in  )  throws IOException
 

Definition at line 176 of file ValueByte.java.

References com.quadcap.sql.types.ValueByte.readExternal(), and com.quadcap.sql.types.ValueByte.val.

Referenced by com.quadcap.sql.types.ValueByte.readExternal().

void com.quadcap.sql.types.ValueByte.serializeKey KeyStream  out  )  throws IOException [virtual]
 

Implements com.quadcap.sql.types.Value.

Definition at line 236 of file ValueByte.java.

References com.quadcap.sql.types.ValueByte.serializeKey(), and com.quadcap.sql.types.ValueByte.val.

Referenced by com.quadcap.sql.types.ValueByte.serializeKey().

String com.quadcap.sql.types.ValueByte.toString  ) 
 

Definition at line 198 of file ValueByte.java.

References com.quadcap.sql.types.ValueByte.val.

Value com.quadcap.sql.types.ValueByte.unop int  op  )  throws ValueException
 

Reimplemented from com.quadcap.sql.types.Value.

Definition at line 68 of file ValueByte.java.

References com.quadcap.sql.types.ValueByte.unop(), com.quadcap.sql.types.ValueByte.val, and com.quadcap.sql.types.ValueByte.ValueByte().

Referenced by com.quadcap.sql.types.ValueByte.unop().

void com.quadcap.sql.types.ValueByte.writeExternal ObjectOutput  out  )  throws IOException
 

Definition at line 180 of file ValueByte.java.

References com.quadcap.sql.types.ValueByte.val, and com.quadcap.sql.types.ValueByte.writeExternal().

Referenced by com.quadcap.sql.types.ValueByte.writeExternal().


Member Data Documentation

byte com.quadcap.sql.types.ValueByte.val [package]
 

Definition at line 52 of file ValueByte.java.

Referenced by com.quadcap.sql.types.ValueByte.asJavaObject(), com.quadcap.sql.types.ValueByte.binop(), com.quadcap.sql.types.ValueByte.byteValue(), com.quadcap.sql.types.ValueByte.convert(), com.quadcap.sql.types.ValueByte.fromJavaObject(), com.quadcap.sql.types.ValueByte.intValue(), com.quadcap.sql.types.ValueByte.readExternal(), com.quadcap.sql.types.ValueByte.serializeKey(), com.quadcap.sql.types.ValueByte.toString(), com.quadcap.sql.types.ValueByte.unop(), and com.quadcap.sql.types.ValueByte.writeExternal().