Interface SQLValueIF
- All Known Implementing Classes:
SQLColumns,SQLFunction,SQLNull,SQLParameter,SQLPrimitive,SQLTuple,SQLValueReference,SQLVerbatim
public interface SQLValueIF
INTERNAL: Represents a SQL value.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intINTERNAL: Constant referring to theSQLColumnsclass.static final intINTERNAL: Constant referring to theSQLFunctionclass.static final intINTERNAL: Constant referring to theSQLNullclass.static final intINTERNAL: Constant referring to theSQLParameterclass.static final intINTERNAL: Constant referring to theSQLPrimitiveclass.static final intINTERNAL: Constant referring to theSQLTupleclass.static final intINTERNAL: Constant referring to theSQLVerbatimclass. -
Method Summary
Modifier and TypeMethodDescriptiongetAlias()INTERNAL: The column alias to use if this value is included in the projection.intgetArity()INTERNAL: Returns the [column] arity of the value.INTERNAL: Returns the field handler for the columns.INTERNAL: Returns the referenced value if one exists.intgetType()INTERNAL: Returns the value class type.intINTERNAL: Returns the value arity of the value.INTERNAL: Returns the value type.booleanINTERNAL: Returns true if this value is a reference to another.voidINTERNAL: Sets the column alias.voidsetFieldHandler(FieldHandlerIF fhandler) INTERNAL: Sets the field handler for the value.voidsetValueType(Class vtype) INTERNAL: Sets the value type.
-
Field Details
-
NULL
static final int NULLINTERNAL: Constant referring to theSQLNullclass.- See Also:
-
TUPLE
static final int TUPLEINTERNAL: Constant referring to theSQLTupleclass.- See Also:
-
COLUMNS
static final int COLUMNSINTERNAL: Constant referring to theSQLColumnsclass.- See Also:
-
PRIMITIVE
static final int PRIMITIVEINTERNAL: Constant referring to theSQLPrimitiveclass.- See Also:
-
PARAMETER
static final int PARAMETERINTERNAL: Constant referring to theSQLParameterclass.- See Also:
-
VERBATIM
static final int VERBATIMINTERNAL: Constant referring to theSQLVerbatimclass.- See Also:
-
FUNCTION
static final int FUNCTIONINTERNAL: Constant referring to theSQLFunctionclass.- See Also:
-
-
Method Details
-
getType
int getType()INTERNAL: Returns the value class type. The type is represented by one of the constants in theSQLValueIFinterface. -
getArity
int getArity()INTERNAL: Returns the [column] arity of the value. The number represents the number of "columns" the value spans, i.e. its composite width. -
getValueArity
int getValueArity()INTERNAL: Returns the value arity of the value. This number refers to the number of nested values this value contains including itself. Most values therefore have a value arity of 1. Nested values may have an arity higher than 1. SQLTuple is currently the only nested value type. -
getAlias
String getAlias()INTERNAL: The column alias to use if this value is included in the projection. The SQL select syntax is typically like "select value asfrom foo". -
setAlias
INTERNAL: Sets the column alias. -
isReference
boolean isReference()INTERNAL: Returns true if this value is a reference to another. -
getReference
SQLValueIF getReference()INTERNAL: Returns the referenced value if one exists. -
getValueType
Class getValueType()INTERNAL: Returns the value type. -
setValueType
INTERNAL: Sets the value type. -
getFieldHandler
FieldHandlerIF getFieldHandler()INTERNAL: Returns the field handler for the columns. -
setFieldHandler
INTERNAL: Sets the field handler for the value.
-