Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

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)

Field Summary
static int ANY
           
static int CHAR
           
static int DATE
           
static int IDENT
           
static int IDX
           
static int INT
           
static int MONEY
           
static int NULL
           
static int REAL
           
static int SYSVAR
           
static int TEXT
           
static int TIME
           
static int UINT
           
 
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
 

Field Detail

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
Method Detail

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

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD