public class PersistenceTableColumnModel extends Object
| Constructor and Description |
|---|
PersistenceTableColumnModel(String field,
String name,
String type,
int length,
boolean nullable,
boolean primaryKey,
int precision,
int scale,
String generated,
boolean unique,
boolean identity,
String enumerated)
The constructor from the fields.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEnumerated()
Returns the name of the enumerated type in case the column is of type enumerated or null otherwise.
|
String |
getField()
Getter for the field.
|
String |
getGenerated()
Check whether it is generated value.
|
int |
getLength()
Getter for the length.
|
String |
getName()
Getter for the name.
|
int |
getPrecision()
Getter for the precision.
|
int |
getScale()
Getter for the scale.
|
String |
getType()
Getter for the type.
|
boolean |
isIdentity()
Check whether it is identity value.
|
boolean |
isNullable()
Check for nullable.
|
boolean |
isPrimaryKey()
Check for primary key.
|
boolean |
isUnique()
Check whether it is unique value.
|
void |
setEnumerated(String enumerated)
Setter for the enumerated type name.
|
void |
setField(String field)
Setter for the field.
|
void |
setGenerated(String generated)
Setter for the generated.
|
void |
setIdentity(boolean identity)
Setter for the identity.
|
void |
setLength(int length)
Setter for the length.
|
void |
setName(String name)
Setter for the name.
|
void |
setNullable(boolean nullable)
Setter for the nullable.
|
void |
setPrecision(int precision)
Setter for the precision.
|
void |
setPrimaryKey(boolean primaryKey)
Setter for the primary key.
|
void |
setScale(int scale)
Setter for the scale.
|
void |
setType(String type)
Setter for the type.
|
void |
setUnique(boolean unique)
Setter for the unique.
|
public PersistenceTableColumnModel(String field, String name, String type, int length, boolean nullable, boolean primaryKey, int precision, int scale, String generated, boolean unique, boolean identity, String enumerated)
field - the fieldname - the nametype - the typelength - the lengthnullable - whether null values are allowedprimaryKey - whether it is a primary keyprecision - the precision for floating point valuesscale - the scale for floating point valuesgenerated - whether it is a generated valueunique - whether it is uniqueidentity - whether it is identityenumerated - whether it is enumeratedpublic String getField()
public void setField(String field)
field - the fieldpublic String getName()
public void setName(String name)
name - the namepublic String getType()
public void setType(String type)
type - the typepublic int getLength()
public void setLength(int length)
length - the lengthpublic boolean isNullable()
public void setNullable(boolean nullable)
nullable - whether null values are allowedpublic boolean isPrimaryKey()
public void setPrimaryKey(boolean primaryKey)
primaryKey - whether it is a primary keypublic int getPrecision()
public void setPrecision(int precision)
precision - the precisionpublic int getScale()
public void setScale(int scale)
scale - the scalepublic String getGenerated()
public void setGenerated(String generated)
generated - whether it is generatedpublic boolean isUnique()
public void setUnique(boolean unique)
unique - whether it is uniquepublic boolean isIdentity()
public void setIdentity(boolean identity)
identity - whether it is identitypublic String getEnumerated()
public void setEnumerated(String enumerated)
enumerated - the new enumeratedCopyright © 2010–2018 Eclipse Foundation. All rights reserved.