public class Attribute extends Element
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
defaultValue
Default value for the column.
|
private int |
extent
EXTENT property of the column.
|
private boolean |
nullable
Is nullable?
|
private java.lang.String |
precision
String representation of column type's precision.
|
private java.lang.String |
type
String representation of column type.
|
| Constructor and Description |
|---|
Attribute(java.lang.String name,
Table table,
java.lang.String type,
java.lang.String precision,
boolean nullable,
java.lang.String defaultValue,
int extent,
java.lang.String comment)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDefaultValue()
Getter for defaultValue.
|
int |
getExtent()
Getter for EXTENT property.
|
boolean |
getNullable()
Getter for nullable.
|
java.lang.String |
getPrecision()
Getter for precision.
|
java.lang.String |
getType()
Getter for type.
|
boolean |
isPrimaryKey()
Decides whether the column is a part of surrogate primary key.
|
private final java.lang.String type
private final java.lang.String precision
private final boolean nullable
private final java.lang.String defaultValue
private final int extent
public Attribute(java.lang.String name,
Table table,
java.lang.String type,
java.lang.String precision,
boolean nullable,
java.lang.String defaultValue,
int extent,
java.lang.String comment)
name - Most basic property of any element - its nametable - Table containing the column (parent)type - String representation of column typeprecision - String representation of column type's precisionnullable - Is nullable?defaultValue - Default value for the columnextent - EXTENT property of the columncomment - Comment for the columnpublic java.lang.String getType()
public java.lang.String getPrecision()
public boolean getNullable()
public java.lang.String getDefaultValue()
public int getExtent()
public boolean isPrimaryKey()