![]() |
Java SDK Documentation
8.1
|
Represents types of data that are passed into and returned back from user's code. More...
Public Member Functions | |
int | getIntervalPrecision () |
For INTERVAL data types, returns the precision. | |
int | getIntervalRange () |
For INTERVAL data types, returns the range. | |
int | getMaxSize () |
Returns the maximum size, in bytes, of a data element of this type. | |
int | getNumericFractional () |
int | getNumericIntegral () |
int | getNumericLength () |
For NUMERIC data types, returns the number of bytes required to store an element. Calling this with a non-numeric data type can cause a crash. | |
int | getNumericPrecision () |
int | getNumericScale () |
int | getNumericWordCount () |
String | getPrettyPrintStr () |
int | getStringLength () |
For VARCHAR/CHAR/VARBINARY/BINARY data types, returns the length of the string. | |
int | getTimestampPrecision () |
For TIMESTAMP data types, returns the precision. | |
boolean | isBinary () |
Returns true if this type is BINARY, false otherwise. | |
boolean | isBool () |
Returns true if this type is BOOLEAN, false otherwise. | |
boolean | isChar () |
Returns true if this type is CHAR, false otherwise. | |
boolean | isDate () |
Returns true if this type is DATE, false otherwise. | |
boolean | isFloat () |
Returns true if this type is FLOAT, false otherwise. | |
boolean | isInt () |
Returns true if this type is INTEGER, false otherwise. | |
boolean | isLongVarbinary () |
Returns true if this type is LONGVARBINARY, false otherwise. | |
boolean | isLongVarchar () |
Returns true if this type is LONGVARCHAR, false otherwise. | |
boolean | isNumeric () |
Returns true if this type is NUMERIC, false otherwise. | |
boolean | isStringType () |
Return true for VARCHAR/CHAR/VARBINARY/BINARY data types. | |
boolean | isTimestamp () |
Returns true if this type is TIMESTAMP, false otherwise. | |
boolean | isVarbinary () |
Returns true if this type is VARBINARY, false otherwise. | |
boolean | isVarchar () |
Returns true if this type is VARCHAR, false otherwise. | |
void | setIntervalPrecision (int precision) |
For INTERVAL data types, sets the precision. | |
void | setIntervalRange (int range) |
For INTERVAL data types, sets the range. | |
void | setNumericPrecision (int precision) |
For NUMERIC data types, sets the precision. | |
void | setNumericScale (int scale) |
For NUMERIC data types, sets the scale. | |
void | setTimestampPrecision (int precision) |
For TIMESTAMP data types, sets the precision. | |
String | toString () |
Represents types of data that are passed into and returned back from user's code.