Quadcap Embeddable Database

com.quadcap.sql.types.ValueInteger Class Reference

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

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

Detailed Description

An int value.

Author:
Stan Bailes

Definition at line 57 of file ValueInteger.java.

Public Member Functions

 ValueInteger ()
 ValueInteger (int val)
int intValue ()
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, ValueInteger r) throws ValueException
Value binop (int op, ValueScaledInteger r) throws ValueException
Value binop (int op, ValueShort r) throws ValueException
Value binop (int op, ValueByte r) throws ValueException
Value binop (int op, ValueDouble r) throws ValueException
Value binop (int op, ValueLong r) throws ValueException
Value binop (int op, ValueFloat r) throws ValueException
void readExternal (ObjectInput in) throws IOException
void writeExternal (ObjectOutput out) throws IOException
Object readObject (ObjectInput in) throws IOException, ClassNotFoundException
void writeObject (ObjectOutput out, Object object) 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
Extern getExtern ()
void setExtern (Extern extern)

Static Public Member Functions

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

Static Public Attributes

ValueInteger MINUS_ONE = new ValueInteger(-1)
ValueInteger ZERO = new ValueInteger(0)
ValueInteger PLUS_ONE = new ValueInteger(1)
ValueInteger MIN_VALUE = new ValueInteger(Integer.MIN_VALUE)

Package Attributes

int val
 Extern = null


Constructor & Destructor Documentation

com.quadcap.sql.types.ValueInteger.ValueInteger  ) 
 

Definition at line 70 of file ValueInteger.java.

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

com.quadcap.sql.types.ValueInteger.ValueInteger int  val  ) 
 

Definition at line 72 of file ValueInteger.java.


Member Function Documentation

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

Implements com.quadcap.sql.types.Value.

Definition at line 208 of file ValueInteger.java.

References com.quadcap.sql.types.ValueInteger.val.

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

Definition at line 144 of file ValueInteger.java.

References com.quadcap.sql.types.ValueInteger.MINUS_ONE, com.quadcap.sql.types.ValueInteger.PLUS_ONE, com.quadcap.sql.types.ValueInteger.ValueInteger(), and com.quadcap.sql.types.ValueInteger.ZERO.

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

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

Definition at line 140 of file ValueInteger.java.

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

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

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

Definition at line 136 of file ValueInteger.java.

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

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

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

Definition at line 132 of file ValueInteger.java.

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

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

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

Definition at line 128 of file ValueInteger.java.

References com.quadcap.sql.types.ValueInteger.binop(), and com.quadcap.sql.types.ValueInteger.ValueInteger().

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

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

Definition at line 124 of file ValueInteger.java.

References com.quadcap.sql.types.ValueInteger.binop(), and com.quadcap.sql.types.ValueInteger.ValueInteger().

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

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

Definition at line 120 of file ValueInteger.java.

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

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

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

Definition at line 116 of file ValueInteger.java.

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

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

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

Definition at line 94 of file ValueInteger.java.

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

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

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

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

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

Definition at line 246 of file ValueInteger.java.

References com.quadcap.sql.types.ValueInteger.val.

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

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

Definition at line 242 of file ValueInteger.java.

References com.quadcap.sql.types.ValueInteger.val.

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

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

Definition at line 238 of file ValueInteger.java.

References com.quadcap.sql.types.ValueInteger.val.

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

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

Definition at line 234 of file ValueInteger.java.

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

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

Definition at line 230 of file ValueInteger.java.

References com.quadcap.sql.types.ValueInteger.val.

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

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

Definition at line 226 of file ValueInteger.java.

References com.quadcap.sql.types.ValueInteger.val.

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

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

Definition at line 222 of file ValueInteger.java.

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

Referenced by com.quadcap.sql.types.ValueInteger.convert(), and com.quadcap.sql.FunctionExpression.getValue().

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

Implements com.quadcap.sql.types.Value.

Definition at line 212 of file ValueInteger.java.

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

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

Extern com.quadcap.sql.types.ValueInteger.getExtern  ) 
 

Definition at line 263 of file ValueInteger.java.

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

Implements com.quadcap.sql.types.Value.

Definition at line 254 of file ValueInteger.java.

int com.quadcap.sql.types.ValueInteger.intValue  ) 
 

Definition at line 74 of file ValueInteger.java.

References com.quadcap.sql.types.ValueInteger.val.

Referenced by com.quadcap.sql.types.CompareValues.compare(), com.quadcap.sql.IndexCursor.doOneBound(), and com.quadcap.jdbc.ResultSet.getInt().

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

Definition at line 184 of file ValueInteger.java.

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

Referenced by com.quadcap.sql.types.ValueInteger.readExternal(), and com.quadcap.sql.types.ValueInteger.readObject().

Object com.quadcap.sql.types.ValueInteger.readObject ObjectInput  in  )  throws IOException, ClassNotFoundException
 

Definition at line 194 of file ValueInteger.java.

References com.quadcap.sql.types.ValueInteger.readExternal(), com.quadcap.sql.types.ValueInteger.readObject(), and com.quadcap.sql.types.ValueInteger.ValueInteger().

Referenced by com.quadcap.sql.types.ValueInteger.readObject().

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

Implements com.quadcap.sql.types.Value.

Definition at line 258 of file ValueInteger.java.

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

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

void com.quadcap.sql.types.ValueInteger.setExtern Extern  extern  ) 
 

Definition at line 264 of file ValueInteger.java.

References com.quadcap.sql.types.ValueInteger.setExtern().

Referenced by com.quadcap.sql.types.ValueInteger.setExtern().

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

Definition at line 220 of file ValueInteger.java.

References com.quadcap.sql.types.ValueInteger.val.

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

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

Definition at line 76 of file ValueInteger.java.

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

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

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

Definition at line 188 of file ValueInteger.java.

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

Referenced by com.quadcap.sql.types.ValueInteger.writeExternal(), and com.quadcap.sql.types.ValueInteger.writeObject().

void com.quadcap.sql.types.ValueInteger.writeObject ObjectOutput  out,
Object  object
throws IOException
 

Definition at line 202 of file ValueInteger.java.

References com.quadcap.sql.types.ValueInteger.writeExternal(), and com.quadcap.sql.types.ValueInteger.writeObject().

Referenced by com.quadcap.sql.types.ValueInteger.writeObject().


Member Data Documentation

com.quadcap.sql.types.ValueInteger.Extern = null [package]
 

Definition at line 262 of file ValueInteger.java.

ValueInteger com.quadcap.sql.types.ValueInteger.MIN_VALUE = new ValueInteger(Integer.MIN_VALUE) [static]
 

Definition at line 66 of file ValueInteger.java.

ValueInteger com.quadcap.sql.types.ValueInteger.MINUS_ONE = new ValueInteger(-1) [static]
 

Definition at line 60 of file ValueInteger.java.

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

ValueInteger com.quadcap.sql.types.ValueInteger.PLUS_ONE = new ValueInteger(1) [static]
 

Definition at line 64 of file ValueInteger.java.

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

int com.quadcap.sql.types.ValueInteger.val [package]
 

Definition at line 68 of file ValueInteger.java.

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

ValueInteger com.quadcap.sql.types.ValueInteger.ZERO = new ValueInteger(0) [static]
 

Definition at line 62 of file ValueInteger.java.

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