Package | Description |
---|---|
com.akiban.sql.compiler | |
com.akiban.sql.parser | |
com.akiban.sql.types |
Modifier and Type | Method and Description |
---|---|
protected boolean |
TypeComputer.addDominantCast(DataTypeDescriptor toType,
DataTypeDescriptor fromType) |
int |
TimestampTypeCompiler.getCastToCharWidth(DataTypeDescriptor dts) |
int |
BitTypeCompiler.getCastToCharWidth(DataTypeDescriptor dts) |
abstract int |
TypeCompiler.getCastToCharWidth(DataTypeDescriptor dtd)
Return the maximum width for this data type when cast to a char type.
|
int |
NumericTypeCompiler.getCastToCharWidth(DataTypeDescriptor dts) |
int |
CharTypeCompiler.getCastToCharWidth(DataTypeDescriptor dts) |
int |
CLOBTypeCompiler.getCastToCharWidth(DataTypeDescriptor dts) |
int |
TimeTypeCompiler.getCastToCharWidth(DataTypeDescriptor dts) |
int |
UserDefinedTypeCompiler.getCastToCharWidth(DataTypeDescriptor dts) |
int |
XMLTypeCompiler.getCastToCharWidth(DataTypeDescriptor dts) |
int |
RefTypeCompiler.getCastToCharWidth(DataTypeDescriptor dts) |
int |
BooleanTypeCompiler.getCastToCharWidth(DataTypeDescriptor dts) |
int |
IntervalTypeCompiler.getCastToCharWidth(DataTypeDescriptor dtd) |
int |
LOBTypeCompiler.getCastToCharWidth(DataTypeDescriptor dts) |
int |
DateTypeCompiler.getCastToCharWidth(DataTypeDescriptor dts) |
DataTypeDescriptor |
TimestampTypeCompiler.resolveArithmeticOperation(DataTypeDescriptor leftType,
DataTypeDescriptor rightType,
java.lang.String operator) |
DataTypeDescriptor |
TypeCompiler.resolveArithmeticOperation(DataTypeDescriptor leftType,
DataTypeDescriptor rightType,
java.lang.String operator)
Type resolution methods on binary operators
|
DataTypeDescriptor |
NumericTypeCompiler.resolveArithmeticOperation(DataTypeDescriptor leftType,
DataTypeDescriptor rightType,
java.lang.String operator) |
DataTypeDescriptor |
TimeTypeCompiler.resolveArithmeticOperation(DataTypeDescriptor leftType,
DataTypeDescriptor rightType,
java.lang.String operator) |
DataTypeDescriptor |
IntervalTypeCompiler.resolveArithmeticOperation(DataTypeDescriptor leftType,
DataTypeDescriptor rightType,
java.lang.String operator) |
DataTypeDescriptor |
DateTypeCompiler.resolveArithmeticOperation(DataTypeDescriptor leftType,
DataTypeDescriptor rightType,
java.lang.String operator) |
Modifier and Type | Method and Description |
---|---|
DataTypeDescriptor |
ColumnDefinitionNode.getType()
Returns the data type of the column being defined.
|
DataTypeDescriptor |
VirtualColumnNode.getType()
Get the DataTypeDesciptor from this Node.
|
DataTypeDescriptor |
SQLToJavaValueNode.getType()
Override behavior in superclass.
|
DataTypeDescriptor |
JavaValueNode.getType()
Get the resolved data type of this node.
|
DataTypeDescriptor |
ValueNode.getType()
Get the DataTypeDescriptor from this ValueNode.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
QueryTreeNode.convertDefaultNode(DataTypeDescriptor typeDescriptor)
Translate a Default node into a default value, given a type descriptor.
|
ConstantNode |
QueryTreeNode.getNullNode(DataTypeDescriptor type)
Get a ConstantNode to represent a typed null value.
|
void |
ColumnDefinitionNode.setType(DataTypeDescriptor dts)
Set the type of this column
|
void |
VirtualColumnNode.setType(DataTypeDescriptor dtd) |
void |
ValueNode.setType(DataTypeDescriptor type)
Set the DataTypeDescriptor for this ValueNode.
|
Modifier and Type | Field and Description |
---|---|
static DataTypeDescriptor |
DataTypeDescriptor.INTEGER
Runtime INTEGER type that is nullable.
|
static DataTypeDescriptor |
DataTypeDescriptor.INTEGER_NOT_NULL
Runtime INTEGER type that is not nullable.
|
static DataTypeDescriptor |
DataTypeDescriptor.MEDIUMINT |
static DataTypeDescriptor |
DataTypeDescriptor.MEDIUMINT_NOT_NULL |
static DataTypeDescriptor |
DataTypeDescriptor.SMALLINT
Runtime SMALLINT type that is nullable.
|
static DataTypeDescriptor |
DataTypeDescriptor.SMALLINT_NOT_NULL
Runtime INTEGER type that is not nullable.
|
Modifier and Type | Method and Description |
---|---|
static DataTypeDescriptor |
DataTypeDescriptor.getBuiltInDataTypeDescriptor(int jdbcType)
Get a descriptor that corresponds to a nullable builtin JDBC type.
|
static DataTypeDescriptor |
DataTypeDescriptor.getBuiltInDataTypeDescriptor(int jdbcType,
boolean isNullable)
Get a descriptor that corresponds to a builtin JDBC type.
|
static DataTypeDescriptor |
DataTypeDescriptor.getBuiltInDataTypeDescriptor(int jdbcType,
boolean isNullable,
int maxLength)
Get a descriptor that corresponds to a builtin JDBC type.
|
static DataTypeDescriptor |
DataTypeDescriptor.getBuiltInDataTypeDescriptor(int jdbcType,
int length)
Get a descriptor that corresponds to a nullable builtin variable
length JDBC type.
|
static DataTypeDescriptor |
DataTypeDescriptor.getBuiltInDataTypeDescriptor(java.lang.String sqlTypeName)
Get a DataTypeDescriptor that corresponds to a nullable builtin SQL type.
|
static DataTypeDescriptor |
DataTypeDescriptor.getBuiltInDataTypeDescriptor(java.lang.String sqlTypeName,
int length)
Get a DataTypeDescriptor that corresponds to a builtin SQL type
Collation type will be UCS_BASIC and derivation IMPLICIT.
|
DataTypeDescriptor[] |
TypeId.RowMultiSetTypeId.getColumnTypes() |
DataTypeDescriptor |
DataTypeDescriptor.getDominantType(DataTypeDescriptor otherDTS)
Get the dominant type (DataTypeDescriptor) of the 2.
|
DataTypeDescriptor |
DataTypeDescriptor.getNullabilityType(boolean isNullable)
Return a type descriptor identical to the this type
with the exception of its nullability.
|
DataTypeDescriptor[] |
RoutineAliasInfo.getParameterTypes()
Types of the parameters.
|
DataTypeDescriptor |
RoutineAliasInfo.getReturnType() |
static DataTypeDescriptor |
DataTypeDescriptor.getRowMultiSet(java.lang.String[] columnNames,
DataTypeDescriptor[] columnTypes)
Get a catalog type that corresponds to a SQL Row Multiset
|
static DataTypeDescriptor |
DataTypeDescriptor.getSQLDataTypeDescriptor(java.lang.String javaTypeName)
Get a DataTypeDescriptor that corresponds to a Java type
|
static DataTypeDescriptor |
DataTypeDescriptor.getSQLDataTypeDescriptor(java.lang.String javaTypeName,
boolean isNullable)
Get a DataTypeDescriptor that corresponds to a Java type
|
static DataTypeDescriptor |
DataTypeDescriptor.getSQLDataTypeDescriptor(java.lang.String javaTypeName,
int precision,
int scale,
boolean isNullable,
int maximumWidth)
Get a DataTypeDescriptor that corresponds to a Java type
|
DataTypeDescriptor |
JSQLType.getSQLType()
What's our SQLTYPE?
|
DataTypeDescriptor |
DataTypeDescriptor.getUnsigned() |
Modifier and Type | Method and Description |
---|---|
boolean |
DataTypeDescriptor.comparable(DataTypeDescriptor compareWithDTD,
boolean forEquals)
Check if this type is comparable with the passed type.
|
DataTypeDescriptor |
DataTypeDescriptor.getDominantType(DataTypeDescriptor otherDTS)
Get the dominant type (DataTypeDescriptor) of the 2.
|
int |
TypeId.getPrecision(DataTypeDescriptor leftType,
DataTypeDescriptor rightType)
Get the precision of the merge of two Decimals
|
static TypeId |
TypeId.getRowMultiSet(java.lang.String[] columnNames,
DataTypeDescriptor[] columnTypes) |
static DataTypeDescriptor |
DataTypeDescriptor.getRowMultiSet(java.lang.String[] columnNames,
DataTypeDescriptor[] columnTypes)
Get a catalog type that corresponds to a SQL Row Multiset
|
int |
TypeId.getScale(DataTypeDescriptor leftType,
DataTypeDescriptor rightType)
Get the scale of the merge of two decimals
|
java.lang.String |
TypeId.toParsableString(DataTypeDescriptor dts)
Converts this TypeId, given a data type descriptor (including length/precision),
to a string.
|
Constructor and Description |
---|
DataTypeDescriptor(DataTypeDescriptor source,
CharacterTypeAttributes characterAttributes) |
JSQLType(DataTypeDescriptor sqlType)
Create a JSQLType from a SQL type.
|
RoutineAliasInfo(java.lang.String methodName,
int parameterCount,
java.lang.String[] parameterNames,
DataTypeDescriptor[] parameterTypes,
int[] parameterModes,
int dynamicResultSets,
java.lang.String language,
java.lang.String parameterStyle,
RoutineAliasInfo.SQLAllowed sqlAllowed,
boolean deterministic,
boolean definersRights,
boolean calledOnNullInput,
DataTypeDescriptor returnType)
Create a RoutineAliasInfo for a PROCEDURE or FUNCTION
|
RoutineAliasInfo(java.lang.String methodName,
int parameterCount,
java.lang.String[] parameterNames,
DataTypeDescriptor[] parameterTypes,
int[] parameterModes,
int dynamicResultSets,
java.lang.String language,
java.lang.String parameterStyle,
RoutineAliasInfo.SQLAllowed sqlAllowed,
boolean deterministic,
boolean definersRights,
boolean calledOnNullInput,
DataTypeDescriptor returnType)
Create a RoutineAliasInfo for a PROCEDURE or FUNCTION
|
TypeId.RowMultiSetTypeId(java.lang.String[] columnNames,
DataTypeDescriptor[] columnTypes) |
Copyright © 2013. All Rights Reserved.