|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jms.tools.db.Type
This class is a helper class for converting from string values to their
corresponding java.sql.Types
Constructor Summary | |
Type(int type,
long precision,
boolean parameters)
Construct an instance, using the default name for the type |
|
Type(int type,
java.lang.String name,
long precision,
boolean parameters)
Construct an instance specifying the database specific type name |
Method Summary | |
java.lang.String |
getName()
Returns the name of the type |
boolean |
getParameters()
Returns if the type takes parameters when created |
long |
getPrecision()
Returns the precision of the type |
java.lang.String |
getSQL()
Returns an SQL representation of the type |
java.lang.String |
getSymbolicType()
Returns a symbolic representation of the type |
int |
getType()
Returns the type identifier |
static Type |
getType(java.lang.String type)
Returns a new type corresponding to its string representation |
java.lang.String |
toString()
Returns a string representation of the type, for debugging purposes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Type(int type, long precision, boolean parameters)
type
- a type corresponding to one in java.sql.Types
precision
- the precision of the type. A precision <= 0
indicates that the type has no precisionparameters
- if true, denotes that the type takes parametersjava.lang.IllegalArgumentException
- if type is invalidpublic Type(int type, java.lang.String name, long precision, boolean parameters)
type
- a type corresponding to one in java.sql.Types
name
- the RDBMS name of the typeprecision
- the precision of the type. A precision <= 0
indicates that the type has no precisionparameters
- if true, denotes that the type takes parametersjava.lang.IllegalArgumentException
- if type is invalidMethod Detail |
public int getType()
java.sql.Types
public java.lang.String getName()
public long getPrecision()
public boolean getParameters()
public java.lang.String getSymbolicType()
public java.lang.String getSQL()
public java.lang.String toString()
toString
in class java.lang.Object
public static Type getType(java.lang.String type) throws PersistenceException
type
- the string representation of the typePersistenceException
- if the string is invalid
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |