All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.imaginary.sql.msql.MsqlTypes

com.imaginary.sql.msql.MsqlTypes

public class MsqlTypes
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/09 23:16:39 $

Version:
$Revision: 1.1.2.1 $
Author:
George Reese (borg@imaginary.com)

Variable Index

 o ANY
 o CHAR
 o DATE
 o IDENT
 o IDX
 o INT
 o MONEY
 o NULL
 o REAL
 o SYSVAR
 o TEXT
 o TIME
 o UINT

Constructor Index

 o MsqlTypes()

Method Index

 o getMsqlTypeForSQL(int)
Provides the mSQL type in the form of an int from this class for the specified SQL type from java.sql.Types.
 o getMsqlTypeNameForMsql(int)
Provides a String representation of the specified mSQL type.
 o getMsqlTypeNameForSQL(int)
Provides the mSQL type name for the specified SQL type constant from java.sql.Types.
 o getSQLTypeForMsql(int)
Provides the SQL type that corresponds to the specified mSQL type.

Variables

 o INT
 public static final int INT
 o CHAR
 public static final int CHAR
 o REAL
 public static final int REAL
 o IDENT
 public static final int IDENT
 o NULL
 public static final int NULL
 o TEXT
 public static final int TEXT
 o DATE
 public static final int DATE
 o UINT
 public static final int UINT
 o MONEY
 public static final int MONEY
 o TIME
 public static final int TIME
 o IDX
 public static final int IDX
 o SYSVAR
 public static final int SYSVAR
 o ANY
 public static final int ANY

Constructors

 o MsqlTypes
 public MsqlTypes()

Methods

 o 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:
Types
 o getMsqlTypeNameForMsql
 public static 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
 o getMsqlTypeNameForSQL
 public static 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:
Types
 o 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

All Packages  Class Hierarchy  This Package  Previous  Next  Index