|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.prorefactor.treeparser.Symbol org.prorefactor.treeparser.TableBuffer
public class TableBuffer
A TableBuffer is a Symbol which provides a link from the syntax tree to a Table object.
Field Summary |
---|
Fields inherited from interface org.prorefactor.treeparser.SymbolI |
---|
NAME_ORDER |
Constructor Summary | |
---|---|
TableBuffer()
Only to be used for persistence/serialization. |
|
TableBuffer(java.lang.String name,
SymbolScope scope,
Table table)
Constructor for a named buffer. |
Method Summary | |
---|---|
Symbol |
copyBare(SymbolScope scope)
For temp/work table, also adds Table definition to the scope if it doesn't already exist. |
java.lang.String |
fullName()
Get the "database.buffer" name for schema buffers, get "buffer" for temp/work table buffers. |
FieldBuffer |
getFieldBuffer(Field field)
Get or create a FieldBuffer for a Field. |
java.util.Collection<FieldBuffer> |
getFieldBufferList()
Get a list of FieldBuffer symbols that have been created for this TableBuffer. |
java.lang.String |
getName()
Get the name of the buffer (overrides Symbol.getName). |
int |
getProgressType()
Always returns BUFFER, whether this is a named buffer or a default buffer. |
Table |
getTable()
|
boolean |
isDefault()
Is this the default (unnamed) buffer? |
boolean |
isDefaultSchema()
Is this a default (unnamed) buffer for a schema table? |
void |
setTable(Table table)
|
void |
writeXferBytes(DataXferStream out)
Implement Xferable. |
void |
writeXferSchema(DataXferStream out)
Implement Xferable. |
Methods inherited from class org.prorefactor.treeparser.Symbol |
---|
getAllRefsCount, getAsNode, getDefineNode, getIndirectDefineIdNode, getLikeNode, getNumReads, getNumWrites, getScope, isExported, isImported, noteReference, setAsNode, setDefOrIdNode, setLikeNode, setName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TableBuffer()
public TableBuffer(java.lang.String name, SymbolScope scope, Table table)
name
- Input "" for an unnamed or default bufferMethod Detail |
---|
public Symbol copyBare(SymbolScope scope)
copyBare
in class Symbol
public java.lang.String fullName()
fullName
in interface SymbolI
fullName
in class Symbol
public java.util.Collection<FieldBuffer> getFieldBufferList()
public int getProgressType()
getProgressType
in interface SymbolI
getProgressType
in class Symbol
To see if this buffer Symbol is for a schema table, temp-table, or work-table,
see Table.getStoreType().
,
Table.getStoretype().
public FieldBuffer getFieldBuffer(Field field)
public java.lang.String getName()
getName
in interface SymbolI
getName
in class Symbol
public Table getTable()
public boolean isDefault()
public boolean isDefaultSchema()
public void setTable(Table table)
public void writeXferBytes(DataXferStream out) throws java.io.IOException
writeXferBytes
in interface Xferable
writeXferBytes
in class Symbol
java.io.IOException
public void writeXferSchema(DataXferStream out) throws java.io.IOException
writeXferSchema
in interface Xferable
writeXferSchema
in class Symbol
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |