com.j256.ormlite.field.SqlType Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ormlite-core Show documentation
Show all versions of ormlite-core Show documentation
Lightweight Object Relational Model (ORM) for persisting objects to SQL databases.
package com.j256.ormlite.field;
/**
* The SQL data types that are supported. These are basically an enumeration of the constants in java.sql.Types.
*
*
* NOTE: If you add types here you will need to add to the various DatabaseType implementors' appendColumnArg()
* method.
*
*
* @author graywatson
*/
public enum SqlType {
STRING,
LONG_STRING,
DATE,
BOOLEAN,
CHAR,
BYTE,
BYTE_ARRAY,
SHORT,
INTEGER,
LONG,
FLOAT,
DOUBLE,
SERIALIZABLE,
BLOB,
BIG_DECIMAL,
/** for native database UUIDs, not to be confused with Java's UUID */
UUID,
// for other types handled by custom persisters
OTHER,
UNKNOWN,
// end
;
}