|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.prorefactor.core.schema.Field
public class Field
Field objects are created both by the Schema class and they are also created for temp and work table fields defined within a 4gl compile unit.
Nested Class Summary | |
---|---|
static class |
Field.Name
This is a convenience class for working with a string field name, where there may or may not be a database or table qualifier in the name. |
Constructor Summary | |
---|---|
Field()
Only to be used for persistence/serialization. |
|
Field(java.lang.String inName,
Table table)
Standard constructor. |
Method Summary | |
---|---|
void |
assignAttributesLike(Primative likePrim)
Assign datatype, class, extent from another primative (for the LIKE keyword). |
Field |
copyBare(Table toTable)
Copy the bare minimum attributes to a new Field object. |
java.lang.String |
getClassName()
The name of the CLASS that this variable was defined for. |
DataType |
getDataType()
|
int |
getExtent()
|
java.lang.String |
getName()
|
Table |
getTable()
|
Primative |
setClassName(java.lang.String s)
|
Primative |
setDataType(DataType dataType)
|
Primative |
setExtent(int extent)
|
void |
setTable(Table table)
Use this to set the field to a table if you used null for the table in the constructor. |
void |
writeXferBytes(DataXferStream out)
Implement Xferable. |
void |
writeXferSchema(DataXferStream out)
Implement Xferable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Field()
public Field(java.lang.String inName, Table table)
table
- Use null if you want to assign the field to a table as a separate step.setTable(Table)
Method Detail |
---|
public void assignAttributesLike(Primative likePrim)
Primative
assignAttributesLike
in interface Primative
public Field copyBare(Table toTable)
toTable
- The table that the field is being added to.
public java.lang.String getClassName()
Primative
getClassName
in interface Primative
Primative.getClassName()
public DataType getDataType()
getDataType
in interface Primative
public int getExtent()
getExtent
in interface Primative
public java.lang.String getName()
public Table getTable()
public Primative setClassName(java.lang.String s)
setClassName
in interface Primative
public Primative setDataType(DataType dataType)
setDataType
in interface Primative
public Primative setExtent(int extent)
setExtent
in interface Primative
public void setTable(Table table)
public void writeXferBytes(DataXferStream out) throws java.io.IOException
writeXferBytes
in interface Xferable
java.io.IOException
public void writeXferSchema(DataXferStream out) throws java.io.IOException
writeXferSchema
in interface Xferable
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |