Class CreateTableColumn

java.lang.Object
com.espertech.esper.common.client.soda.CreateTableColumn
All Implemented Interfaces:
Serializable

public class CreateTableColumn extends Object implements Serializable
Table column in a create-table statement.
See Also:
  • Constructor Details

    • CreateTableColumn

      public CreateTableColumn(String columnName, Expression optionalExpression, String optionalTypeName, List<AnnotationPart> annotations, 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)
      annotations - optional annotations
      primaryKey - flag indicating whether the column is a primary key
    • CreateTableColumn

      public CreateTableColumn()
      Ctor.
  • Method Details

    • getColumnName

      public String getColumnName()
      Returns the table column name
      Returns:
      column name
    • setColumnName

      public void setColumnName(String columnName)
      Sets the table column name
      Parameters:
      columnName - column name
    • getAnnotations

      public List<AnnotationPart> getAnnotations()
      Returns optional annotations, or null if there are none
      Returns:
      annotations
    • setAnnotations

      public void setAnnotations(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 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(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
    • getPrimaryKey

      public Boolean getPrimaryKey()
      Returns indicator whether the column is a primary key
      Returns:
      primary key indicator
    • setPrimaryKey

      public void setPrimaryKey(Boolean primaryKey)
      Sets indicator whether the column is a primary key
      Parameters:
      primaryKey - primary key indicator
    • toEPL

      public void toEPL(StringWriter writer)
      Render create-table column
      Parameters:
      writer - to render to