oajava.sql
Class xo_type

java.lang.Object
  |
  +--oajava.sql.xo_type

public class xo_type
extends java.lang.Object

It contains all the necessary elements that characterize a X/Open type.


Constructor Summary
xo_type()
          Intialize the object with zero value(s).
xo_type(int type, int length, int prec, int radix, int scale, int inull)
          Intialize the object with specified value(s).
 
Method Summary
 int getLength()
          Get the length.
 int getNull()
          Get the null indicator.
 int getPrecision()
          Get the precision.
 int getRadix()
          Get the radix.
 int getScale()
          Get the scale.
 int getType()
          Get the data type.
 void setLength(int length)
          Set the length.
 void setNull(int inull)
          Set the scale.
 void setPrecision(int prec)
          Set the precision.
 void setRadix(int radix)
          Set the radix.
 void setScale(int scale)
          Set the scale.
 void setType(int type)
          Set the data type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

xo_type

public xo_type()
Intialize the object with zero value(s).

xo_type

public xo_type(int type,
               int length,
               int prec,
               int radix,
               int scale,
               int inull)
Intialize the object with specified value(s).

Parameters:
type - The data type.
length - Length required to display the data type value.
prec - Length required to store the data type value.
radix - Indicate data type value's base.
scale - Number of digits after decimal point.
inull - Indicate value can be null or not.
Method Detail

setType

public void setType(int type)
Set the data type.

Parameters:
type - The data type.

setLength

public void setLength(int length)
Set the length.

Parameters:
length - Length required to display the data type value.

setPrecision

public void setPrecision(int prec)
Set the precision.

Parameters:
prec - Length required to store the data type value.

setRadix

public void setRadix(int radix)
Set the radix.

Parameters:
radix - Indicate data type value's base.

setScale

public void setScale(int scale)
Set the scale.

Parameters:
scale - Number of digits after decimal point.

setNull

public void setNull(int inull)
Set the scale.

Parameters:
inull - Indicate value can be null or not.

getType

public int getType()
Get the data type.

Returns:
The data type.

getLength

public int getLength()
Get the length.

Returns:
The data type length.

getPrecision

public int getPrecision()
Get the precision.

Returns:
The data type precision.

getRadix

public int getRadix()
Get the radix.

Returns:
The data type radix.

getScale

public int getScale()
Get the scale.

Returns:
The data type scale.

getNull

public int getNull()
Get the null indicator.

Returns:
The data type null indicator.