public class Repository.FieldInfo
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.StringBuilder |
addName(java.lang.StringBuilder sb,
boolean qualify,
boolean quote)
Add the field name to a StringBuilder
|
java.lang.String |
getForeignKeyName() |
int |
getMax()
get the max display width for the field
|
java.lang.String |
getName(boolean qualify)
get the name of the field.
|
boolean |
getNullable()
Can this field be null
|
java.lang.String |
getReferencedTable()
Get the tag that will-be/has-been used to create the referenced
IndexedTypeProducer . |
java.lang.String |
getTag()
get the tag used to store this field in the record.
|
int |
getType()
return column type as generated by getColumnType from
ResultSet |
TypeProducer |
getTypeProducer() |
boolean |
isBoolean() |
boolean |
isData() |
boolean |
isDate() |
boolean |
isIndexed() |
boolean |
isNumeric() |
boolean |
isReference() |
boolean |
isString() |
boolean |
isTruncate() |
boolean |
isUnique()
Is this a unique reference where there is a 1-1 mapping
between records in the source and destination table.
|
void |
setTruncate(boolean truncate) |
void |
setUnique(boolean value) |
public int getMax()
public boolean getNullable()
public int getType()
ResultSet
public java.lang.String getName(boolean qualify)
qualify
- public java.lang.StringBuilder addName(java.lang.StringBuilder sb, boolean qualify, boolean quote)
sb
- StringBuilder to append toqualify
- boolean Should field name be qualified with tablequote
- boolean apply quoting for SQL fragmentpublic boolean isNumeric()
public boolean isData()
public java.lang.String getReferencedTable()
IndexedTypeProducer
.
if the producer has been installed explicitly this will return null
because there is no guarantee the producers tag can be used to
construct a TypeProducer
.
So always use getTypeProducer()
in preference to constructing via this tag.public TypeProducer getTypeProducer()
public boolean isString()
public boolean isDate()
public boolean isBoolean()
public boolean isIndexed()
public boolean isUnique()
public void setUnique(boolean value)
public java.lang.String getForeignKeyName()
public boolean isReference()
public java.lang.String getTag()
public boolean isTruncate()
public void setTruncate(boolean truncate)