public class DbColumn extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
DbColumn.Builder
Builder for creating immutable
DbColumn objects. |
Modifier and Type | Method and Description |
---|---|
List<DbColumnConstraint> |
getColumnConstraints()
Gets the immutable list of constraints in the column.
|
DbColumnType |
getDbColumnType()
Gets the column type.
|
K |
getDefaultValue()
Gets the default value,
null when not applicable. |
String |
getName()
Gets column name.
|
Integer |
getSize()
Gets the size of the column if applicable (e.g.
|
boolean |
isAutoInc()
Signals whether this column is auto incremental or not.
|
boolean |
isDefaultValueSet()
Signals if the default value is set or not.
|
boolean |
isSizeSet()
Signals if the size is set or not.
|
DbColumn.Builder |
newBuilder()
Returns a new builder out of this configuration.
|
public String getName()
public DbColumnType getDbColumnType()
public Integer getSize()
null
is returned
when not applicable.null
if not applicable.public List<DbColumnConstraint> getColumnConstraints()
public boolean isAutoInc()
true
if the column is auto incremental, false
otherwise.public K getDefaultValue()
null
when not applicable.public boolean isDefaultValueSet()
true
if the default value is set, false
otherwise.public boolean isSizeSet()
true
if the size is set, false
otherwise.public DbColumn.Builder newBuilder()
Copyright © 2014 Feedzai. All Rights Reserved.