com.espertech.esper.client.soda
Class CreateTableColumn

java.lang.Object
  extended by com.espertech.esper.client.soda.CreateTableColumn
All Implemented Interfaces:
java.io.Serializable

public class CreateTableColumn
extends java.lang.Object
implements java.io.Serializable

Table column in a create-table statement.

See Also:
Serialized Form

Constructor Summary
CreateTableColumn()
          Ctor.
CreateTableColumn(java.lang.String columnName, Expression optionalExpression, java.lang.String optionalTypeName, java.lang.Boolean optionalTypeIsArray, java.lang.Boolean optionalTypeIsPrimitiveArray, java.util.List<AnnotationPart> annotations, java.lang.Boolean primaryKey)
          Ctor.
 
Method Summary
 java.util.List<AnnotationPart> getAnnotations()
          Returns optional annotations, or null if there are none
 java.lang.String getColumnName()
          Returns the table column name
 Expression getOptionalExpression()
          Returns the aggragtion expression, if the type of the column is aggregation, or null if a type name is provided instead.
 java.lang.Boolean getOptionalTypeIsArray()
          Returns indicator whether type is an array type, applicable only if a type name is provided
 java.lang.Boolean getOptionalTypeIsPrimitiveArray()
          Returns indicator whether the array is an array of primitives or boxed types (only when a type name is provided and array flag set)
 java.lang.String getOptionalTypeName()
          Returns the type name, or null if the column is an aggregation and an aggregation expression is provided instead.
 java.lang.Boolean getPrimaryKey()
          Returns indicator whether the column is a primary key
 void setAnnotations(java.util.List<AnnotationPart> annotations)
          Sets optional annotations, or null if there are none
 void setColumnName(java.lang.String columnName)
          Sets the table column name
 void setOptionalExpression(Expression optionalExpression)
          Sets the aggragtion expression, if the type of the column is aggregation, or null if a type name is provided instead.
 void setOptionalTypeIsArray(java.lang.Boolean optionalTypeIsArray)
          Sets indicator whether type is an array type, applicable only if a type name is provided
 void setOptionalTypeIsPrimitiveArray(java.lang.Boolean optionalTypeIsPrimitiveArray)
          Sets indicator whether the array is an array of primitives or boxed types (only when a type name is provided and array flag set)
 void setOptionalTypeName(java.lang.String optionalTypeName)
          Sets the type name, or null if the column is an aggregation and an aggregation expression is provided instead.
 void setPrimaryKey(java.lang.Boolean primaryKey)
          Sets indicator whether the column is a primary key
 void toEPL(java.io.StringWriter writer)
          Render create-table column
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateTableColumn

public CreateTableColumn(java.lang.String columnName,
                         Expression optionalExpression,
                         java.lang.String optionalTypeName,
                         java.lang.Boolean optionalTypeIsArray,
                         java.lang.Boolean optionalTypeIsPrimitiveArray,
                         java.util.List<AnnotationPart> annotations,
                         java.lang.Boolean primaryKey)
Ctor.

Parameters:
columnName - the table column name
optionalExpression - an optional aggregation expression (exclusive of type name)
optionalTypeName - a type name (exclusive of aggregation expression)
optionalTypeIsArray - flag whether type is array
optionalTypeIsPrimitiveArray - flag whether array of primitive (requires array flag)
annotations - optional annotations
primaryKey - flag indicating whether the column is a primary key

CreateTableColumn

public CreateTableColumn()
Ctor.

Method Detail

getColumnName

public java.lang.String getColumnName()
Returns the table column name

Returns:
column name

setColumnName

public void setColumnName(java.lang.String columnName)
Sets the table column name

Parameters:
columnName - column name

getAnnotations

public java.util.List<AnnotationPart> getAnnotations()
Returns optional annotations, or null if there are none

Returns:
annotations

setAnnotations

public void setAnnotations(java.util.List<AnnotationPart> annotations)
Sets optional annotations, or null if there are none

Parameters:
annotations - annotations

getOptionalExpression

public Expression getOptionalExpression()
Returns the aggragtion expression, if the type of the column is aggregation, or null if a type name is provided instead.

Returns:
expression

setOptionalExpression

public void setOptionalExpression(Expression optionalExpression)
Sets the aggragtion expression, if the type of the column is aggregation, or null if a type name is provided instead.

Parameters:
optionalExpression - expression

getOptionalTypeName

public java.lang.String getOptionalTypeName()
Returns the type name, or null if the column is an aggregation and an aggregation expression is provided instead.

Returns:
type name

setOptionalTypeName

public void setOptionalTypeName(java.lang.String optionalTypeName)
Sets the type name, or null if the column is an aggregation and an aggregation expression is provided instead.

Parameters:
optionalTypeName - type name

getOptionalTypeIsArray

public java.lang.Boolean getOptionalTypeIsArray()
Returns indicator whether type is an array type, applicable only if a type name is provided

Returns:
array type indicator

setOptionalTypeIsArray

public void setOptionalTypeIsArray(java.lang.Boolean optionalTypeIsArray)
Sets indicator whether type is an array type, applicable only if a type name is provided

Parameters:
optionalTypeIsArray - array type indicator

getPrimaryKey

public java.lang.Boolean getPrimaryKey()
Returns indicator whether the column is a primary key

Returns:
primary key indicator

setPrimaryKey

public void setPrimaryKey(java.lang.Boolean primaryKey)
Sets indicator whether the column is a primary key

Parameters:
primaryKey - primary key indicator

getOptionalTypeIsPrimitiveArray

public java.lang.Boolean getOptionalTypeIsPrimitiveArray()
Returns indicator whether the array is an array of primitives or boxed types (only when a type name is provided and array flag set)

Returns:
primitive array indicator

setOptionalTypeIsPrimitiveArray

public void setOptionalTypeIsPrimitiveArray(java.lang.Boolean optionalTypeIsPrimitiveArray)
Sets indicator whether the array is an array of primitives or boxed types (only when a type name is provided and array flag set)

Parameters:
optionalTypeIsPrimitiveArray - primitive array indicator

toEPL

public void toEPL(java.io.StringWriter writer)
Render create-table column

Parameters:
writer - to render to

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com