Quadcap Embeddable Database

com.quadcap.sql.types.ValueDouble Class Reference

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

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

Detailed Description

A double value.

Author:
Stan Bailes

Definition at line 56 of file ValueDouble.java.

Public Member Functions

 ValueDouble ()
 ValueDouble (double val)
 ValueDouble (String s) throws ValueException
final double doubleValue ()
Value unop (int op) throws ValueException
Value binop (int op, Value l) throws ValueException
 Two-level virtual operator dispatch.

Value binop (int op, ValueFloat r) throws ValueException
Value binop (int op, ValueDouble 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
Value binop (int op, ValueNull r) throws ValueException
Object asJavaObject ()
void fromJavaObject (Object obj) 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
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
String toString ()

Static Public Member Functions

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

Package Attributes

double val


Constructor & Destructor Documentation

com.quadcap.sql.types.ValueDouble.ValueDouble  ) 
 

Definition at line 59 of file ValueDouble.java.

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

com.quadcap.sql.types.ValueDouble.ValueDouble double  val  ) 
 

Definition at line 61 of file ValueDouble.java.

com.quadcap.sql.types.ValueDouble.ValueDouble String  s  )  throws ValueException
 

Definition at line 65 of file ValueDouble.java.


Member Function Documentation

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

Implements com.quadcap.sql.types.Value.

Definition at line 188 of file ValueDouble.java.

References com.quadcap.sql.types.ValueDouble.val.

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

Definition at line 148 of file ValueDouble.java.

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

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

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

Definition at line 125 of file ValueDouble.java.

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

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

Definition at line 121 of file ValueDouble.java.

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

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

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

Definition at line 117 of file ValueDouble.java.

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

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

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

Definition at line 113 of file ValueDouble.java.

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

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

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

Definition at line 109 of file ValueDouble.java.

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

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

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

Definition at line 105 of file ValueDouble.java.

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

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

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

Definition at line 101 of file ValueDouble.java.

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

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

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

Definition at line 97 of file ValueDouble.java.

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

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

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

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

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

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

Definition at line 255 of file ValueDouble.java.

References com.quadcap.sql.types.ValueDouble.val.

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

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

Definition at line 240 of file ValueDouble.java.

References com.quadcap.sql.types.ValueScaledInteger.requiredPrecision(), com.quadcap.sql.types.ValueScaledInteger.setScale(), and com.quadcap.sql.types.ValueDouble.val.

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

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

Definition at line 236 of file ValueDouble.java.

References com.quadcap.sql.types.ValueDouble.val.

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

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

Definition at line 232 of file ValueDouble.java.

References com.quadcap.sql.types.ValueDouble.val.

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

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

Definition at line 228 of file ValueDouble.java.

References com.quadcap.sql.types.ValueDouble.val.

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

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

Definition at line 224 of file ValueDouble.java.

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

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

final double com.quadcap.sql.types.ValueDouble.doubleValue  ) 
 

Definition at line 77 of file ValueDouble.java.

References com.quadcap.sql.types.ValueDouble.val.

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

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

Implements com.quadcap.sql.types.Value.

Definition at line 192 of file ValueDouble.java.

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

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

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

Implements com.quadcap.sql.types.Value.

Definition at line 263 of file ValueDouble.java.

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

Definition at line 200 of file ValueDouble.java.

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

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

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

Definition at line 210 of file ValueDouble.java.

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

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

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

Implements com.quadcap.sql.types.Value.

Definition at line 267 of file ValueDouble.java.

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

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

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

Definition at line 271 of file ValueDouble.java.

References com.quadcap.sql.types.ValueDouble.val.

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

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

Definition at line 79 of file ValueDouble.java.

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

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

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

Definition at line 204 of file ValueDouble.java.

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

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

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

Definition at line 218 of file ValueDouble.java.

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

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


Member Data Documentation

double com.quadcap.sql.types.ValueDouble.val [package]
 

Definition at line 57 of file ValueDouble.java.

Referenced by com.quadcap.sql.types.ValueDouble.asJavaObject(), com.quadcap.sql.types.ValueDouble.convert(), com.quadcap.sql.types.ValueDouble.doubleValue(), com.quadcap.sql.types.ValueDouble.fromJavaObject(), com.quadcap.sql.types.ValueDouble.readExternal(), com.quadcap.sql.types.ValueDouble.serializeKey(), com.quadcap.sql.types.ValueDouble.toString(), com.quadcap.sql.types.ValueDouble.unop(), and com.quadcap.sql.types.ValueDouble.writeExternal().