public class Table extends Object
Modifier and Type | Method and Description |
---|---|
void |
addColumn(Column column) |
void |
addConstraint(SqlConstraint constraint) |
List<Column> |
getColumns() |
List<SqlConstraint> |
getConstraints() |
String |
getGlobalId() |
String |
getName() |
AssociationInfo |
getRepresentedAssociation() |
ClassInfo |
getRepresentedClass() |
PropertyInfo |
getRepresentedProperty() |
boolean |
hasConstraints() |
boolean |
isAssociativeTable() |
boolean |
representsClass(ClassInfo ci) |
boolean |
representsCodeStatusCLType() |
void |
setAssociativeTable(boolean isAssociativeTable) |
void |
setColumns(List<Column> columns) |
void |
setConstraints(List<SqlConstraint> constraints) |
void |
setName(String name) |
void |
setRepresentedAssociation(AssociationInfo representedAssociation) |
void |
setRepresentedClass(ClassInfo representedClass) |
void |
setRepresentedProperty(PropertyInfo representedProperty) |
void |
setRepresentsCodeStatusCLType(boolean representsCodeStatusCLType) |
String |
toString() |
public Table(String tableName)
public String getName()
public void setName(String name)
name
- the name to setpublic List<Column> getColumns()
null
public List<SqlConstraint> getConstraints()
public void setConstraints(List<SqlConstraint> constraints)
constraints
- the constraints to setpublic void addConstraint(SqlConstraint constraint)
public boolean hasConstraints()
public boolean isAssociativeTable()
public void setAssociativeTable(boolean isAssociativeTable)
isAssociativeTable
- the isAssociativeTable to setpublic ClassInfo getRepresentedClass()
public void setRepresentedClass(ClassInfo representedClass)
representedClass
- the representedClass to setpublic AssociationInfo getRepresentedAssociation()
public void setRepresentedAssociation(AssociationInfo representedAssociation)
representedAssociation
- the representedAssociation to setpublic PropertyInfo getRepresentedProperty()
public void setRepresentedProperty(PropertyInfo representedProperty)
representedProperty
- the representedProperty to setpublic boolean representsClass(ClassInfo ci)
public String getGlobalId()
null
if
no such ID could be determinedpublic void addColumn(Column column)
public boolean representsCodeStatusCLType()
public void setRepresentsCodeStatusCLType(boolean representsCodeStatusCLType)
Copyright © 2017. All rights reserved.