Quadcap Embeddable Database

com.quadcap.sql.types.ValueShort Class Reference

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

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

Detailed Description

A short value.

Author:
Stan Bailes

Definition at line 51 of file ValueShort.java.

Public Member Functions

 ValueShort ()
 ValueShort (short val)
 ValueShort (int v) throws ValueException
final int intValue ()
final short shortValue ()
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, ValueLong r) throws ValueException
Value binop (int op, ValueByte r) throws ValueException
Value binop (int op, ValueScaledInteger r) throws ValueException
Value binop (int op, ValueShort 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 (TypeDecimal type) throws ValueException
Value convert (TypeReal type) throws ValueException
Type getType ()
void serializeKey (KeyStream out) throws IOException

Static Public Member Functions

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

Package Attributes

short val


Constructor & Destructor Documentation

com.quadcap.sql.types.ValueShort.ValueShort  ) 
 

Definition at line 54 of file ValueShort.java.

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

com.quadcap.sql.types.ValueShort.ValueShort short  val  ) 
 

Definition at line 56 of file ValueShort.java.

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

Definition at line 58 of file ValueShort.java.


Member Function Documentation

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

Implements com.quadcap.sql.types.Value.

Definition at line 186 of file ValueShort.java.

References com.quadcap.sql.types.ValueShort.val.

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

Definition at line 136 of file ValueShort.java.

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

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

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

Definition at line 132 of file ValueShort.java.

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

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

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

Definition at line 128 of file ValueShort.java.

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

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

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

Definition at line 124 of file ValueShort.java.

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

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

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

Definition at line 120 of file ValueShort.java.

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

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

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

Definition at line 116 of file ValueShort.java.

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

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

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

Definition at line 112 of file ValueShort.java.

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

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

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

Definition at line 108 of file ValueShort.java.

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

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

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

Definition at line 86 of file ValueShort.java.

Value com.quadcap.sql.types.ValueShort.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 ValueShort.java.

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

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

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

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

Definition at line 224 of file ValueShort.java.

References com.quadcap.sql.types.ValueShort.val.

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

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

Definition at line 220 of file ValueShort.java.

References com.quadcap.sql.types.ValueShort.val.

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

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

Definition at line 216 of file ValueShort.java.

References com.quadcap.sql.types.ValueShort.val.

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

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

Definition at line 212 of file ValueShort.java.

References com.quadcap.sql.types.ValueShort.val.

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

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

Definition at line 208 of file ValueShort.java.

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

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

Definition at line 204 of file ValueShort.java.

References com.quadcap.sql.types.ValueShort.val.

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

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

Definition at line 200 of file ValueShort.java.

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

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

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

Implements com.quadcap.sql.types.Value.

Definition at line 190 of file ValueShort.java.

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

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

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

Implements com.quadcap.sql.types.Value.

Definition at line 232 of file ValueShort.java.

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

Definition at line 65 of file ValueShort.java.

References com.quadcap.sql.types.ValueShort.val.

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

Definition at line 176 of file ValueShort.java.

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

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

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

Implements com.quadcap.sql.types.Value.

Definition at line 236 of file ValueShort.java.

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

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

final short com.quadcap.sql.types.ValueShort.shortValue  ) 
 

Definition at line 66 of file ValueShort.java.

References com.quadcap.sql.types.ValueShort.val.

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

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

Definition at line 198 of file ValueShort.java.

References com.quadcap.sql.types.ValueShort.val.

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

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

Definition at line 68 of file ValueShort.java.

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

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

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

Definition at line 180 of file ValueShort.java.

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

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


Member Data Documentation

short com.quadcap.sql.types.ValueShort.val [package]
 

Definition at line 52 of file ValueShort.java.

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