java.lang.Object
org.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$
|
Constructor Summary |
Types()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPES
protected static final java.util.HashMap TYPES
- Map type of property - sql type
Types
public Types()
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