Package net.anwiba.database.sqlite
Enum SqliteType
- java.lang.Object
-
- java.lang.Enum<SqliteType>
-
- net.anwiba.database.sqlite.SqliteType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SqliteType>,net.anwiba.commons.jdbc.metadata.IDataBaseType
public enum SqliteType extends java.lang.Enum<SqliteType> implements net.anwiba.commons.jdbc.metadata.IDataBaseType
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract <T,E extends java.lang.Exception>
voidaccept(ISqliteTypeVisitor<T,E> visitor)static SqliteTypegetByName(java.lang.String name)static SqliteTypegetByTypeCode(int code)intgetCode()static SqliteTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SqliteType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INT2
public static final SqliteType INT2
-
MEDIUMINT
public static final SqliteType MEDIUMINT
-
INT4
public static final SqliteType INT4
-
INT8
public static final SqliteType INT8
-
INTEGER
public static final SqliteType INTEGER
-
BIGINT
public static final SqliteType BIGINT
-
FLOAT4
public static final SqliteType FLOAT4
-
FLOAT8
public static final SqliteType FLOAT8
-
DOUBLE_PRECISION
public static final SqliteType DOUBLE_PRECISION
-
DECIMAL
public static final SqliteType DECIMAL
-
NUMERIC
public static final SqliteType NUMERIC
-
MONEY
public static final SqliteType MONEY
-
BPCHAR
public static final SqliteType BPCHAR
-
TEXT
public static final SqliteType TEXT
-
NAME
public static final SqliteType NAME
-
BYTEA
public static final SqliteType BYTEA
-
BOOL
public static final SqliteType BOOL
-
TIME
public static final SqliteType TIME
-
TIMESTAMP
public static final SqliteType TIMESTAMP
-
TIMETZ
public static final SqliteType TIMETZ
-
TIMESTAMPTZ
public static final SqliteType TIMESTAMPTZ
-
UNKNOWN
public static final SqliteType UNKNOWN
-
-
Method Detail
-
values
public static SqliteType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SqliteType c : SqliteType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SqliteType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getByName
public static SqliteType getByName(java.lang.String name)
-
getByTypeCode
public static SqliteType getByTypeCode(int code)
-
getCode
public int getCode()
- Specified by:
getCodein interfacenet.anwiba.commons.jdbc.metadata.IDataBaseType
-
accept
public abstract <T,E extends java.lang.Exception> void accept(ISqliteTypeVisitor<T,E> visitor) throws E extends java.lang.Exception
- Throws:
E extends java.lang.Exception
-
-