| Modifier and Type | Field and Description |
|---|---|
| pack-priv static CharacterType[] | |
| pack-priv final Charset | |
| pack-priv final Collation | |
| pack-priv static final int | |
| pack-priv static final int | |
| private static final int | |
| public static final long | |
| pack-priv final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | |
| public int | canMoveFrom(Type otherType)
Overrides org. When canConvertFrom() is true, can convert without changing the object |
| public Object | |
| public Object | castToType(SessionInterface session, Object a, Type otherType)
Overrides org. Explicit casts are handled by this method. |
| public int | |
| public int | |
| public Object | |
| public Object | convertJavaToSQL(SessionInterface session, Object a)
Overrides org.
|
| public Object | convertToDefaultType(SessionInterface session, Object a)
Implements abstract org. Relaxes SQL parameter type enforcement, allowing long strings. |
| public void | |
| public String | |
| public String | |
| public Object | convertToType(SessionInterface session, Object a, Type otherType)
Implements abstract org. Same as castToType except for CHARACTER values. |
| public Object | convertToTypeJDBC(SessionInterface session, Object a, Type otherType)
Overrides org. Convert type for JDBC reads. |
| public Object | convertToTypeLimits(SessionInterface session, Object a)
Implements abstract org.
|
| public int | |
| public boolean | |
| public Type | getAggregateType(Type other)
Implements abstract org. Common type used in comparison operations. |
| public Charset | |
| public Type | |
| public static CharacterType | |
| public static CharacterType | |
| public Collation | |
| public Type | getCombinedType(Session session, Type other, int operation)
Implements abstract org. For concatenation |
| public String | getDefinition()
Implements abstract org. Returns the full definition of the type, including parameters |
| public String | |
| public Class | |
| public String | getJDBCClassName()
Implements abstract org. Returns the JDBC class name of type, if it exists, otherwise the HSQLDB class name. |
| public int | getJDBCTypeCode()
Implements abstract org. Returns the JDBC type number of type, if it exists, otherwise the HSQLDB / SQL type. |
| public long | |
| public String | getNameString()
Implements abstract org. Returns the name of the type |
| private String | |
| public static int | |
| public int | getSQLGenericTypeCode()
Overrides org. Returns the generic SQL CLI type number of type, if it exists, otherwise the HSQLDB type. |
| public boolean | |
| public Object | |
| public Boolean | |
| public Object | overlay(SessionInterface session, Object data, Object overlay, long offset, long length, boolean hasLength)
|
| public static String | |
| public long | |
| public int | |
| public boolean | |
| public long | |
| public Object | substring(SessionInterface session, Object data, long offset, long length, boolean hasLength, boolean trailing)
|
| public static LongPair | substringParams(long dataLength, long start, long length, boolean hasLength)
length must not be negative |
| public Object | |
| public Object |
| charArray | back to summary |
|---|---|
| pack-priv static CharacterType[] charArray | |
| charset | back to summary |
|---|---|
| pack-priv final Charset charset | |
| collation | back to summary |
|---|---|
| pack-priv final Collation collation | |
| defaultCharPrecision | back to summary |
|---|---|
| pack-priv static final int defaultCharPrecision | |
| defaultVarcharPrecision | back to summary |
|---|---|
| pack-priv static final int defaultVarcharPrecision | |
| fixedTypesLength | back to summary |
|---|---|
| private static final int fixedTypesLength | |
| maxCharPrecision | back to summary |
|---|---|
| public static final long maxCharPrecision | |
| nameString | back to summary |
|---|---|
| pack-priv final String nameString | |
| CharacterType | back to summary |
|---|---|
| public CharacterType(Collation collation, int type, long precision) | |
| CharacterType | back to summary |
|---|---|
| public CharacterType(int type, long precision) Always ASCII collation | |
| CharacterType | back to summary |
|---|---|
| public CharacterType(String name, long precision) | |
| acceptsPrecision | back to summary |
|---|---|
| public boolean acceptsPrecision() Overrides org. | |
| canConvertFrom | back to summary |
|---|---|
| public boolean canConvertFrom(Type otherType) Implements abstract org. | |
| canMoveFrom | back to summary |
|---|---|
| public int canMoveFrom(Type otherType) Overrides org. Doc from org. When canConvertFrom() is true, can convert without changing the object | |
| castOrConvertToType | back to summary |
|---|---|
| public Object castOrConvertToType(SessionInterface session, Object a, Type otherType, boolean cast) | |
| castToType | back to summary |
|---|---|
| public Object castToType(SessionInterface session, Object a, Type otherType) Overrides org. Doc from org. Explicit casts are handled by this method. SQL standard 6.12 rules for enforcement of size, precision and scale are implemented. For CHARACTER values, it performs truncation in all cases of long strings. | |
| compare | back to summary |
|---|---|
| public int compare(Session session, Object a, Object b) Implements abstract org. | |
| compare | back to summary |
|---|---|
| public int compare(Session session, Object a, Object b, int opType) Overrides org. | |
| concat | back to summary |
|---|---|
| public Object concat(Session session, Object a, Object b) Overrides org. | |
| convertJavaToSQL | back to summary |
|---|---|
| public Object convertJavaToSQL(SessionInterface session, Object a) Overrides org. | |
| convertToDefaultType | back to summary |
|---|---|
| public Object convertToDefaultType(SessionInterface session, Object a) Implements abstract org. Relaxes SQL parameter type enforcement, allowing long strings. | |
| convertToJSON | back to summary |
|---|---|
| public void convertToJSON(Object a, StringBuilder sb) Overrides org. | |
| convertToSQLString | back to summary |
|---|---|
| public String convertToSQLString(Object a) Implements abstract org. | |
| convertToString | back to summary |
|---|---|
| public String convertToString(Object a) Implements abstract org. | |
| convertToType | back to summary |
|---|---|
| public Object convertToType(SessionInterface session, Object a, Type otherType) Implements abstract org. Doc from org. Same as castToType except for CHARACTER values. Perform string truncation of trailing spaces only. For other long strings, it raises an exception. | |
| convertToTypeJDBC | back to summary |
|---|---|
| public Object convertToTypeJDBC(SessionInterface session, Object a, Type otherType) Overrides org. Doc from org. Convert type for JDBC reads. Same as convertToType, but supports non-standard SQL conversions supported by JDBC | |
| convertToTypeLimits | back to summary |
|---|---|
| public Object convertToTypeLimits(SessionInterface session, Object a) Implements abstract org. | |
| displaySize | back to summary |
|---|---|
| public int displaySize() Implements abstract org. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides org. can add collation and charset equality | |
| getAggregateType | back to summary |
|---|---|
| public Type getAggregateType(Type other) Implements abstract org. Doc from org. Common type used in comparison operations. other must be comparable with this. | |
| getCharacterSet | back to summary |
|---|---|
| public Charset getCharacterSet() Overrides org. | |
| getCharacterType | back to summary |
|---|---|
| public Type getCharacterType(long length) | |
| getCharacterType | back to summary |
|---|---|
| public static CharacterType getCharacterType(int type, long length) | |
| getCharacterType | back to summary |
|---|---|
| public static CharacterType getCharacterType(int type, long length, Collation collation) | |
| getCollation | back to summary |
|---|---|
| public Collation getCollation() Overrides org. | |
| getCombinedType | back to summary |
|---|---|
| public Type getCombinedType(Session session, Type other, int operation) Implements abstract org. For concatenation | |
| getDefinition | back to summary |
|---|---|
| public String getDefinition() Implements abstract org. Doc from org. Returns the full definition of the type, including parameters | |
| getFullNameString | back to summary |
|---|---|
| public String getFullNameString() Overrides org. Doc from org. Returns the name of the type | |
| getJDBCClass | back to summary |
|---|---|
| public Class Implements abstract org. | |
| getJDBCClassName | back to summary |
|---|---|
| public String getJDBCClassName() Implements abstract org. Doc from org. Returns the JDBC class name of type, if it exists, otherwise the HSQLDB class name. | |
| getJDBCTypeCode | back to summary |
|---|---|
| public int getJDBCTypeCode() Implements abstract org. Doc from org. Returns the JDBC type number of type, if it exists, otherwise the HSQLDB / SQL type. | |
| getMaxPrecision | back to summary |
|---|---|
| public long getMaxPrecision() Overrides org. | |
| getNameString | back to summary |
|---|---|
| public String getNameString() Implements abstract org. Doc from org. Returns the name of the type | |
| getNameStringPrivate | back to summary |
|---|---|
| private String getNameStringPrivate() | |
| getRightTrimSize | back to summary |
|---|---|
| public static int getRightTrimSize(String s, char trim) | |
| getSQLGenericTypeCode | back to summary |
|---|---|
| public int getSQLGenericTypeCode() Overrides org. Doc from org. Returns the generic SQL CLI type number of type, if it exists, otherwise the HSQLDB type. The generic type is returned for DATETIME and INTERVAL types. | |
| isCharacterType | back to summary |
|---|---|
| public boolean isCharacterType() Overrides org. | |
| lower | back to summary |
|---|---|
| public Object lower(Session session, Object data) | |
| match | back to summary |
|---|---|
| public Boolean match(Session session, String string, String[] array) Matches the string against array containing part strings. Null element in array indicates skip one character. Empty string in array indicates skip any number of characters. | |
| overlay | back to summary |
|---|---|
| public Object overlay(SessionInterface session, Object data, Object overlay, long offset, long length, boolean hasLength) | |
| padString | back to summary |
|---|---|
| public static String padString(String s, int length) | |
| position | back to summary |
|---|---|
| public long position(SessionInterface session, Object data, Object otherData, Type otherType, long offset) | |
| precedenceDegree | back to summary |
|---|---|
| public int precedenceDegree(Type other) Overrides org. | |
| requiresPrecision | back to summary |
|---|---|
| public boolean requiresPrecision() Overrides org. | |
| size | back to summary |
|---|---|
| public long size(SessionInterface session, Object data) | |
| substring | back to summary |
|---|---|
| public Object substring(SessionInterface session, Object data, long offset, long length, boolean hasLength, boolean trailing) | |
| substringParams | back to summary |
|---|---|
| public static LongPair substringParams(long dataLength, long start, long length, boolean hasLength) length must not be negative | |
| trim | back to summary |
|---|---|
| public Object trim(SessionInterface session, Object data, char trim, boolean leading, boolean trailing) | |
| upper | back to summary |
|---|---|
| public Object upper(Session session, Object data) Memory limits apply to Upper and Lower implementations with Clob data | |