Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jdbf.engine.sql
Class Types  view Types download Types.java

java.lang.Object
  extended byorg.jdbf.engine.sql.Types

public class Types
extends java.lang.Object

Types is the class that maps the type of the property with SQLType (e.g. int with java.sql.Types.INTEGER).


  |    type      |        SQL Type          | 
  |------------- |--------------------------|
  |   int        |  java.sql.Type.INTEGER   |
  |   long       |  java.sql.Type.BIGINT    |
  |   binary     |  java.sql.Type.BINARY    |
  |   boolean    |  java.sql.Type.BIT       |
  |   date       |  java.sql.Type.DATE      |
  |   decimal    |  java.sql.Type.DECIMAL   |
  |   double     |  java.sql.Type.DOUBLE    |
  |   float      |  java.sql.Type.FLOAT     |
  |   real       |  java.sql.Type.REAL      |
  |   smallint   |  java.sql.Type.INTEGER   |
  |   time       |  java.sql.Type.TIME      |
  |   timestamp  |  java.sql.Type.TIMESTAMP |
  |   tinyint    |  java.sql.Type.TINYINT   |
  |   varbinary  |  java.sql.Type.VARBINARY |
  |   char       |  java.sql.Type.VARCHAR   |
  |   string     |  java.sql.Type.VARCHAR   |
  |   numeric    |  java.sql.Type.NUMERIC   |
  |   longstring |  java.sql.Type.VARCHAR   |
  |   lognbinary |  java.sql.Type.BINARY    |

 

Version:
$id$

Field Summary
protected static java.util.HashMap TYPES
          Map type of property - sql type
 
Constructor Summary
Types()
           
 
Method Summary
static int getSQLType(java.lang.String type)
          Return the sql type for type of property specified in type.
private static java.util.HashMap loadTypes()
          Load the table that maps the type of property with SQL type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPES

protected static final java.util.HashMap TYPES
Map type of property - sql type

Constructor Detail

Types

public Types()
Method Detail

loadTypes

private static java.util.HashMap loadTypes()
Load the table that maps the type of property with SQL type.


getSQLType

public static int getSQLType(java.lang.String type)
                      throws org.jdbf.engine.mapping.MappingException
Return the sql type for type of property specified in type. If type is invalid type MappigException if thrown