Quadcap Embeddable Database

com.quadcap.sql.types.TypeInt Class Reference

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

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

Detailed Description

The SQL INT type.

Author:
Stan Bailes

Definition at line 57 of file TypeInt.java.

Public Member Functions

 TypeInt ()
String getTypeName ()
int getJDBCType ()
String getJDBCClassName ()
int getPrecision ()
int getScale ()
int getMaxPrecision ()
int getMinScale ()
int getMaxScale ()
boolean isCharType ()
boolean isCaseSensitive ()
boolean isCurrency ()
boolean isSigned ()
String toString ()
int getDisplayWidth ()
void readExternal (ObjectInput in)
void writeExternal (ObjectOutput out)
Value convert (Value v) throws ValueException
String getCreateParams ()

Static Public Member Functions

ValueInteger convertNumber (long n) throws ValueException
 Utility method to help convert numbers to INTs.

ValueInteger convertNumber (float n) throws ValueException
 Utility method to help convert floats to INTs.

ValueInteger convertNumber (double n) throws ValueException
 Utility method to help convert doubles to INTs.


Static Public Attributes

final TypeInt typeInt = new TypeInt()


Constructor & Destructor Documentation

com.quadcap.sql.types.TypeInt.TypeInt  ) 
 

Definition at line 60 of file TypeInt.java.


Member Function Documentation

Value com.quadcap.sql.types.TypeInt.convert Value  v  )  throws ValueException
 

Implements com.quadcap.sql.types.Type.

Definition at line 100 of file TypeInt.java.

References com.quadcap.sql.types.TypeInt.convert().

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

ValueInteger com.quadcap.sql.types.TypeInt.convertNumber double  n  )  throws ValueException [static]
 

Utility method to help convert doubles to INTs.

Definition at line 127 of file TypeInt.java.

ValueInteger com.quadcap.sql.types.TypeInt.convertNumber float  n  )  throws ValueException [static]
 

Utility method to help convert floats to INTs.

Definition at line 117 of file TypeInt.java.

ValueInteger com.quadcap.sql.types.TypeInt.convertNumber long  n  )  throws ValueException [static]
 

Utility method to help convert numbers to INTs.

Definition at line 107 of file TypeInt.java.

References com.quadcap.sql.types.TypeInt.convertNumber().

Referenced by com.quadcap.sql.types.TypeInt.convertNumber().

String com.quadcap.sql.types.TypeInt.getCreateParams  ) 
 

Implements com.quadcap.sql.types.Type.

Definition at line 134 of file TypeInt.java.

int com.quadcap.sql.types.TypeInt.getDisplayWidth  ) 
 

Implements com.quadcap.sql.types.Type.

Definition at line 92 of file TypeInt.java.

String com.quadcap.sql.types.TypeInt.getJDBCClassName  ) 
 

Implements com.quadcap.sql.types.Type.

Definition at line 68 of file TypeInt.java.

int com.quadcap.sql.types.TypeInt.getJDBCType  ) 
 

Implements com.quadcap.sql.types.Type.

Definition at line 66 of file TypeInt.java.

int com.quadcap.sql.types.TypeInt.getMaxPrecision  ) 
 

Implements com.quadcap.sql.types.Type.

Definition at line 74 of file TypeInt.java.

int com.quadcap.sql.types.TypeInt.getMaxScale  ) 
 

Implements com.quadcap.sql.types.Type.

Definition at line 78 of file TypeInt.java.

int com.quadcap.sql.types.TypeInt.getMinScale  ) 
 

Implements com.quadcap.sql.types.Type.

Definition at line 76 of file TypeInt.java.

int com.quadcap.sql.types.TypeInt.getPrecision  ) 
 

Implements com.quadcap.sql.types.Type.

Definition at line 70 of file TypeInt.java.

int com.quadcap.sql.types.TypeInt.getScale  ) 
 

Implements com.quadcap.sql.types.Type.

Definition at line 72 of file TypeInt.java.

String com.quadcap.sql.types.TypeInt.getTypeName  ) 
 

Implements com.quadcap.sql.types.Type.

Definition at line 62 of file TypeInt.java.

boolean com.quadcap.sql.types.TypeInt.isCaseSensitive  ) 
 

Implements com.quadcap.sql.types.Type.

Definition at line 82 of file TypeInt.java.

boolean com.quadcap.sql.types.TypeInt.isCharType  ) 
 

Implements com.quadcap.sql.types.Type.

Definition at line 80 of file TypeInt.java.

boolean com.quadcap.sql.types.TypeInt.isCurrency  ) 
 

Implements com.quadcap.sql.types.Type.

Definition at line 84 of file TypeInt.java.

boolean com.quadcap.sql.types.TypeInt.isSigned  ) 
 

Implements com.quadcap.sql.types.Type.

Definition at line 86 of file TypeInt.java.

void com.quadcap.sql.types.TypeInt.readExternal ObjectInput  in  ) 
 

Definition at line 94 of file TypeInt.java.

References com.quadcap.sql.types.TypeInt.readExternal().

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

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

Definition at line 88 of file TypeInt.java.

void com.quadcap.sql.types.TypeInt.writeExternal ObjectOutput  out  ) 
 

Definition at line 97 of file TypeInt.java.

References com.quadcap.sql.types.TypeInt.writeExternal().

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


Member Data Documentation

final TypeInt com.quadcap.sql.types.TypeInt.typeInt = new TypeInt() [static]
 

Definition at line 58 of file TypeInt.java.