Class com.imaginary.sql.msql.MsqlTypes
java.lang.Object
|
+--com.imaginary.sql.msql.MsqlTypes
- public class MsqlTypes
- extends java.lang.Object
Provides tools for moving around among SQL and mSQL data types using
both the SQL Types constants and the mSQL socket protocol constants.
Last modified $Date: 1999/07/06 05:50:59 $
- Version:
- $Revision: 2.1 $
- Author:
- George Reese (borg@imaginary.com)
Method Summary
|
static int
|
getMsqlTypeForSQL(int sql)
Provides the mSQL type in the form of an int from
this class for the specified SQL type from java.sql. |
static java.lang.String
|
getMsqlTypeNameForMsql(int msql)
Provides a String representation of the specified
mSQL type. |
static java.lang.String
|
getMsqlTypeNameForSQL(int sql)
Provides the mSQL type name for the specified SQL type constant
from java.sql. |
static int
|
getSQLTypeForMsql(int msql)
Provides the SQL type that corresponds to the specified mSQL type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
INT
public static final int INT
CHAR
public static final int CHAR
REAL
public static final int REAL
IDENT
public static final int IDENT
NULL
public static final int NULL
TEXT
public static final int TEXT
DATE
public static final int DATE
UINT
public static final int UINT
MONEY
public static final int MONEY
TIME
public static final int TIME
IDX
public static final int IDX
SYSVAR
public static final int SYSVAR
ANY
public static final int ANY
getMsqlTypeForSQL
public static int getMsqlTypeForSQL(int sql)
- Provides the mSQL type in the form of an
int from
this class for the specified SQL type from java.sql.Types
.
The conversion used here is the same conversion the driver uses.
- Parameters:
sql
- the SQL type from java.sql.Types
- Returns:
- an
int
value representing the mSQL type - See Also:
- java.sql.Types
getMsqlTypeNameForMsql
public static java.lang.String getMsqlTypeNameForMsql(int msql)
- Provides a
String
representation of the specified
mSQL type. The representation is using the mSQL type system.
- Parameters:
msql
- the mSQL type whose name is desired- Returns:
- the mSQL name for the specified type
getMsqlTypeNameForSQL
public static java.lang.String getMsqlTypeNameForSQL(int sql)
- Provides the mSQL type name for the specified SQL type constant
from
java.sql.Types
.
- Parameters:
sql
- the SQL type value- Returns:
- the mSQL type name
- See Also:
- java.sql.Types
getSQLTypeForMsql
public static int getSQLTypeForMsql(int msql)
- Provides the SQL type that corresponds to the specified mSQL type.
- Parameters:
msql
- the desired mSQL type- Returns:
- the SQL type from
java.sql.Types