Interface SQLValueIF
-
- All Known Implementing Classes:
SQLColumns,SQLFunction,SQLNull,SQLParameter,SQLPrimitive,SQLTuple,SQLValueReference,SQLVerbatim
public interface SQLValueIFINTERNAL: Represents a SQL value.
-
-
Field Summary
Fields Modifier and Type Field Description static intCOLUMNSINTERNAL: Constant referring to theSQLColumnsclass.static intFUNCTIONINTERNAL: Constant referring to theSQLFunctionclass.static intNULLINTERNAL: Constant referring to theSQLNullclass.static intPARAMETERINTERNAL: Constant referring to theSQLParameterclass.static intPRIMITIVEINTERNAL: Constant referring to theSQLPrimitiveclass.static intTUPLEINTERNAL: Constant referring to theSQLTupleclass.static intVERBATIMINTERNAL: Constant referring to theSQLVerbatimclass.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetAlias()INTERNAL: The column alias to use if this value is included in the projection.intgetArity()INTERNAL: Returns the [column] arity of the value.FieldHandlerIFgetFieldHandler()INTERNAL: Returns the field handler for the columns.SQLValueIFgetReference()INTERNAL: Returns the referenced value if one exists.intgetType()INTERNAL: Returns the value class type.intgetValueArity()INTERNAL: Returns the value arity of the value.ClassgetValueType()INTERNAL: Returns the value type.booleanisReference()INTERNAL: Returns true if this value is a reference to another.voidsetAlias(String alias)INTERNAL: Sets the column alias.voidsetFieldHandler(FieldHandlerIF fhandler)INTERNAL: Sets the field handler for the value.voidsetValueType(Class vtype)INTERNAL: Sets the value type.
-
-
-
Field Detail
-
NULL
static final int NULL
INTERNAL: Constant referring to theSQLNullclass.- See Also:
- Constant Field Values
-
TUPLE
static final int TUPLE
INTERNAL: Constant referring to theSQLTupleclass.- See Also:
- Constant Field Values
-
COLUMNS
static final int COLUMNS
INTERNAL: Constant referring to theSQLColumnsclass.- See Also:
- Constant Field Values
-
PRIMITIVE
static final int PRIMITIVE
INTERNAL: Constant referring to theSQLPrimitiveclass.- See Also:
- Constant Field Values
-
PARAMETER
static final int PARAMETER
INTERNAL: Constant referring to theSQLParameterclass.- See Also:
- Constant Field Values
-
VERBATIM
static final int VERBATIM
INTERNAL: Constant referring to theSQLVerbatimclass.- See Also:
- Constant Field Values
-
FUNCTION
static final int FUNCTION
INTERNAL: Constant referring to theSQLFunctionclass.- See Also:
- Constant Field Values
-
-
Method Detail
-
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
void setAlias(String alias)
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
void setValueType(Class vtype)
INTERNAL: Sets the value type.
-
getFieldHandler
FieldHandlerIF getFieldHandler()
INTERNAL: Returns the field handler for the columns.
-
setFieldHandler
void setFieldHandler(FieldHandlerIF fhandler)
INTERNAL: Sets the field handler for the value.
-
-