|
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.DbMappingSourceCursorNode
implementation of data source. has a (a) list of record fields in the SELECT (b) more test constraints that be used to to check overlapping queries (c) explicit cursor options that define interrelation of source cursors.
| 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 | |
DbMappingSourceCursorNode(SmacsFixNodeLater later)
constructor. reloading. |
|
DbMappingSourceCursorNode(SqlSelectStatementQ select)
constructor. from full select statment ( isFullSelectStatement()) |
|
DbMappingSourceCursorNode(SqlSelectWhereClauseQ select)
constructor. from simple source statment ( isOnlySelectWhere()) |
|
DbMappingSourceCursorNode(SqlSelectWhereClauseQ select,
SqlFromClauseQ source)
constructor. from simple source statment ( isOnlySelectWhere()) |
|
| Method Summary | |
void |
addDbMappingRecordField(DbMappingRecordField field)
add a field name to the record definition. |
void |
addDbMappingRecordSource(DbMappingRecordSource source)
add to resolved record source list. |
void |
addSqlFromClauseQ(SqlFromClauseQ source)
set ref to sql table source syntax. |
void |
addSqlMaterializedCursorQ(SqlMaterializedCursorQ hint)
set cursor option to materialize . direct via sql syntax |
void |
addSqlMaterializedCursorQ(SqlWithOptionsQ options)
set cursor option to materialize . indirect via sql optionlist syntax |
void |
addSqlSelectStatementQ(SqlSelectStatementQ select)
set ref to sql source syntax. |
void |
addSqlSelectWhereClauseQ(SqlSelectWhereClauseQ select)
set ref to sql where syntax. |
int |
expandSourceRecordColumns(DbSchemaTableList resolver)
|
int |
expandSourceRecordColumnTypes(DbSchemaTableList resolver)
|
int |
expandSourceRecordReferences(DbSchemaTableList resolver)
|
int |
expandSourceTableColumns(DbSchemaTableList resolver)
|
int |
expandSourceTableReferences(DbSchemaTableList resolver)
|
DbMappingRecordSource |
findColumnRecordSource(String column,
String table,
String schema)
called from expandSourceRecordColumnTypes(smacs.load.schema.DbSchemaTableList) |
String |
getCursorOption(int i)
get cursor option variant as name . |
DbMappingRecordField |
getDbMappingRecordField(int i)
get resolved record field by index. |
DbMappingRecordField |
getDbMappingRecordField(String name)
get resolved record field by name. |
List |
getDbMappingRecordFieldList()
the field list. |
int |
getDbMappingRecordFieldMax()
get resolved record field list size. |
DbMappingRecordSource |
getDbMappingRecordSource(int i)
get resolved record source by index. |
DbMappingRecordSource |
getDbMappingRecordSource(String name)
get resolved record source by name. |
List |
getDbMappingRecordSourceList()
get resolved record source list. |
String |
getRecordFieldName(int i)
get name of field as given in select list item. |
int |
getRecordFieldNameMax()
get size of list of names of select list items. |
SimpleNode |
getRecordFieldSqlNode(int i)
get sql of select list item. |
SimpleNode |
getRecordFieldSqlNode(String name)
ref sql of record field. getDbMappingRecordField(name).getSqlOfExpression() |
SimpleNode |
getRecordFieldSqlNode(String name,
String table,
String schema)
unused. |
SimpleNode |
getSchemaTableSqlNode(int i)
ref sql of record source. getDbMappingRecordSource(i).getSql() |
SimpleNode |
getSchemaTableSqlNode(String name)
unused. |
SimpleNode |
getSchemaTableSqlNode(String name,
String schema)
unused. |
SimpleNode |
getSql()
get ref to sql source syntax (if any). |
SimpleNode |
getSqlCondition()
get sql of where condition. |
SqlFromClauseQ |
hasSqlFromClauseQ()
get ref to sql table source syntax. |
SqlMaterializedCursorQ |
hasSqlMaterializedCursorQ()
get cursor option to materialize . |
SqlSelectStatementQ |
hasSqlSelectStatementQ()
get ref to sql source syntax (if any). |
SqlSelectWhereClauseQ |
hasSqlSelectWhereClauseQ()
get ref to sql where syntax (if any). |
boolean |
isFullSelectStatement()
check if ref to sql source syntax (if any). |
boolean |
isOnlySelectWhere()
check if only where clause. |
| 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 DbMappingSourceCursorNode(SqlSelectStatementQ select)
isFullSelectStatement())
public DbMappingSourceCursorNode(SqlSelectWhereClauseQ select)
isOnlySelectWhere())
public DbMappingSourceCursorNode(SqlSelectWhereClauseQ select,
SqlFromClauseQ source)
isOnlySelectWhere())
public DbMappingSourceCursorNode(SmacsFixNodeLater later)
| Method Detail |
public boolean isFullSelectStatement()
public boolean isOnlySelectWhere()
public SimpleNode getSql()
public SqlSelectStatementQ hasSqlSelectStatementQ()
hasSqlSelectStatementQ in interface DbMappingSourceCursorpublic SqlSelectWhereClauseQ hasSqlSelectWhereClauseQ()
hasSqlSelectWhereClauseQ in interface DbMappingSourceCursorpublic void addSqlSelectStatementQ(SqlSelectStatementQ select)
public void addSqlSelectWhereClauseQ(SqlSelectWhereClauseQ select)
public void addSqlFromClauseQ(SqlFromClauseQ source)
public SqlFromClauseQ hasSqlFromClauseQ()
public SqlMaterializedCursorQ hasSqlMaterializedCursorQ()
public void addSqlMaterializedCursorQ(SqlMaterializedCursorQ hint)
public void addSqlMaterializedCursorQ(SqlWithOptionsQ options)
public String getCursorOption(int i)
getCursorOption in interface DbMappingSourceCursorpublic SimpleNode getRecordFieldSqlNode(String name)
getRecordFieldSqlNode in interface DbMappingSourceTableList
public SimpleNode getRecordFieldSqlNode(String name,
String table,
String schema)
getRecordFieldSqlNode in interface DbMappingSourceTableListpublic SimpleNode getSchemaTableSqlNode(String name)
getSchemaTableSqlNode in interface DbMappingSourceTableList
public SimpleNode getSchemaTableSqlNode(String name,
String schema)
getSchemaTableSqlNode in interface DbMappingSourceTableListpublic SimpleNode getSchemaTableSqlNode(int i)
getSchemaTableSqlNode in interface DbMappingSourceTableListpublic SimpleNode getRecordFieldSqlNode(int i)
getRecordFieldSqlNode in interface DbMappingSourceSelectorpublic SimpleNode getSqlCondition()
getSqlCondition in interface DbMappingSourceSelectorpublic String getRecordFieldName(int i)
getRecordFieldName in interface DbMappingSourceCursorpublic int getRecordFieldNameMax()
getRecordFieldNameMax in interface DbMappingSourceCursorpublic DbMappingRecordSource getDbMappingRecordSource(String name)
public DbMappingRecordSource getDbMappingRecordSource(int i)
public List getDbMappingRecordSourceList()
public void addDbMappingRecordSource(DbMappingRecordSource source)
public DbMappingRecordField getDbMappingRecordField(String name)
public DbMappingRecordField getDbMappingRecordField(int i)
getDbMappingRecordField in interface DbMappingSourceSelectorpublic int getDbMappingRecordFieldMax()
public List getDbMappingRecordFieldList()
getDbMappingRecordFieldList in interface DbMappingRecordFieldListpublic void addDbMappingRecordField(DbMappingRecordField field)
public int expandSourceRecordReferences(DbSchemaTableList resolver)
expandSourceRecordReferences in interface DbMappingSimpleNodeexpandSourceRecordReferences in class DbMappingScriptNodepublic int expandSourceTableReferences(DbSchemaTableList resolver)
expandSourceTableReferences in interface DbMappingSimpleNodeexpandSourceTableReferences in class DbMappingScriptNodepublic int expandSourceTableColumns(DbSchemaTableList resolver)
expandSourceTableColumns in interface DbMappingSimpleNodeexpandSourceTableColumns in class DbMappingScriptNodepublic int expandSourceRecordColumns(DbSchemaTableList resolver)
expandSourceRecordColumns in interface DbMappingSimpleNodeexpandSourceRecordColumns in class DbMappingScriptNodepublic int expandSourceRecordColumnTypes(DbSchemaTableList resolver)
public DbMappingRecordSource findColumnRecordSource(String column,
String table,
String schema)
expandSourceRecordColumnTypes(smacs.load.schema.DbSchemaTableList)
|
SMACS | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||