|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.farrago.test.FarragoJdbcTest.TestSqlType
private static class FarragoJdbcTest.TestSqlType
Defines a SQL type, and a corresponding column in the datatypes table, and some operations particular to each type.
Field Summary | |
---|---|
private static FarragoJdbcTest.TestSqlType[] |
all
|
static int |
BADFORMAT
|
private static FarragoJdbcTest.TestSqlType |
Bigint
Definition of the BIGINT SQL type. |
private static FarragoJdbcTest.TestSqlType |
Binary
Definition of the BINARY(10) SQL type. |
private static FarragoJdbcTest.TestSqlType |
Boolean
Definition of the BOOLEAN SQL type. |
private static FarragoJdbcTest.TestSqlType |
Char
Definition of the CHAR(100) SQL type. |
private static FarragoJdbcTest.TestSqlType |
Date
Definition of the DATE SQL type. |
private static FarragoJdbcTest.TestSqlType |
Decimal
Definition of the DECIMAL SQL type. |
private static FarragoJdbcTest.TestSqlType |
Decimal73
|
private static FarragoJdbcTest.TestSqlType |
Double
Definition of the DOUBLE SQL type. |
static Pattern[] |
exceptionPatterns
|
private static FarragoJdbcTest.TestSqlType |
Float
Definition of the FLOAT SQL type. |
private static FarragoJdbcTest.TestSqlType |
Integer
Definition of the INTEGER SQL type. |
static int |
INVALID
|
static int |
NOTNULLABLE
|
private int |
ordinal
|
static int |
OUTOFRANGE
|
private static FarragoJdbcTest.TestSqlType |
Real
Definition of the REAL SQL type. |
private static FarragoJdbcTest.TestSqlType |
Smallint
Definition of the SMALLINT SQL type. |
private String |
string
|
private static FarragoJdbcTest.TestSqlType |
Time
Definition of the TIME(0) SQL type. |
private static FarragoJdbcTest.TestSqlType |
Timestamp
Definition of the TIMESTAMP SQL type. |
private static FarragoJdbcTest.TestSqlType |
Tinyint
Definition of the TINYINT SQL type. |
static int |
TOOLONG
|
private static FarragoJdbcTest.TestSqlType[] |
typesBinary
|
private static FarragoJdbcTest.TestSqlType[] |
typesChar
|
private static FarragoJdbcTest.TestSqlType[] |
typesDateTime
|
private static FarragoJdbcTest.TestSqlType[] |
typesNumeric
|
private static FarragoJdbcTest.TestSqlType[] |
typesNumericAndChars
|
static int |
VALID
|
static String[] |
validityName
|
private static FarragoJdbcTest.TestSqlType |
Varbinary
Definition of the VARBINARY(20) SQL type. |
private static FarragoJdbcTest.TestSqlType |
Varchar
Definition of the VARCHAR(200) SQL type. |
Constructor Summary | |
---|---|
FarragoJdbcTest.TestSqlType(int ordinal,
String example)
|
Method Summary | |
---|---|
int |
checkIsValid(Object value)
|
int |
checkIsValid(Object value,
boolean strict)
|
Object |
getExpected(Object value)
|
protected static boolean |
isBetween(Number number,
double min,
double max)
|
protected static boolean |
isBetween(Number number,
long min,
long max)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final FarragoJdbcTest.TestSqlType Tinyint
TINYINT
SQL type.
private static final FarragoJdbcTest.TestSqlType Smallint
SMALLINT
SQL type.
private static final FarragoJdbcTest.TestSqlType Integer
INTEGER
SQL type.
private static final FarragoJdbcTest.TestSqlType Bigint
BIGINT
SQL type.
private static final FarragoJdbcTest.TestSqlType Real
REAL
SQL type.
private static final FarragoJdbcTest.TestSqlType Float
FLOAT
SQL type.
private static final FarragoJdbcTest.TestSqlType Double
DOUBLE
SQL type.
private static final FarragoJdbcTest.TestSqlType Boolean
BOOLEAN
SQL type.
private static final FarragoJdbcTest.TestSqlType Char
CHAR(100)
SQL type.
private static final FarragoJdbcTest.TestSqlType Varchar
VARCHAR(200)
SQL type.
private static final FarragoJdbcTest.TestSqlType Binary
BINARY(10)
SQL type.
private static final FarragoJdbcTest.TestSqlType Varbinary
VARBINARY(20)
SQL type.
private static final FarragoJdbcTest.TestSqlType Time
TIME(0)
SQL type.
private static final FarragoJdbcTest.TestSqlType Date
DATE
SQL type.
private static final FarragoJdbcTest.TestSqlType Timestamp
TIMESTAMP
SQL type.
private static final FarragoJdbcTest.TestSqlType Decimal
DECIMAL
SQL type.
private static final FarragoJdbcTest.TestSqlType Decimal73
private static final FarragoJdbcTest.TestSqlType[] all
private static final FarragoJdbcTest.TestSqlType[] typesNumericAndChars
private static final FarragoJdbcTest.TestSqlType[] typesNumeric
private static final FarragoJdbcTest.TestSqlType[] typesChar
private static final FarragoJdbcTest.TestSqlType[] typesBinary
private static final FarragoJdbcTest.TestSqlType[] typesDateTime
public static final int VALID
public static final int INVALID
public static final int OUTOFRANGE
public static final int TOOLONG
public static final int BADFORMAT
public static final int NOTNULLABLE
public static final String[] validityName
public static final Pattern[] exceptionPatterns
private final int ordinal
private final String string
Constructor Detail |
---|
FarragoJdbcTest.TestSqlType(int ordinal, String example)
Method Detail |
---|
protected static boolean isBetween(Number number, long min, long max)
protected static boolean isBetween(Number number, double min, double max)
public Object getExpected(Object value)
public int checkIsValid(Object value)
public int checkIsValid(Object value, boolean strict)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |