public class ModelField extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
colName
The col-name of the Field
|
protected boolean |
isPk
boolean which specifies whether or not the Field is a Primary Key
|
protected String |
name
The name of the Field
|
protected String |
type
The type of the Field
|
protected List<String> |
validators
validators to be called when an update is done
|
| Constructor and Description |
|---|
ModelField()
Default Constructor
|
ModelField(DatabaseUtil.ColumnCheckInfo ccInfo,
ModelFieldTypeReader modelFieldTypeReader)
DB Names Constructor
|
ModelField(Element fieldElement)
XML Constructor
|
ModelField(String name,
String type,
String colName,
boolean isPk,
List<String> validators) |
| Modifier and Type | Method and Description |
|---|---|
void |
addValidator(String validator) |
String |
getColName()
The col-name of the Field
|
boolean |
getIsPk()
boolean which specifies whether or not the Field is a Primary Key
|
String |
getName()
The name of the Field
|
String |
getType()
The type of the Field
|
String |
getValidator(int index)
validators to be called when an update is done
|
int |
getValidatorsSize() |
String |
removeValidator(int index) |
void |
setColName(String colName) |
void |
setIsPk(boolean isPk) |
void |
setName(String name) |
void |
setType(String type) |
protected String name
protected String type
protected String colName
protected boolean isPk
public ModelField()
public ModelField(String name, String type, String colName, boolean isPk, List<String> validators)
public ModelField(Element fieldElement)
public ModelField(DatabaseUtil.ColumnCheckInfo ccInfo, ModelFieldTypeReader modelFieldTypeReader)
public String getName()
public void setName(String name)
public String getType()
public void setType(String type)
public String getColName()
public void setColName(String colName)
public boolean getIsPk()
public void setIsPk(boolean isPk)
public String getValidator(int index)
public int getValidatorsSize()
public void addValidator(String validator)
public String removeValidator(int index)
Copyright © 2018 Atlassian. All rights reserved.