Quadcap Embeddable Database

com.quadcap.sql.types.ValueLong Class Reference

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

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

Detailed Description

A long value.

Author:
Stan Bailes

Definition at line 51 of file ValueLong.java.

Public Member Functions

 ValueLong ()
 ValueLong (long val)
final long longValue ()
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, ValueByte r) throws ValueException
Value binop (int op, ValueLong 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 (TypeDecimal type) throws ValueException
Value convert (TypeBigInt 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, ValueLong e, ValueLong f) throws ValueException

Package Attributes

long val


Constructor & Destructor Documentation

com.quadcap.sql.types.ValueLong.ValueLong  ) 
 

Definition at line 54 of file ValueLong.java.

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

com.quadcap.sql.types.ValueLong.ValueLong long  val  ) 
 

Definition at line 56 of file ValueLong.java.


Member Function Documentation

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

Implements com.quadcap.sql.types.Value.

Definition at line 178 of file ValueLong.java.

References com.quadcap.sql.types.ValueLong.val.

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

Definition at line 128 of file ValueLong.java.

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

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

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

Definition at line 124 of file ValueLong.java.

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

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

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

Definition at line 120 of file ValueLong.java.

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

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

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

Definition at line 116 of file ValueLong.java.

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

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

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

Definition at line 112 of file ValueLong.java.

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

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

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

Definition at line 108 of file ValueLong.java.

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

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

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

Definition at line 104 of file ValueLong.java.

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

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

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

Definition at line 100 of file ValueLong.java.

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

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

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

Definition at line 78 of file ValueLong.java.

Value com.quadcap.sql.types.ValueLong.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 74 of file ValueLong.java.

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

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

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

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

Definition at line 216 of file ValueLong.java.

References com.quadcap.sql.types.ValueLong.val.

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

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

Definition at line 212 of file ValueLong.java.

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

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

Definition at line 208 of file ValueLong.java.

References com.quadcap.sql.types.ValueLong.val.

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

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

Definition at line 204 of file ValueLong.java.

References com.quadcap.sql.types.ValueLong.val.

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

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

Definition at line 200 of file ValueLong.java.

References com.quadcap.sql.types.ValueLong.val.

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

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

Definition at line 196 of file ValueLong.java.

References com.quadcap.sql.types.ValueLong.val.

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

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

Definition at line 192 of file ValueLong.java.

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

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

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

Implements com.quadcap.sql.types.Value.

Definition at line 182 of file ValueLong.java.

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

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

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

Implements com.quadcap.sql.types.Value.

Definition at line 224 of file ValueLong.java.

final long com.quadcap.sql.types.ValueLong.longValue  ) 
 

Definition at line 58 of file ValueLong.java.

References com.quadcap.sql.types.ValueLong.val.

Referenced by com.quadcap.sql.AutoNumberConstraint.checkInsert(), and com.quadcap.jdbc.ResultSet.getLong().

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

Definition at line 168 of file ValueLong.java.

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

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

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

Implements com.quadcap.sql.types.Value.

Definition at line 228 of file ValueLong.java.

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

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

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

Definition at line 190 of file ValueLong.java.

References com.quadcap.sql.types.ValueLong.val.

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

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

Definition at line 60 of file ValueLong.java.

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

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

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

Definition at line 172 of file ValueLong.java.

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

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


Member Data Documentation

long com.quadcap.sql.types.ValueLong.val [package]
 

Definition at line 52 of file ValueLong.java.

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