Package org.assertj.db.type
Enum ValueType
- All Implemented Interfaces:
Serializable,Comparable<ValueType>
Enumeration of the different type of value that are in the database.
- Author:
- Régis Pouiller, Otoniel Isidoro
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBoolean type.Bytes type.Date type.Date/time type (TIMESTAMP column).Not identified type : null value for example.Number type (INT, SMALLINT, TINYINT, BIGINT, REAL or DECIMAL column).Text type (CHAR or VARCHAR column).Time type.UUID type. -
Method Summary
Modifier and TypeMethodDescriptionstatic ValueType[]getPossibleTypesForComparison(Object expected) Returns the types which are possible for the actual value (data) for the comparison with an expected value.static ValueTypeReturns the enum constant of this type with the specified name.static ValueType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BYTES
Bytes type. -
BOOLEAN
Boolean type. -
TEXT
Text type (CHAR or VARCHAR column). -
DATE
Date type. -
TIME
Time type. -
DATE_TIME
Date/time type (TIMESTAMP column). -
NUMBER
Number type (INT, SMALLINT, TINYINT, BIGINT, REAL or DECIMAL column). -
UUID
UUID type. -
NOT_IDENTIFIED
Not identified type : null value for example.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getPossibleTypesForComparison
Returns the types which are possible for the actual value (data) for the comparison with an expected value.- Parameters:
expected- The expected value- Returns:
- The possible types of the actual value
-