public class CreateTableColumn
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
CreateTableColumn()
Ctor.
|
CreateTableColumn(java.lang.String columnName,
Expression optionalExpression,
java.lang.String optionalTypeName,
java.util.List<AnnotationPart> annotations,
java.lang.Boolean primaryKey)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
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.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 |
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
|
public CreateTableColumn(java.lang.String columnName, Expression optionalExpression, java.lang.String optionalTypeName, java.util.List<AnnotationPart> annotations, java.lang.Boolean primaryKey)
columnName
- the table column nameoptionalExpression
- an optional aggregation expression (exclusive of type name)optionalTypeName
- a type name (exclusive of aggregation expression)annotations
- optional annotationsprimaryKey
- flag indicating whether the column is a primary keypublic CreateTableColumn()
public java.lang.String getColumnName()
public void setColumnName(java.lang.String columnName)
columnName
- column namepublic java.util.List<AnnotationPart> getAnnotations()
public void setAnnotations(java.util.List<AnnotationPart> annotations)
annotations
- annotationspublic Expression getOptionalExpression()
public void setOptionalExpression(Expression optionalExpression)
optionalExpression
- expressionpublic java.lang.String getOptionalTypeName()
public void setOptionalTypeName(java.lang.String optionalTypeName)
optionalTypeName
- type namepublic java.lang.Boolean getPrimaryKey()
public void setPrimaryKey(java.lang.Boolean primaryKey)
primaryKey
- primary key indicatorpublic void toEPL(java.io.StringWriter writer)
writer
- to render to