Quadcap Embeddable Database

com.quadcap.sql.types.ValueScaledInteger Class Reference

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

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

Detailed Description

A BigDecimal value.

Author:
Stan Bailes

Definition at line 57 of file ValueScaledInteger.java.

Public Member Functions

 ValueScaledInteger ()
 ValueScaledInteger (BigDecimal val)
 ValueScaledInteger (String s) throws ValueException
 ValueScaledInteger (double v) throws ValueException
 ValueScaledInteger (long v)
float floatValue ()
double doubleValue ()
int requiredPrecision ()
void setScale (int s)
Value binop (int op, Value l) throws ValueException
 Two-level virtual operator dispatch.

Value binop (int op, ValueByte r) throws ValueException
Value binop (int op, ValueShort r) throws ValueException
Value binop (int op, ValueInteger r) throws ValueException
Value binop (int op, ValueLong r) throws ValueException
Value binop (int op, ValueFloat r) throws ValueException
Value binop (int op, ValueDouble r) throws ValueException
Value binop (int op, ValueNull r) throws ValueException
Value binop (int op, ValueScaledInteger r) throws ValueException
Value unop (int op) throws ValueException
void readExternal (ObjectInput in) throws IOException, ClassNotFoundException
void writeExternal (ObjectOutput out) throws IOException
final BigDecimal bigDecimalValue ()
Object asJavaObject ()
void fromJavaObject (Object obj) throws ValueException
String toString ()
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, ValueScaledInteger e, ValueScaledInteger f) throws ValueException

Package Functions

final Value binop (int op, long r) throws ValueException

Package Attributes

BigDecimal val


Constructor & Destructor Documentation

com.quadcap.sql.types.ValueScaledInteger.ValueScaledInteger  ) 
 

Definition at line 60 of file ValueScaledInteger.java.

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

com.quadcap.sql.types.ValueScaledInteger.ValueScaledInteger BigDecimal  val  ) 
 

Definition at line 62 of file ValueScaledInteger.java.

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

Definition at line 66 of file ValueScaledInteger.java.

References com.quadcap.sql.types.ValueScaledInteger.val.

com.quadcap.sql.types.ValueScaledInteger.ValueScaledInteger double  v  )  throws ValueException
 

Definition at line 102 of file ValueScaledInteger.java.

com.quadcap.sql.types.ValueScaledInteger.ValueScaledInteger long  v  ) 
 

Definition at line 111 of file ValueScaledInteger.java.


Member Function Documentation

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

Implements com.quadcap.sql.types.Value.

Definition at line 267 of file ValueScaledInteger.java.

References com.quadcap.sql.types.ValueScaledInteger.val.

Referenced by com.quadcap.sql.FunctionExpression.getValue().

final BigDecimal com.quadcap.sql.types.ValueScaledInteger.bigDecimalValue  ) 
 

Definition at line 265 of file ValueScaledInteger.java.

References com.quadcap.sql.types.ValueScaledInteger.val.

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

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

Definition at line 191 of file ValueScaledInteger.java.

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

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

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

Definition at line 187 of file ValueScaledInteger.java.

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

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

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

Definition at line 165 of file ValueScaledInteger.java.

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

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

Definition at line 161 of file ValueScaledInteger.java.

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

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

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

Definition at line 156 of file ValueScaledInteger.java.

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

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

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

Definition at line 152 of file ValueScaledInteger.java.

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

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

Definition at line 148 of file ValueScaledInteger.java.

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

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

Definition at line 144 of file ValueScaledInteger.java.

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

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

Definition at line 140 of file ValueScaledInteger.java.

final Value com.quadcap.sql.types.ValueScaledInteger.binop int  op,
long  r
throws ValueException [package]
 

Definition at line 136 of file ValueScaledInteger.java.

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

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

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

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

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

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

Definition at line 313 of file ValueScaledInteger.java.

References com.quadcap.sql.types.ValueScaledInteger.val.

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

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

Definition at line 297 of file ValueScaledInteger.java.

References com.quadcap.sql.types.ValueScaledInteger.doubleValue(), com.quadcap.sql.types.ValueScaledInteger.val, and com.quadcap.sql.types.ValueScaledInteger.ValueScaledInteger().

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

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

Definition at line 293 of file ValueScaledInteger.java.

References com.quadcap.sql.types.ValueScaledInteger.val.

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

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

Definition at line 289 of file ValueScaledInteger.java.

References com.quadcap.sql.types.ValueScaledInteger.val.

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

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

Definition at line 285 of file ValueScaledInteger.java.

References com.quadcap.sql.types.ValueScaledInteger.val.

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

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

Definition at line 281 of file ValueScaledInteger.java.

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

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

double com.quadcap.sql.types.ValueScaledInteger.doubleValue  ) 
 

Definition at line 116 of file ValueScaledInteger.java.

References com.quadcap.sql.types.ValueScaledInteger.val.

Referenced by com.quadcap.sql.types.ValueScaledInteger.binop(), and com.quadcap.sql.types.ValueScaledInteger.convert().

float com.quadcap.sql.types.ValueScaledInteger.floatValue  ) 
 

Definition at line 115 of file ValueScaledInteger.java.

References com.quadcap.sql.types.ValueScaledInteger.val.

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

Implements com.quadcap.sql.types.Value.

Definition at line 271 of file ValueScaledInteger.java.

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

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

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

Implements com.quadcap.sql.types.Value.

Definition at line 321 of file ValueScaledInteger.java.

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

void com.quadcap.sql.types.ValueScaledInteger.readExternal ObjectInput  in  )  throws IOException, ClassNotFoundException
 

Definition at line 253 of file ValueScaledInteger.java.

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

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

int com.quadcap.sql.types.ValueScaledInteger.requiredPrecision  ) 
 

Definition at line 118 of file ValueScaledInteger.java.

References com.quadcap.sql.types.ValueScaledInteger.val.

Referenced by com.quadcap.sql.types.ValueFloat.convert(), com.quadcap.sql.types.ValueDouble.convert(), and com.quadcap.sql.types.ValueScaledInteger.getType().

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

Implements com.quadcap.sql.types.Value.

Definition at line 325 of file ValueScaledInteger.java.

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

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

void com.quadcap.sql.types.ValueScaledInteger.setScale int  s  ) 
 

Definition at line 128 of file ValueScaledInteger.java.

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

Referenced by com.quadcap.sql.types.ValueFloat.convert(), com.quadcap.sql.types.ValueDouble.convert(), and com.quadcap.sql.types.ValueScaledInteger.setScale().

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

Definition at line 279 of file ValueScaledInteger.java.

References com.quadcap.sql.types.ValueScaledInteger.val.

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

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

Definition at line 238 of file ValueScaledInteger.java.

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

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

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

Definition at line 259 of file ValueScaledInteger.java.

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

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


Member Data Documentation

BigDecimal com.quadcap.sql.types.ValueScaledInteger.val [package]
 

Definition at line 58 of file ValueScaledInteger.java.

Referenced by com.quadcap.sql.types.ValueScaledInteger.asJavaObject(), com.quadcap.sql.types.ValueScaledInteger.bigDecimalValue(), com.quadcap.sql.types.ValueScaledInteger.convert(), com.quadcap.sql.types.ValueScaledInteger.doubleValue(), com.quadcap.sql.types.ValueScaledInteger.floatValue(), com.quadcap.sql.types.ValueScaledInteger.fromJavaObject(), com.quadcap.sql.types.ValueScaledInteger.getType(), com.quadcap.sql.types.ValueScaledInteger.readExternal(), com.quadcap.sql.types.ValueScaledInteger.requiredPrecision(), com.quadcap.sql.types.ValueScaledInteger.serializeKey(), com.quadcap.sql.types.ValueScaledInteger.setScale(), com.quadcap.sql.types.ValueScaledInteger.toString(), com.quadcap.sql.types.ValueScaledInteger.unop(), com.quadcap.sql.types.ValueScaledInteger.ValueScaledInteger(), and com.quadcap.sql.types.ValueScaledInteger.writeExternal().