Quadcap Embeddable Database

com.quadcap.sql.types.TypeDecimal Class Reference

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

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

Detailed Description

The SQL DECIMAL type.

Author:
Stan Bailes

Definition at line 59 of file TypeDecimal.java.

Public Member Functions

 TypeDecimal ()
 TypeDecimal (int precision, int scale)
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) throws IOException
void writeExternal (ObjectOutput out) throws IOException
Value convert (Value v) throws ValueException
Value convertNumber (long n) throws ValueException
 Utility method to help convert numbers to DECIMALs.

String getCreateParams ()

Static Public Attributes

final TypeDecimal typeDecimal = new TypeDecimal()

Package Attributes

int precision = -1
int scale = -1


Constructor & Destructor Documentation

com.quadcap.sql.types.TypeDecimal.TypeDecimal  ) 
 

Definition at line 65 of file TypeDecimal.java.

com.quadcap.sql.types.TypeDecimal.TypeDecimal int  precision,
int  scale
 

Definition at line 67 of file TypeDecimal.java.


Member Function Documentation

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

Implements com.quadcap.sql.types.Type.

Definition at line 118 of file TypeDecimal.java.

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

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

Value com.quadcap.sql.types.TypeDecimal.convertNumber long  n  )  throws ValueException
 

Utility method to help convert numbers to DECIMALs.

Definition at line 125 of file TypeDecimal.java.

References com.quadcap.sql.types.TypeDecimal.convertNumber(), com.quadcap.sql.types.TypeDecimal.precision, and com.quadcap.sql.types.TypeDecimal.scale.

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

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

Implements com.quadcap.sql.types.Type.

Definition at line 138 of file TypeDecimal.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 98 of file TypeDecimal.java.

References com.quadcap.sql.types.TypeDecimal.precision.

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

Implements com.quadcap.sql.types.Type.

Definition at line 78 of file TypeDecimal.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 76 of file TypeDecimal.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 84 of file TypeDecimal.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 88 of file TypeDecimal.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 86 of file TypeDecimal.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 80 of file TypeDecimal.java.

References com.quadcap.sql.types.TypeDecimal.precision.

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

Implements com.quadcap.sql.types.Type.

Definition at line 82 of file TypeDecimal.java.

References com.quadcap.sql.types.TypeDecimal.scale.

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

Implements com.quadcap.sql.types.Type.

Definition at line 72 of file TypeDecimal.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 92 of file TypeDecimal.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 90 of file TypeDecimal.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 94 of file TypeDecimal.java.

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

Implements com.quadcap.sql.types.Type.

Definition at line 96 of file TypeDecimal.java.

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

Definition at line 108 of file TypeDecimal.java.

References com.quadcap.sql.types.TypeDecimal.precision, com.quadcap.sql.types.TypeDecimal.readExternal(), and com.quadcap.sql.types.TypeDecimal.scale.

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

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

Definition at line 100 of file TypeDecimal.java.

References com.quadcap.sql.types.TypeDecimal.precision, and com.quadcap.sql.types.TypeDecimal.scale.

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

Definition at line 113 of file TypeDecimal.java.

References com.quadcap.sql.types.TypeDecimal.precision, com.quadcap.sql.types.TypeDecimal.scale, and com.quadcap.sql.types.TypeDecimal.writeExternal().

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


Member Data Documentation

int com.quadcap.sql.types.TypeDecimal.precision = -1 [package]
 

Definition at line 62 of file TypeDecimal.java.

Referenced by com.quadcap.sql.types.TypeDecimal.convertNumber(), com.quadcap.sql.types.TypeDecimal.getDisplayWidth(), com.quadcap.sql.types.TypeDecimal.getPrecision(), com.quadcap.sql.types.TypeDecimal.readExternal(), com.quadcap.sql.types.TypeDecimal.toString(), and com.quadcap.sql.types.TypeDecimal.writeExternal().

int com.quadcap.sql.types.TypeDecimal.scale = -1 [package]
 

Definition at line 63 of file TypeDecimal.java.

Referenced by com.quadcap.sql.types.TypeDecimal.convertNumber(), com.quadcap.sql.types.TypeDecimal.getScale(), com.quadcap.sql.types.TypeDecimal.readExternal(), com.quadcap.sql.types.TypeDecimal.toString(), and com.quadcap.sql.types.TypeDecimal.writeExternal().

final TypeDecimal com.quadcap.sql.types.TypeDecimal.typeDecimal = new TypeDecimal() [static]
 

Definition at line 60 of file TypeDecimal.java.