|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.iapi.types.DataTypeUtilities
public abstract class DataTypeUtilities
A set of static utility methods for data types.
| Constructor Summary | |
|---|---|
DataTypeUtilities()
|
|
| Method Summary | |
|---|---|
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. |
static int |
getColumnDisplaySize(DataTypeDescriptor dtd)
Gets the display width of a column of a given type. |
static int |
getColumnDisplaySize(int typeId,
int storageLength)
|
static int |
getDigitPrecision(DataTypeDescriptor dtd)
Get the precision of the datatype, in decimal digits This is used by EmbedResultSetMetaData. |
static int |
getPrecision(DataTypeDescriptor dtd)
Get the precision of the datatype. |
static boolean |
isCaseSensitive(DataTypeDescriptor dtd)
Is the data type case sensitive. |
static boolean |
isCurrency(DataTypeDescriptor dtd)
Is the data type currency. |
static int |
isNullable(DataTypeDescriptor dtd)
Is the data type nullable. |
static boolean |
isSigned(DataTypeDescriptor dtd)
Is the data type signed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataTypeUtilities()
| Method Detail |
|---|
public static int getPrecision(DataTypeDescriptor dtd)
dtd - data type descriptorpublic static int getDigitPrecision(DataTypeDescriptor dtd)
dtd - data type descriptorpublic static boolean isCurrency(DataTypeDescriptor dtd)
dtd - data type descriptorpublic static boolean isCaseSensitive(DataTypeDescriptor dtd)
dtd - data type descriptorpublic static int isNullable(DataTypeDescriptor dtd)
dtd - data type descriptorpublic static boolean isSigned(DataTypeDescriptor dtd)
dtd - data type descriptorpublic static int getColumnDisplaySize(DataTypeDescriptor dtd)
dtd - data type descriptor
public static int getColumnDisplaySize(int typeId,
int storageLength)
public static int computeMaxWidth(int precision,
int scale)
precision - The precision (number of digits) of the data value.scale - The number of fractional digits (digits to the right of the decimal point).
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||