|
SMACS | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dom4j.tree.AbstractNode
org.dom4j.tree.AbstractBranch
org.dom4j.tree.AbstractElement
org.dom4j.tree.DefaultElement
smacs.tree.ScriptNode
smacs.load.mapping.DbMappingScriptNode
smacs.load.mapping.DbMappingRecordField
implementation of a record field.
This is used by nodes that do convert their field descriptions
to a DbMappingRecordFieldList. The presented implementation
allows to store all information out of some SELECT subclause in the
smacs input syntax. The implementation has been overloaded over time
and should be refactored into making this type an interface with
more specific implementation classes taylored for the usage in the
nodes having a list of record fields. There is no hard need to do so
since this implementation node has the HasRecordField and
HasRecordName interface which can be used in other stages to
access any record field information by means of an interface layer.
| Field Summary | |
protected static Logger |
log
|
| Fields inherited from class smacs.tree.ScriptNode |
_NodeHandler, TokenValue |
| Fields inherited from class org.dom4j.tree.AbstractElement |
EMPTY_ITERATOR, EMPTY_LIST, USE_STRINGVALUE_SEPARATOR, VERBOSE_TOSTRING |
| Fields inherited from class org.dom4j.tree.AbstractBranch |
DEFAULT_CONTENT_LIST_SIZE, outputFormat |
| Fields inherited from class org.dom4j.tree.AbstractNode |
NODE_TYPE_NAMES |
| Fields inherited from interface smacs.tree.SimpleNode |
TokenValue |
| Fields inherited from interface org.dom4j.Node |
ANY_NODE, ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, MAX_NODE_TYPE, NAMESPACE_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, UNKNOWN_NODE |
| Constructor Summary | |
DbMappingRecordField()
constructor. |
|
DbMappingRecordField(DbMappingRecordField orig,
String name)
constructor. a kind of copy constructor, the additional "name" allows for a renaming. |
|
DbMappingRecordField(SqlSelectItemQ field)
constructor. scan sql syntax and fill the internal properties. |
|
| Method Summary | |
void |
addSqlOfExpression(SimpleNode expr)
set ref to sql syntax for value computation. |
void |
addSqlSelectItem(SqlSelectItemQ field)
set ref to sql syntax for field assignment. |
void |
checkRecordReference()
resolve into name, table, schema options. |
TableQName |
getExprTableQName()
check if table computaiton is a direct table reference. |
String |
getRecordBaseNameSpec()
get schema prefix of the record field. |
String |
getRecordFieldName()
get resolved name information of field. |
String |
getRecordFieldType()
get resolved type information of field. |
String |
getRecordName()
get rename of the record field. |
SimpleNode |
getSqlOfExpression()
get ref to sql syntax for value computation. |
SimpleNode |
getSqlSelectItem()
get ref to sql syntax for field assignment. |
NodeHandler |
getSqlSelectItemQ()
get ref to sql syntax for field assignment. |
String |
hasTargetRecordFieldName()
get rename of the record field. |
boolean |
setRecordBaseNameSpec(String name)
set schema prefix of the record field. |
boolean |
setRecordFieldName(String name)
set resolved name information of field. |
boolean |
setRecordFieldType(String type)
set resolved type information of field. |
boolean |
setRecordName(String name)
set rename of the record field. |
void |
setSqlOfExpression(SimpleNode expr)
set ref to sql syntax for value computation. |
void |
setSqlSelectItem(SqlSelectItemQ field)
get ref to sql syntax for field assignment. |
boolean |
setTargetRecordFieldName(String name)
set rename of the record field. |
| Methods inherited from class org.dom4j.tree.AbstractBranch |
addElement, addElement, addElement, appendContent, content, contentRemoved, createContentList, createContentList, createEmptyList, createResultList, createSingleResultList, elementByID, elementID, getContentAsStringValue, getContentAsText, getTextTrim, hasContent, invalidNodeTypeAddException, isReadOnly, setProcessingInstructions |
| Methods inherited from class org.dom4j.tree.AbstractNode |
asXPathResult, createPattern, createXPath, createXPathFilter, createXPathResult, detach, getNodeTypeName, getPath, getUniquePath, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, valueOf |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.dom4j.Branch |
add, add, add, add, addElement, addElement, addElement, appendContent, clearContent, content, elementByID, indexOf, node, nodeCount, nodeIterator, normalize, processingInstruction, processingInstructions, processingInstructions, remove, remove, remove, remove, removeProcessingInstruction, setContent, setProcessingInstructions |
| Methods inherited from interface org.dom4j.Node |
accept, asXML, asXPathResult, clone, createXPath, detach, getDocument, getName, getNodeType, getNodeTypeName, getParent, getPath, getPath, getUniquePath, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setName, setParent, setText, supportsParent, valueOf, write |
| Methods inherited from interface smacs.util.listen.GetName |
getName |
| Field Detail |
protected static final Logger log
| Constructor Detail |
public DbMappingRecordField(SqlSelectItemQ field)
public DbMappingRecordField()
public DbMappingRecordField(DbMappingRecordField orig,
String name)
| Method Detail |
public void addSqlSelectItem(SqlSelectItemQ field)
public void setSqlSelectItem(SqlSelectItemQ field)
public SimpleNode getSqlSelectItem()
public NodeHandler getSqlSelectItemQ()
public void addSqlOfExpression(SimpleNode expr)
public void setSqlOfExpression(SimpleNode expr)
public SimpleNode getSqlOfExpression()
public boolean setRecordFieldType(String type)
setRecordFieldType in interface HasRecordFieldpublic String getRecordFieldType()
getRecordFieldType in interface HasRecordFieldTypepublic boolean setRecordFieldName(String name)
setRecordFieldName in interface HasRecordFieldpublic String getRecordFieldName()
getRecordFieldName in interface HasRecordFieldNamepublic boolean setTargetRecordFieldName(String name)
public String hasTargetRecordFieldName()
public boolean setRecordName(String name)
public String getRecordName()
getRecordName in interface HasRecordNamepublic boolean setRecordBaseNameSpec(String name)
public String getRecordBaseNameSpec()
getRecordBaseNameSpec in interface HasRecordBaseNameSpecpublic void checkRecordReference()
public TableQName getExprTableQName()
|
SMACS | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||