|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enableit.db.SqlType
This class has a primary purpose of representing a null value to be inserted into some SQL call handled by the proxy objects
This is necessary to allow the proxies to receive a null object
yet still provide the JDBC driver with a known object type
as required by PreparedStatement.setNull
The integer used in the constructor should be one of the static
final members of Types
java.sql.Types
,
DatabaseProxy
,
GenericDBProxy
,
Serialized FormField Summary | |
static java.lang.String |
ABOUT
Information on the exact CVS version accessible after compilation |
static int |
BIGDECIMAL
Represents a BigDecimal |
static int |
BOOLEAN
Represents a Boolean |
static int |
BYTEARRAY
Represents a Byte[] |
static int |
CHARACTER
Represents a Character |
static int |
DATE
Represents a java.util.Date |
static int |
DOUBLE
Represents a Double |
static int |
FLOAT
Represents a Float |
static int |
INTEGER
Deprecated. |
static int |
LONG
Represents a Long |
static int |
SHORT
Represents a Short |
static int |
SQLDATE
Represents a SQL Date |
static int |
SQLTIME
Represents a SQL Time |
static int |
SQLTIMESTAMP
|
static int |
STRING
Represents a String |
Constructor Summary | |
SqlType(org.enableit.db.beans.Column column)
Constructs a new instance of this class initialised with the datatype that matches the string in the Column instance most closely. |
|
SqlType(int dataType)
Constructs a new instance of this class initialised with the integer constant of its type. |
|
SqlType(int dataType,
int scale,
int precision)
Constructs a new instance of this class initialised with the integer constant of its type. |
Method Summary | |
int |
getDataType()
Returns the datatype that this class represents |
java.lang.String |
getJavaType()
Returns the appropriate Java datatype that this class represents |
java.lang.String |
toString()
Returns a string name of the datatype represented by this object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int BOOLEAN
public static final int CHARACTER
public static final int DOUBLE
public static final int FLOAT
public static final int INTEGER
public static final int LONG
public static final int SHORT
public static final int STRING
public static final int BIGDECIMAL
public static final int DATE
public static final int BYTEARRAY
public static final int SQLDATE
public static final int SQLTIME
public static final int SQLTIMESTAMP
public static final java.lang.String ABOUT
Constructor Detail |
public SqlType(int dataType)
dataType
- the int that represents the datatype that this class is being created for.public SqlType(int dataType, int scale, int precision)
dataType
- the int that represents the datatype that this class is being created for.scale
- The scale of this data type.precision
- The precision of this data type.public SqlType(org.enableit.db.beans.Column column)
Column
instance most closely.
column
- Encapsulates data ABOUT a db column.Method Detail |
public java.lang.String toString()
toString
in class java.lang.Object
public int getDataType()
public java.lang.String getJavaType()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |