Quadcap Embeddable Database

com.quadcap.sql.types.TypeTinyInt Class Reference

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

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

Detailed Description

The SQL TINYINT type.

Author:
Stan Bailes

Definition at line 57 of file TypeTinyInt.java.

Public Member Functions

 TypeTinyInt ()
String getTypeName ()
int getJDBCType ()
String getJDBCClassName ()
int getPrecision ()
int getScale ()
int getMaxPrecision ()
int getMinScale ()
int getMaxScale ()
boolean isCharType ()
boolean isCaseSensitive ()
boolean isCurrency ()
boolean isSigned ()
int getDisplayWidth ()
String toString ()
void readExternal (ObjectInput in)
 We don't bother serializing the data, since Java serialization is only used for the type portion of a table column.

void writeExternal (ObjectOutput out)
Value convert (Value v) throws ValueException
String getCreateParams ()

Static Public Member Functions

ValueByte convertNumber (long n) throws ValueException
 Utility method to help convert numbers to TINYINTs.

ValueByte convertNumber (float n) throws ValueException
 Utility method to help convert floats to TINYINT.

ValueByte convertNumber (double n) throws ValueException
 Utility method to help convert doubles to TINYINTs.


Static Public Attributes

final TypeTinyInt typeTinyInt = new TypeTinyInt()


Constructor & Destructor Documentation

com.quadcap.sql.types.TypeTinyInt.TypeTinyInt  ) 
 

Definition at line 60 of file TypeTinyInt.java.


Member Function Documentation

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

Implements com.quadcap.sql.types.Type.

Definition at line 104 of file TypeTinyInt.java.

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

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

ValueByte com.quadcap.sql.types.TypeTinyInt.convertNumber double  n  )  throws ValueException [static]
 

Utility method to help convert doubles to TINYINTs.

Definition at line 131 of file TypeTinyInt.java.

ValueByte com.quadcap.sql.types.TypeTinyInt.convertNumber float  n  )  throws ValueException [static]
 

Utility method to help convert floats to TINYINT.

Definition at line 121 of file TypeTinyInt.java.

ValueByte com.quadcap.sql.types.TypeTinyInt.convertNumber long  n  )  throws ValueException [static]
 

Utility method to help convert numbers to TINYINTs.

Definition at line 111 of file TypeTinyInt.java.

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

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

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

Implements com.quadcap.sql.types.Type.

Definition at line 138 of file TypeTinyInt.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 88 of file TypeTinyInt.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 68 of file TypeTinyInt.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 66 of file TypeTinyInt.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 74 of file TypeTinyInt.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 78 of file TypeTinyInt.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 76 of file TypeTinyInt.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 70 of file TypeTinyInt.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 72 of file TypeTinyInt.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 62 of file TypeTinyInt.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 82 of file TypeTinyInt.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 80 of file TypeTinyInt.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 84 of file TypeTinyInt.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 86 of file TypeTinyInt.java.

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

We don't bother serializing the data, since Java serialization is only used for the type portion of a table column.

Definition at line 98 of file TypeTinyInt.java.

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

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

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

Definition at line 90 of file TypeTinyInt.java.

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

Definition at line 101 of file TypeTinyInt.java.

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

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


Member Data Documentation

final TypeTinyInt com.quadcap.sql.types.TypeTinyInt.typeTinyInt = new TypeTinyInt() [static]
 

Definition at line 58 of file TypeTinyInt.java.