|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.datatools.sqltools.core.DataTypeProvider
public class DataTypeProvider
Provides data types for given context
| Field Summary | |
|---|---|
static int |
ALL
|
static int |
DB_SPECIFIC_CONTEXT_BASE
|
static int |
INDEX_COLUMN
|
static java.lang.String |
LENGTH_FEATURE
|
static java.lang.String |
NAME_FEATURE
|
static int |
PARAMETER
|
static java.lang.String |
PRECISION_FEATURE
|
static int |
PREDEFINED
|
static int |
RETURN_VALUE
|
static java.lang.String |
SCALE_FEATURE
|
static int |
TABLE_COLUMN
|
static int |
UDT
|
static int |
VARIABLE
|
| Constructor Summary | |
|---|---|
DataTypeProvider()
|
|
| Method Summary | |
|---|---|
DataType[] |
getAvailableDataTypes(int context,
Schema schema,
DatabaseIdentifier databaseIdentifier)
Returns the available data types of the given context. Subclass may need to fine-tune this method, for example, for paramter context, all the large data types wont be returned by default, but this is not always the case for all databases. |
java.lang.String[] |
getAvailableDataTypesDisplayString(int context,
Schema schema,
DatabaseIdentifier databaseIdentifier)
Returns the display string of the available datatypes of the given context. |
DataType |
getDataType(java.lang.String typeString,
Schema schema,
DatabaseIdentifier databaseIdentifier)
|
DataType |
getDataType(java.lang.String typeString,
Schema schema,
int context,
DatabaseIdentifier databaseIdentifier)
Returns the data type instance given the data type string. |
java.lang.String |
getDataTypeString(DataType dataType,
boolean qualified)
Returns the data type string given the data type |
PredefinedDataTypeDefinition[] |
getPredefinedDataTypeDefinitions()
Returns the predefined data type definitions of this database |
java.lang.String[] |
getPredefinedDataTypeNames()
Returns name of predefined data types |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String LENGTH_FEATURE
public static final java.lang.String PRECISION_FEATURE
public static final java.lang.String SCALE_FEATURE
public static final java.lang.String NAME_FEATURE
public static final int ALL
public static final int PREDEFINED
public static final int UDT
public static final int TABLE_COLUMN
public static final int PARAMETER
public static final int VARIABLE
public static final int RETURN_VALUE
public static final int INDEX_COLUMN
public static final int DB_SPECIFIC_CONTEXT_BASE
| Constructor Detail |
|---|
public DataTypeProvider()
| Method Detail |
|---|
public DataType[] getAvailableDataTypes(int context,
Schema schema,
DatabaseIdentifier databaseIdentifier)
context - the context in which the data types will be usedschema - a schema object thru. which the UDT can be obtainedALL,
PREDEFINED,
UDT,
TABLE_COLUMN,
PARAMETER,
VARIABLE,
RETURN_VALUE,
INDEX_COLUMN
public java.lang.String[] getAvailableDataTypesDisplayString(int context,
Schema schema,
DatabaseIdentifier databaseIdentifier)
context - the context in which the data types will be usedschema - a schema object thru. which the UDT can be obtained
public DataType getDataType(java.lang.String typeString,
Schema schema,
DatabaseIdentifier databaseIdentifier)
public DataType getDataType(java.lang.String typeString,
Schema schema,
int context,
DatabaseIdentifier databaseIdentifier)
typeString - the string of the data typeschema -
public java.lang.String getDataTypeString(DataType dataType,
boolean qualified)
dataType - the data type object
public PredefinedDataTypeDefinition[] getPredefinedDataTypeDefinitions()
public java.lang.String[] getPredefinedDataTypeNames()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||