Package edu.caltech.nanodb.commands
Class TableColumnDecl
- java.lang.Object
-
- edu.caltech.nanodb.commands.TableColumnDecl
-
public class TableColumnDecl extends java.lang.Object
This class represents a single column declaration within a CREATE TABLE command.
-
-
Field Summary
Fields Modifier and Type Field Description private ColumnInfo
columnInfo
Basic details about the column, including its name and type.private java.util.ArrayList<ConstraintDecl>
constraints
Any constraints specified on the column.
-
Constructor Summary
Constructors Constructor Description TableColumnDecl(ColumnInfo columnInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addConstraint(ConstraintDecl constraint)
ColumnInfo
getColumnInfo()
java.util.List<ConstraintDecl>
getConstraints()
-
-
-
Field Detail
-
columnInfo
private ColumnInfo columnInfo
Basic details about the column, including its name and type.
-
constraints
private java.util.ArrayList<ConstraintDecl> constraints
Any constraints specified on the column.
-
-
Constructor Detail
-
TableColumnDecl
public TableColumnDecl(ColumnInfo columnInfo)
-
-
Method Detail
-
addConstraint
public void addConstraint(ConstraintDecl constraint)
-
getColumnInfo
public ColumnInfo getColumnInfo()
-
getConstraints
public java.util.List<ConstraintDecl> getConstraints()
-
-