|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.jdeveloper.cm.ds.db.DataType
A database data type.
Field Summary | |
static int |
BINARY_TYPE Category for DataTypes representing binary data. |
static int |
CHARACTER_TYPE Category for DataTypes representing character data. |
static int |
DATETIME_TYPE Category for DataTypes representing date and/or time data. |
static int |
LOB_TYPE Category for DataTypes representing Large Objects (LOBs). |
static int |
NUMERIC_TYPE Category for DataTypes representing numeric data. |
static int |
ROWID_TYPE Category for DataTypes representing a rowid. |
static int |
USER_TYPE Category for DataTypes representing a user-defined type. |
Method Summary | |
static DataType |
createBinaryType(java.lang.String typeName, long maxSize) Creates a new DataType representing binary data. |
static DataType |
createBinaryType(java.lang.String typeName, long maxSize, boolean sizeSupported, boolean needSize) Creates a new DataType representing binary data. |
static DataType |
createCharacterDataType(java.lang.String typeName, long maxSize) Creates a new DataType representing character data. |
static DataType |
createCharacterDataType(java.lang.String typeName, long maxSize, boolean sizeSupported, boolean needSize) Creates a new DataType representing character data. |
static DataType |
createDatetimeType(java.lang.String typeName) Creates a new DataType representing date/time data. |
static DataType |
createDatetimeType(java.lang.String typeName, long maxSize) Creates a new DataType representing date/time data. |
static DataType |
createLOBType(java.lang.String typeName, long maxSize) Creates a new DataType representing LOB data. |
static DataType |
createNumericType(java.lang.String typeName, long maxPrecision, boolean needPrecision, long minScale, long maxScale) Creates a new DataType representing numeric data. |
static DataType |
createRowidType(java.lang.String typeName, long maxSize) Creates a new DataType representing rowid data. |
static DataType |
createUserType(java.lang.String typeName) Creates a new DataType representing a user-defined type. |
static DataType |
createUserType(java.lang.String typeName, boolean allowPrec, boolean precisionRequired, boolean allowScale, long maxPrecision, long minScale, long maxScale) Creates a new DataType representing a user-defined type. |
boolean |
equals(java.lang.Object target) |
protected boolean |
equalsImpl(DataType target) |
long |
getMaxPrecision() Retrieves the maximum allowable precision or size for this datatype. |
long |
getMaxScale() Retrieves the maximum scale allowed by this datatype. |
long |
getMinScale() Retrieves the minimum scale allowed by this datatype. |
java.lang.String |
getName() Retrieves the name of the datatype. |
int |
getTypeCategory() Retrieves the category of this datatype. |
boolean |
isAllowPrecision() Whether this datatype allows the precision or size to be specified. |
boolean |
isAllowScale() Whether this datatype allows the scale to be specified. |
boolean |
isPrecisionRequired() Whether this datatype needs the precision or size to be specified. |
java.lang.String |
toString() |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int CHARACTER_TYPE
getTypeCategory
, Constant Field Valuespublic static final int NUMERIC_TYPE
getTypeCategory
, Constant Field Valuespublic static final int BINARY_TYPE
getTypeCategory
, Constant Field Valuespublic static final int DATETIME_TYPE
getTypeCategory
, Constant Field Valuespublic static final int ROWID_TYPE
getTypeCategory
, Constant Field Valuespublic static final int LOB_TYPE
getTypeCategory
, Constant Field Valuespublic static final int USER_TYPE
getTypeCategory
, Constant Field ValuesMethod Detail |
public static DataType createCharacterDataType(java.lang.String typeName, long maxSize, boolean sizeSupported, boolean needSize)
typeName
- the name of the datatypemaxSize
- the maximum size allowed for a column of this type. If sizeSupported is false
, then the maximum size only applies to the data in the column; otherwise, it also applies to the maximum size allowed when creating a column.sizeSupported
- whether size can be specified when declaring a column using this typeneedSize
- whether size must be specified when declaring a column using this typepublic static DataType createCharacterDataType(java.lang.String typeName, long maxSize)
typeName
- the name of the datatypemaxSize
- the maximum size allowed for data in column of this typepublic static DataType createNumericType(java.lang.String typeName, long maxPrecision, boolean needPrecision, long minScale, long maxScale)
typeName
- the name of the datatypemaxPrecision
- the maximum precision allowed for a column of this type. If maxPrecision == 0
, then the type does not allow the specification of a precision.needPrecision
- whether precision must be specified when declaring a column using this typeminScale
- the minimum scale for this numeric typemaxScale
- the maximum scale for this numeric type. If minScale >= maxScale
, scale is not supported.public static DataType createBinaryType(java.lang.String typeName, long maxSize, boolean sizeSupported, boolean needSize)
typeName
- the name of the datatypemaxSize
- the maximum size allowed for a column of this type. If sizeSupported is false
, then the maximum size only applies to the data in the column; otherwise, it also applies to the maximum size allowed when creating a column.sizeSupported
- whether size can be specified when declaring a column using this typeneedSize
- whether size must be specified when declaring a column using this typepublic static DataType createBinaryType(java.lang.String typeName, long maxSize)
typeName
- the name of the datatypemaxSize
- the maximum size allowed for data in a column of this typepublic static DataType createDatetimeType(java.lang.String typeName)
typeName
- the name of the datatypepublic static DataType createDatetimeType(java.lang.String typeName, long maxSize)
typeName
- the name of the datatypemaxSize
- the maximum size allowed for a column of this typepublic static DataType createRowidType(java.lang.String typeName, long maxSize)
typeName
- the name of the datatypemaxSize
- the maximum size allowed for a column of this type. If maxSize > 0
, the datatype can have a size specified, but it is not required.public static DataType createLOBType(java.lang.String typeName, long maxSize)
typeName
- the name of the datatypemaxSize
- the maximum size allowed for a column of this typepublic static DataType createUserType(java.lang.String typeName)
typeName
- the name of the datatypepublic static DataType createUserType(java.lang.String typeName, boolean allowPrec, boolean precisionRequired, boolean allowScale, long maxPrecision, long minScale, long maxScale)
typeName
- the name of the datatypeallowPrec
- a boolean indicating whether the type allows precision to be specifiedprecisionRequired
- a boolean indicating whether the type needs precision and scale to be specifiedallowScale
- a boolean indicating whether the type allows scale to be specifiedmaxPrecision
- a long indicating the maximum allowable precision or size.minScale
- a long indicating the minimum allowable scale.maxScale
- a long indicating the maximum allowable scale.public boolean equals(java.lang.Object target)
protected boolean equalsImpl(DataType target)
public final java.lang.String getName()
public final boolean isAllowPrecision()
public final boolean isPrecisionRequired()
public final boolean isAllowScale()
public final long getMaxPrecision()
public final long getMinScale()
0
. For character, date, and binary types, the scale is not applicable. The minimum scale is the smallest value allowed with declarations of this type.public final long getMaxScale()
0
. For character, date, and binary types, the scale is not applicable. The maximum scale is the largest value allowed with declarations of this type.public int getTypeCategory()
public java.lang.String toString()
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.