|
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.DbMappingTargetInsertNode
implementation of a target data sink in a rule. It has a number of properites. (a) a list of record fields (b) a list of unique test constraints. (c) a list of foreign key constraints. (c) a series of hint attributes include old/new and operation type variant.
| 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 | |
DbMappingTargetInsertNode()
constructor. |
|
| Method Summary | |
void |
addDbMappingRecordField(DbMappingRecordField field)
add a field name to the record definition. |
int |
expandForeignKeyFieldDeclarationQ()
|
int |
expandSchemaForeignKeyFieldDeclaration(DbSchemaTableList resolver)
|
int |
expandSchemaUniqueKeyFieldDeclaration(DbSchemaTableList resolver)
|
int |
expandSourceRecordColumns(DbSchemaTableList resolver)
|
int |
expandSourceTableColumns(DbSchemaTableList resolver)
|
int |
expandSourceTableReferences(DbSchemaTableList resolver)
|
int |
expandUniqueKeyFieldDeclarationQ()
|
String |
getAsInsertRecord()
set target rule name as also used for materializations.. test attribute "asrecord" of node. |
DbMappingForeignKeyFields |
getDbMappingForeignKeyFields(int i)
elem of list of foreign keys.. implementation by index into getForeignKeyFieldsList(). |
DbMappingRecordField |
getDbMappingRecordField(int i)
get DbMappingRecordField by index. implemented via list property. |
DbMappingRecordField |
getDbMappingRecordField(String name)
get DbMappingRecordField by name. implemented via list property. |
List |
getDbMappingRecordFieldList()
the field list. |
DbMappingUniqueKeyFields |
getDbMappingUniqueKeyFields(int i)
elem of list of unique keys.. implementation by index into getUniqueKeyFieldsList(). |
String |
getExistsHint()
get attribute "exists" of node. |
List |
getForeignKeyFieldsList()
return List of DbMappingForeignKeyFields.. implementation in node "foreign" |
String |
getInsertHint()
get attribute "insert" of node. |
SimpleNode |
getRecordFieldSqlNode(int i)
get Sql-Expression for record field computation. by index. |
SimpleNode |
getRecordFieldSqlNode(String name)
get Sql-Expression for record field computation. by name. |
SimpleNode |
getRecordFieldSqlNode(String name,
String table,
String schema)
unsued. .... what an idea but not currently used. |
List |
getRecordNameList()
here an alias for getDbMappingRecordFieldList() |
SimpleNode |
getSchemaTableSqlNode(int i)
unsued. .... what an idea but not currently used. |
SimpleNode |
getSchemaTableSqlNode(String name)
unsued. .... what an idea but not currently used. |
SimpleNode |
getSchemaTableSqlNode(String name,
String schema)
unsued. .... what an idea but not currently used. |
DbMappingRecordFieldList |
getSourceFieldList()
get property of a DbMappingRecordFieldList. |
SimpleNode |
getSqlAllDistinctHint()
get ref to sql syntax part. |
SimpleNode |
getSqlCondition()
get Sql-Expression for condition. |
SimpleNode |
getSqlOldNewHint()
get ref to sql syntax part. |
SqlOldNewHintQ |
getSqlOldNewHintQ()
get ref to sql syntax part. |
SimpleNode |
getSqlWhereClause()
get ref to sql syntax part. |
DbMappingTargetTable |
getTargetTable()
get mapping target table. implemented in the "into" child property. |
List |
getUniqueKeyFieldsList()
return List of DbMappingUniqueKeyFields.. implementation in node "uniques" |
String |
getUpdateHint()
get attribute "update" of node. |
SqlInsertNewIntoClauseQ |
hasSqlInsertIntoClauseQ()
get sql syntx reference table. implemented in the "clause" child property. |
SqlWithOptionsQ |
hasSqlWithOptionsQ()
get additional options. implemented by means of ref to sql syntax. |
boolean |
isDefaultHint()
test pre-existing record as normal.. implemented by ref to sql syntax part. |
boolean |
isExistsHint()
insert data sink is only checking for old record.. test attribute "exists" of node. |
boolean |
isInsertHint()
insert data sink is real insert operation.. test attribute "insert" of node. |
boolean |
isNewHint()
test for no pre-existing record.. implemented by ref to sql syntax part. |
boolean |
isOldHint()
test of some pre-existing record.. implemented by ref to sql syntax part. |
boolean |
isUpdateHint()
insert data sink is some update operation.. test attribute "update" of node. |
void |
setAsInsertRecord(String name)
|
void |
setExistsHint(boolean exists)
set attribute "exists" of node. |
void |
setInsertHint(boolean updates)
set attribute "insert" of node. |
void |
setSourceFieldList(DbMappingRecordFieldList source)
set property of a DbMappingRecordFieldList. |
void |
setSqlAllDistinctHint(SqlAllDistinctHintQ clause)
set ref to sql syntax part. |
void |
setSqlInsertIntoClauseQ(SqlInsertNewIntoClauseQ clause)
set sql syntx reference table. implemented in the "clause" child property. |
void |
setSqlOldNewHint(SqlOldNewHintQ clause)
set ref to sql syntax part. |
void |
setSqlWhereClause(SqlWhereClauseQ clause)
set ref to sql syntax part. |
void |
setTargetTable(DbMappingTargetTable into)
set mapping target table. implemented in the "into" child property. |
void |
setUpdateHint(boolean updates)
set attribute "update" of node. |
| 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 DbMappingTargetInsertNode()
| Method Detail |
public 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 DbMappingTargetTable getTargetTable()
getTargetTable in interface DbMappingTargetInsertpublic void setTargetTable(DbMappingTargetTable into)
public SqlInsertNewIntoClauseQ hasSqlInsertIntoClauseQ()
public void setSqlInsertIntoClauseQ(SqlInsertNewIntoClauseQ clause)
public void setSourceFieldList(DbMappingRecordFieldList source)
DbMappingRecordFieldList.
public DbMappingRecordFieldList getSourceFieldList()
DbMappingRecordFieldList.
public DbMappingRecordField getDbMappingRecordField(String name)
DbMappingRecordField by name. implemented via list property.
public DbMappingRecordField getDbMappingRecordField(int i)
DbMappingRecordField by index. implemented via list property.
getDbMappingRecordField in interface DbMappingSourceSelectorpublic List getDbMappingRecordFieldList()
getDbMappingRecordFieldList in interface DbMappingTargetInsertpublic List getRecordNameList()
getDbMappingRecordFieldList()
getRecordNameList in interface HasRecordNameListHasRecordNamepublic void addDbMappingRecordField(DbMappingRecordField field)
public int expandSourceRecordColumns(DbSchemaTableList resolver)
expandSourceRecordColumns in interface DbMappingSimpleNodeexpandSourceRecordColumns in class DbMappingScriptNodepublic void setSqlWhereClause(SqlWhereClauseQ clause)
public SimpleNode getSqlWhereClause()
public void setSqlAllDistinctHint(SqlAllDistinctHintQ clause)
public SimpleNode getSqlAllDistinctHint()
public void setSqlOldNewHint(SqlOldNewHintQ clause)
public SimpleNode getSqlOldNewHint()
public SqlOldNewHintQ getSqlOldNewHintQ()
public boolean isOldHint()
isOldHint in interface DbMappingTargetInsertpublic boolean isNewHint()
isNewHint in interface DbMappingTargetInsertpublic boolean isDefaultHint()
isDefaultHint in interface DbMappingTargetInsertpublic void setInsertHint(boolean updates)
public void setUpdateHint(boolean updates)
public void setExistsHint(boolean exists)
public String getInsertHint()
public String getUpdateHint()
public String getExistsHint()
public boolean isInsertHint()
isInsertHint in interface DbMappingTargetInsertpublic boolean isUpdateHint()
isUpdateHint in interface DbMappingTargetInsertpublic boolean isExistsHint()
isExistsHint in interface DbMappingTargetInsertpublic String getAsInsertRecord()
getAsInsertRecord in interface DbMappingTargetInsertpublic void setAsInsertRecord(String name)
public int expandSourceTableReferences(DbSchemaTableList resolver)
expandSourceTableReferences in interface DbMappingSimpleNodeexpandSourceTableReferences in class DbMappingScriptNodepublic int expandSourceTableColumns(DbSchemaTableList resolver)
expandSourceTableColumns in interface DbMappingSimpleNodeexpandSourceTableColumns in class DbMappingScriptNodepublic List getUniqueKeyFieldsList()
DbMappingUniqueKeyFields.. implementation in node "uniques"
getUniqueKeyFieldsList in interface DbMappingTargetInsertpublic List getForeignKeyFieldsList()
DbMappingForeignKeyFields.. implementation in node "foreign"
getForeignKeyFieldsList in interface DbMappingTargetInsertpublic DbMappingUniqueKeyFields getDbMappingUniqueKeyFields(int i)
getUniqueKeyFieldsList().
getDbMappingUniqueKeyFields in interface DbMappingTargetInsertpublic DbMappingForeignKeyFields getDbMappingForeignKeyFields(int i)
getForeignKeyFieldsList().
getDbMappingForeignKeyFields in interface DbMappingTargetInsertpublic SqlWithOptionsQ hasSqlWithOptionsQ()
public int expandUniqueKeyFieldDeclarationQ()
expandUniqueKeyFieldDeclarationQ in interface DbMappingSimpleNodeexpandUniqueKeyFieldDeclarationQ in class DbMappingScriptNodepublic int expandForeignKeyFieldDeclarationQ()
expandForeignKeyFieldDeclarationQ in interface DbMappingSimpleNodeexpandForeignKeyFieldDeclarationQ in class DbMappingScriptNodepublic int expandSchemaUniqueKeyFieldDeclaration(DbSchemaTableList resolver)
expandSchemaUniqueKeyFieldDeclaration in interface DbMappingSimpleNodeexpandSchemaUniqueKeyFieldDeclaration in class DbMappingScriptNodepublic int expandSchemaForeignKeyFieldDeclaration(DbSchemaTableList resolver)
expandSchemaForeignKeyFieldDeclaration in interface DbMappingSimpleNodeexpandSchemaForeignKeyFieldDeclaration in class DbMappingScriptNode
|
SMACS | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||