Quadcap Embeddable Database

com.quadcap.sql.types.ValueBoolean Class Reference

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

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

Detailed Description

A boolean value.

Author:
Stan Bailes

Definition at line 51 of file ValueBoolean.java.

Public Member Functions

 ValueBoolean ()
 ValueBoolean (boolean val)
Value binop (int op, Value l) throws ValueException
 Two-level virtual operator dispatch.

Value binop (int op, ValueBoolean r) throws ValueException
Value binop (int op, ValueNull r) throws ValueException
Value binop (int op, ValueUnknown r) throws ValueException
Value unop (int op) throws ValueException
void readExternal (ObjectInput in) throws IOException
void writeExternal (ObjectOutput out) throws IOException
boolean isTrue ()
Object asJavaObject ()
void fromJavaObject (Object obj) throws ValueException
Value convert (TypeBinary type) throws ValueException
Value convert (TypeVarBinary type) throws ValueException
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 (TypeReal type) throws ValueException
Value convert (TypeDecimal type) throws ValueException
Type getType ()
String toString ()
void serializeKey (KeyStream out) throws IOException

Static Public Member Functions

ValueBoolean binop (int op, ValueBoolean e, ValueBoolean f) throws ValueException

Static Public Attributes

final ValueBoolean trueBoolean = new ValueBoolean(true)
final ValueBoolean falseBoolean = new ValueBoolean(false)

Package Attributes

boolean val


Constructor & Destructor Documentation

com.quadcap.sql.types.ValueBoolean.ValueBoolean  ) 
 

Definition at line 60 of file ValueBoolean.java.

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

com.quadcap.sql.types.ValueBoolean.ValueBoolean boolean  val  ) 
 

Definition at line 62 of file ValueBoolean.java.


Member Function Documentation

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

Implements com.quadcap.sql.types.Value.

Definition at line 158 of file ValueBoolean.java.

References com.quadcap.sql.types.ValueBoolean.val.

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

Definition at line 114 of file ValueBoolean.java.

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

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

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

Definition at line 94 of file ValueBoolean.java.

References com.quadcap.sql.types.ValueBoolean.val.

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

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

Definition at line 72 of file ValueBoolean.java.

References com.quadcap.sql.types.ValueBoolean.val.

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

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

Definition at line 68 of file ValueBoolean.java.

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

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

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

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

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

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

Definition at line 210 of file ValueBoolean.java.

References com.quadcap.sql.types.ValueBoolean.val.

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

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

Definition at line 202 of file ValueBoolean.java.

References com.quadcap.sql.types.ValueBoolean.val.

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

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

Definition at line 198 of file ValueBoolean.java.

References com.quadcap.sql.types.ValueBoolean.val.

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

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

Definition at line 194 of file ValueBoolean.java.

References com.quadcap.sql.types.ValueBoolean.val.

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

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

Definition at line 190 of file ValueBoolean.java.

References com.quadcap.sql.types.ValueBoolean.val.

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

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

Definition at line 186 of file ValueBoolean.java.

References com.quadcap.sql.types.ValueBoolean.val.

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

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

Definition at line 182 of file ValueBoolean.java.

Value com.quadcap.sql.types.ValueBoolean.convert TypeVarBinary  type  )  throws ValueException
 

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

Definition at line 176 of file ValueBoolean.java.

References com.quadcap.sql.types.ValueBoolean.val.

Value com.quadcap.sql.types.ValueBoolean.convert TypeBinary  type  )  throws ValueException
 

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

Definition at line 170 of file ValueBoolean.java.

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

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

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

Implements com.quadcap.sql.types.Value.

Definition at line 162 of file ValueBoolean.java.

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

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

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

Implements com.quadcap.sql.types.Value.

Definition at line 216 of file ValueBoolean.java.

boolean com.quadcap.sql.types.ValueBoolean.isTrue  ) 
 

Definition at line 156 of file ValueBoolean.java.

References com.quadcap.sql.types.ValueBoolean.val.

Referenced by com.quadcap.sql.JoinCursor.passRow().

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

Definition at line 146 of file ValueBoolean.java.

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

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

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

Implements com.quadcap.sql.types.Value.

Definition at line 224 of file ValueBoolean.java.

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

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

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

Definition at line 220 of file ValueBoolean.java.

References com.quadcap.sql.types.ValueBoolean.val.

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

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

Definition at line 135 of file ValueBoolean.java.

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

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

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

Definition at line 150 of file ValueBoolean.java.

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

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


Member Data Documentation

final ValueBoolean com.quadcap.sql.types.ValueBoolean.falseBoolean = new ValueBoolean(false) [static]
 

Definition at line 58 of file ValueBoolean.java.

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

final ValueBoolean com.quadcap.sql.types.ValueBoolean.trueBoolean = new ValueBoolean(true) [static]
 

Definition at line 55 of file ValueBoolean.java.

boolean com.quadcap.sql.types.ValueBoolean.val [package]
 

Definition at line 52 of file ValueBoolean.java.

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