| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Timestamp | |
| public static int | Returns: The maximum number of chracters needed to display the value.The precision (number of digits) of the data value. precision, int The number of fractional digits (digits to the right of the decimal point). scale)Compute the maximum width (column display width) of a decimal or numeric data value, given its precision and scale. |
| public static int | Returns: associated column display widthdata type descriptor dtd)Gets the display width of a column of a given type. |
| public static int | |
| public static int | getDigitPrecision(DataTypeDescriptor
data type descriptor dtd)Get the precision of the datatype, in decimal digits This is used by EmbedResultSetMetaData. |
| public static int | |
| public static boolean | |
| public static int | |
| public static boolean |
| DataTypeUtilities | back to summary |
|---|---|
| public DataTypeUtilities() | |
| clone | back to summary |
|---|---|
| public static Timestamp clone(Timestamp original) Clone a Timestamp because they are mutable | |
| computeMaxWidth | back to summary |
|---|---|
| public static int computeMaxWidth(int precision, int scale) Compute the maximum width (column display width) of a decimal or numeric data value, given its precision and scale.
| |
| getColumnDisplaySize | back to summary |
|---|---|
| public static int getColumnDisplaySize(DataTypeDescriptor dtd) Gets the display width of a column of a given type.
| |
| getColumnDisplaySize | back to summary |
|---|---|
| public static int getColumnDisplaySize(int typeId, int storageLength) | |
| getDigitPrecision | back to summary |
|---|---|
| public static int getDigitPrecision(DataTypeDescriptor dtd) Get the precision of the datatype, in decimal digits This is used by EmbedResultSetMetaData.
| |
| getPrecision | back to summary |
|---|---|
| public static int getPrecision(DataTypeDescriptor dtd) Get the precision of the datatype.
| |
| isCaseSensitive | back to summary |
|---|---|
| public static boolean isCaseSensitive(DataTypeDescriptor dtd) Is the data type case sensitive.
| |
| isNullable | back to summary |
|---|---|
| public static int isNullable(DataTypeDescriptor dtd) Is the data type nullable.
| |
| isSigned | back to summary |
|---|---|
| public static boolean isSigned(DataTypeDescriptor dtd) Is the data type signed.
| |