|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.sqlpower.architect.SQLType
public class SQLType
The SQLType class is a holder for a (name, typecode) pair. The type codes come from java.sql.Types, which themselves come from the XOPEN specification.
| Constructor Summary | |
|---|---|
SQLType(java.lang.String name,
int type)
You won't normally need to use this. |
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
|
int |
getType()
|
static SQLType |
getType(int typecode)
Returns a reference to the shared instance of SQLType that *has the requested type code. |
static java.lang.String |
getTypeName(int typecode)
|
static SQLType[] |
getTypes()
Returns a shared, static array of all defined types. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SQLType(java.lang.String name,
int type)
getTypes().
| Method Detail |
|---|
public static SQLType[] getTypes()
public java.lang.String getName()
public int getType()
public java.lang.String toString()
toString in class java.lang.Objectpublic static java.lang.String getTypeName(int typecode)
public static SQLType getType(int typecode)
typecode is not a
valid type code, returns null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||