SMACS

smacs.load.mapping
Class DbMappingTargetInsertNode

java.lang.Object
  extended byorg.dom4j.tree.AbstractNode
      extended byorg.dom4j.tree.AbstractBranch
          extended byorg.dom4j.tree.AbstractElement
              extended byorg.dom4j.tree.DefaultElement
                  extended bysmacs.tree.ScriptNode
                      extended bysmacs.load.mapping.DbMappingScriptNode
                          extended bysmacs.load.mapping.DbMappingTargetInsertNode
All Implemented Interfaces:
Branch, Cloneable, CreateListener, DbMappingRecordFieldList, DbMappingSimpleNode, DbMappingSourceSelector, DbMappingSourceTableList, DbMappingTargetInsert, Element, EventListener, FixNode, FixNodeListener, GetName, GetSimpleNode, HasNodeHandler, HasNodeReferenceAttribute, smacs.tree.HasNodeReferenceId, HasRecordNameList, IsaNodeReferenceChildListener, IsaNodeReferenceListener, NewSimpleNode, Node, Node, Serializable, SimpleElement, SimpleNode, SimpleNodeChild, SmacsFixNode

public class DbMappingTargetInsertNode
extends DbMappingScriptNode
implements DbMappingTargetInsert, DbMappingRecordFieldList, HasRecordNameList

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.

See Also:
Serialized Form

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 smacs.load.mapping.DbMappingScriptNode
_expandDistinctHints, _expandForeignKeyFieldDeclarationQ, _expandSchemaForeignKeyFieldDeclaration, _expandSchemaUniqueKeyFieldDeclaration, _expandSourceRecordColumns, _expandSourceRecordReferences, _expandSourceTableColumns, _expandSourceTableReferences, _expandUniqueKeyFieldDeclarationQ, expandDistinctHints, expandSourceRecordReferences, newNode, newNode, newNode
 
Methods inherited from class smacs.tree.ScriptNode
_fixNodeTree, _getTokenValue, _getValueTokenValue, _hasTokenValue, _init, add, add, addAll, addAll, addChild, addChild, addNewNode, addNodeReference, addNodeReference, addNodeReference, addNodeReference, appendAttributes, appendText, clear, cloneFrom, contains, containsAll, countTokenName, dump, fireNodeReferenceChildHasChanged, fireNodeReferenceHasChanged, firstTokenName, firstTokenName, fixNode, fixNodeTree, get, getAttributeValue, getHandler, getId, getMember, getMember, getMember, getMember, getMemberChild, getMemberChild, getMemberChild, getMemberList, getMemberListChild, getMemberOption, getMemberOption, getMemberOption, getMemberValue, getMemberValue, getMemberValue, getNodeNameFromClassName, getNodeReferenceCount, getNodeReferenceCount, getNodeReferenceId, getNodeReferenceId, getOption, getOption, getOption, getParentNode, getParentNode, getParentNode, getParentNode, getSimpleNode, getSingleTextChild, getThisParentNode, getThisParentNode, getTokenName, getTokenValue, hasChildren, hasMember, hasMember, hasNodeHandler, hasNodeReference, hasNodeReferenceChildNodes, hasNodeReferenceChildNodes, hasNodeReferenceId, hasNodeReferenceId, hasSingleTextChild, hasTokenName, hasTokenValue, indexOf, isEmpty, iterator, jjtAccept, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, lastIndexOf, lastTokenName, lastTokenName, listIterator, listIterator, memberElement, newChildren, newNode, newNode, newNode, newNode, newNode, newNode, newNode, newNodeLike, newNodeReferenceAttribute, newNodeReferenceAttribute, newNodeReferenceId, newNodeReferenceId, onNodeReferenceChildHasChanged, onNodeReferenceHasChanged, printXML, printXML, removeAll, removeAttribute, removeChild, removeChild, removeNodeReference, replace, retainAll, set, setHandler, setMemberChild, setMemberChild, setMemberChild, setMemberList, setMemberListChild, setMemberOption, setMemberOption, setMemberOption, setMemberValue, setMemberValue, setMemberValue, setNodeReference, setNodeReference, setNodeReference, setOption, setOption, setOption, setOption, setTokenName, setTokenValue, size, strSingleTextChild, subList, toArray, toArray, toString, toString, toXML, toXML
 
Methods inherited from class org.dom4j.tree.DefaultElement
add, additionalNamespaces, additionalNamespaces, addNewNode, attribute, attribute, attribute, attribute, attributeCount, attributeIterator, attributeList, attributeList, attributes, clearContent, clone, contentList, declaredNamespaces, element, element, element, elementIterator, elementIterator, elementIterator, elementIterator, elements, elements, elements, elements, getDocument, getDocumentFactory, getNamespaceForPrefix, getNamespaceForURI, getParent, getQName, getStringValue, getText, indexOf, node, nodeCount, nodeIterator, processingInstruction, processingInstructions, processingInstructions, remove, removeNode, removeProcessingInstruction, setAttributeList, setAttributes, setContent, setDocument, setParent, setQName, supportsParent
 
Methods inherited from class org.dom4j.tree.AbstractElement
accept, add, add, add, add, add, add, add, add, addAttribute, addAttribute, addCDATA, addComment, addElement, addEntity, addNamespace, addNode, addProcessingInstruction, addProcessingInstruction, addText, asXML, attributeValue, attributeValue, attributeValue, attributeValue, childAdded, childRemoved, createAttributeList, createAttributeList, createCopy, createCopy, createCopy, createElement, createElement, createSingleIterator, elementText, elementText, elementTextTrim, elementTextTrim, ensureAttributesCapacity, getData, getName, getNamespace, getNamespacePrefix, getNamespaceURI, getNodeType, getPath, getQName, getQualifiedName, getUniquePath, getXPathNameStep, getXPathResult, hasMixedContent, isRootElement, isTextOnly, normalize, remove, remove, remove, remove, remove, remove, remove, remove, setAttributes, setAttributeValue, setAttributeValue, setData, setName, setNamespace, setText, write
 
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 smacs.tree.SimpleNode
add, add, addAll, addAll, addChild, addChild, addNewNode, addNodeReference, addNodeReference, addNodeReference, addNodeReference, appendAttributes, appendText, clear, cloneFrom, contains, containsAll, countTokenName, dump, fireNodeReferenceChildHasChanged, fireNodeReferenceHasChanged, firstTokenName, firstTokenName, fixNode, fixNodeTree, get, getAttributeValue, getHandler, getId, getMember, getMember, getMember, getMember, getMemberChild, getMemberChild, getMemberChild, getMemberList, getMemberListChild, getMemberOption, getMemberOption, getMemberOption, getMemberValue, getMemberValue, getMemberValue, getNodeReferenceCount, getNodeReferenceCount, getNodeReferenceId, getNodeReferenceId, getOption, getOption, getOption, getParentNode, getParentNode, getParentNode, getParentNode, getSimpleNode, getSingleTextChild, getThisParentNode, getThisParentNode, getTokenName, getTokenValue, hasChildren, hasMember, hasMember, hasNodeHandler, hasNodeReference, hasNodeReferenceChildNodes, hasNodeReferenceChildNodes, hasNodeReferenceId, hasNodeReferenceId, hasSingleTextChild, hasTokenName, hasTokenValue, indexOf, isEmpty, iterator, jjtAccept, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, lastIndexOf, lastTokenName, lastTokenName, listIterator, listIterator, memberElement, newChildren, newNode, newNode, newNode, newNode, newNode, newNode, newNode, newNodeReferenceAttribute, onNodeReferenceChildHasChanged, onNodeReferenceHasChanged, printXML, printXML, removeAll, removeAttribute, removeChild, removeChild, removeNodeReference, replace, retainAll, set, setHandler, setMemberChild, setMemberChild, setMemberChild, setMemberList, setMemberListChild, setMemberOption, setMemberOption, setMemberOption, setMemberValue, setMemberValue, setMemberValue, setNodeReference, setNodeReference, setNodeReference, setOption, setOption, setOption, setOption, setTokenName, setTokenValue, size, strSingleTextChild, subList, toArray, toArray, toString, toString, toXML, toXML
 
Methods inherited from interface org.dom4j.Element
add, add, add, add, add, addAttribute, addAttribute, addCDATA, addComment, addEntity, additionalNamespaces, addNamespace, addProcessingInstruction, addProcessingInstruction, addText, attribute, attribute, attribute, attributeCount, attributeIterator, attributes, attributeValue, attributeValue, attributeValue, attributeValue, createCopy, createCopy, createCopy, declaredNamespaces, element, element, elementIterator, elementIterator, elementIterator, elements, elements, elements, elementText, elementText, elementTextTrim, elementTextTrim, getData, getNamespace, getNamespaceForPrefix, getNamespaceForURI, getNamespacePrefix, getNamespaceURI, getQName, getQName, getQualifiedName, getStringValue, getText, getTextTrim, getXPathResult, hasMixedContent, isRootElement, isTextOnly, remove, remove, remove, remove, remove, setAttributes, setAttributeValue, setAttributeValue, setData, setQName
 
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

log

protected static final Logger log
Constructor Detail

DbMappingTargetInsertNode

public DbMappingTargetInsertNode()
constructor.

Method Detail

getRecordFieldSqlNode

public SimpleNode getRecordFieldSqlNode(String name)
get Sql-Expression for record field computation. by name.

Specified by:
getRecordFieldSqlNode in interface DbMappingSourceTableList

getRecordFieldSqlNode

public SimpleNode getRecordFieldSqlNode(String name,
                                        String table,
                                        String schema)
unsued. .... what an idea but not currently used.

Specified by:
getRecordFieldSqlNode in interface DbMappingSourceTableList

getSchemaTableSqlNode

public SimpleNode getSchemaTableSqlNode(String name)
unsued. .... what an idea but not currently used.

Specified by:
getSchemaTableSqlNode in interface DbMappingSourceTableList

getSchemaTableSqlNode

public SimpleNode getSchemaTableSqlNode(String name,
                                        String schema)
unsued. .... what an idea but not currently used.

Specified by:
getSchemaTableSqlNode in interface DbMappingSourceTableList

getSchemaTableSqlNode

public SimpleNode getSchemaTableSqlNode(int i)
unsued. .... what an idea but not currently used.

Specified by:
getSchemaTableSqlNode in interface DbMappingSourceTableList

getRecordFieldSqlNode

public SimpleNode getRecordFieldSqlNode(int i)
get Sql-Expression for record field computation. by index.

Specified by:
getRecordFieldSqlNode in interface DbMappingSourceSelector

getSqlCondition

public SimpleNode getSqlCondition()
get Sql-Expression for condition. (often an and-list)

Specified by:
getSqlCondition in interface DbMappingSourceSelector

getTargetTable

public DbMappingTargetTable getTargetTable()
get mapping target table. implemented in the "into" child property.

Specified by:
getTargetTable in interface DbMappingTargetInsert

setTargetTable

public void setTargetTable(DbMappingTargetTable into)
set mapping target table. implemented in the "into" child property.


hasSqlInsertIntoClauseQ

public SqlInsertNewIntoClauseQ hasSqlInsertIntoClauseQ()
get sql syntx reference table. implemented in the "clause" child property.


setSqlInsertIntoClauseQ

public void setSqlInsertIntoClauseQ(SqlInsertNewIntoClauseQ clause)
set sql syntx reference table. implemented in the "clause" child property.


setSourceFieldList

public void setSourceFieldList(DbMappingRecordFieldList source)
set property of a DbMappingRecordFieldList.


getSourceFieldList

public DbMappingRecordFieldList getSourceFieldList()
get property of a DbMappingRecordFieldList.


getDbMappingRecordField

public DbMappingRecordField getDbMappingRecordField(String name)
get DbMappingRecordField by name. implemented via list property.


getDbMappingRecordField

public DbMappingRecordField getDbMappingRecordField(int i)
get DbMappingRecordField by index. implemented via list property.

Specified by:
getDbMappingRecordField in interface DbMappingSourceSelector

getDbMappingRecordFieldList

public List getDbMappingRecordFieldList()
the field list. This is usually the expanded field list unless the internal mechanics were unable to expand a starfield - in that case we try to let the later stages to do its work and return the unexpended fieldlist.

Specified by:
getDbMappingRecordFieldList in interface DbMappingTargetInsert

getRecordNameList

public List getRecordNameList()
here an alias for getDbMappingRecordFieldList()

Specified by:
getRecordNameList in interface HasRecordNameList
Returns:
List of HasRecordName

addDbMappingRecordField

public void addDbMappingRecordField(DbMappingRecordField field)
add a field name to the record definition. If it is a starfield we try to expand the name list right away into a secondary set of expanded field names.


expandSourceRecordColumns

public int expandSourceRecordColumns(DbSchemaTableList resolver)
Specified by:
expandSourceRecordColumns in interface DbMappingSimpleNode
Overrides:
expandSourceRecordColumns in class DbMappingScriptNode

setSqlWhereClause

public void setSqlWhereClause(SqlWhereClauseQ clause)
set ref to sql syntax part.


getSqlWhereClause

public SimpleNode getSqlWhereClause()
get ref to sql syntax part.


setSqlAllDistinctHint

public void setSqlAllDistinctHint(SqlAllDistinctHintQ clause)
set ref to sql syntax part.


getSqlAllDistinctHint

public SimpleNode getSqlAllDistinctHint()
get ref to sql syntax part.


setSqlOldNewHint

public void setSqlOldNewHint(SqlOldNewHintQ clause)
set ref to sql syntax part.


getSqlOldNewHint

public SimpleNode getSqlOldNewHint()
get ref to sql syntax part.


getSqlOldNewHintQ

public SqlOldNewHintQ getSqlOldNewHintQ()
get ref to sql syntax part.


isOldHint

public boolean isOldHint()
test of some pre-existing record.. implemented by ref to sql syntax part.

Specified by:
isOldHint in interface DbMappingTargetInsert

isNewHint

public boolean isNewHint()
test for no pre-existing record.. implemented by ref to sql syntax part.

Specified by:
isNewHint in interface DbMappingTargetInsert

isDefaultHint

public boolean isDefaultHint()
test pre-existing record as normal.. implemented by ref to sql syntax part.

Specified by:
isDefaultHint in interface DbMappingTargetInsert

setInsertHint

public void setInsertHint(boolean updates)
set attribute "insert" of node.


setUpdateHint

public void setUpdateHint(boolean updates)
set attribute "update" of node.


setExistsHint

public void setExistsHint(boolean exists)
set attribute "exists" of node.


getInsertHint

public String getInsertHint()
get attribute "insert" of node.


getUpdateHint

public String getUpdateHint()
get attribute "update" of node.


getExistsHint

public String getExistsHint()
get attribute "exists" of node.


isInsertHint

public boolean isInsertHint()
insert data sink is real insert operation.. test attribute "insert" of node.

Specified by:
isInsertHint in interface DbMappingTargetInsert

isUpdateHint

public boolean isUpdateHint()
insert data sink is some update operation.. test attribute "update" of node.

Specified by:
isUpdateHint in interface DbMappingTargetInsert

isExistsHint

public boolean isExistsHint()
insert data sink is only checking for old record.. test attribute "exists" of node.

Specified by:
isExistsHint in interface DbMappingTargetInsert

getAsInsertRecord

public String getAsInsertRecord()
set target rule name as also used for materializations.. test attribute "asrecord" of node.

Specified by:
getAsInsertRecord in interface DbMappingTargetInsert

setAsInsertRecord

public void setAsInsertRecord(String name)

expandSourceTableReferences

public int expandSourceTableReferences(DbSchemaTableList resolver)
Specified by:
expandSourceTableReferences in interface DbMappingSimpleNode
Overrides:
expandSourceTableReferences in class DbMappingScriptNode

expandSourceTableColumns

public int expandSourceTableColumns(DbSchemaTableList resolver)
Specified by:
expandSourceTableColumns in interface DbMappingSimpleNode
Overrides:
expandSourceTableColumns in class DbMappingScriptNode

getUniqueKeyFieldsList

public List getUniqueKeyFieldsList()
return List of DbMappingUniqueKeyFields.. implementation in node "uniques"

Specified by:
getUniqueKeyFieldsList in interface DbMappingTargetInsert

getForeignKeyFieldsList

public List getForeignKeyFieldsList()
return List of DbMappingForeignKeyFields.. implementation in node "foreign"

Specified by:
getForeignKeyFieldsList in interface DbMappingTargetInsert

getDbMappingUniqueKeyFields

public DbMappingUniqueKeyFields getDbMappingUniqueKeyFields(int i)
elem of list of unique keys.. implementation by index into getUniqueKeyFieldsList().

Specified by:
getDbMappingUniqueKeyFields in interface DbMappingTargetInsert

getDbMappingForeignKeyFields

public DbMappingForeignKeyFields getDbMappingForeignKeyFields(int i)
elem of list of foreign keys.. implementation by index into getForeignKeyFieldsList().

Specified by:
getDbMappingForeignKeyFields in interface DbMappingTargetInsert

hasSqlWithOptionsQ

public SqlWithOptionsQ hasSqlWithOptionsQ()
get additional options. implemented by means of ref to sql syntax.


expandUniqueKeyFieldDeclarationQ

public int expandUniqueKeyFieldDeclarationQ()
Specified by:
expandUniqueKeyFieldDeclarationQ in interface DbMappingSimpleNode
Overrides:
expandUniqueKeyFieldDeclarationQ in class DbMappingScriptNode

expandForeignKeyFieldDeclarationQ

public int expandForeignKeyFieldDeclarationQ()
Specified by:
expandForeignKeyFieldDeclarationQ in interface DbMappingSimpleNode
Overrides:
expandForeignKeyFieldDeclarationQ in class DbMappingScriptNode

expandSchemaUniqueKeyFieldDeclaration

public int expandSchemaUniqueKeyFieldDeclaration(DbSchemaTableList resolver)
Specified by:
expandSchemaUniqueKeyFieldDeclaration in interface DbMappingSimpleNode
Overrides:
expandSchemaUniqueKeyFieldDeclaration in class DbMappingScriptNode

expandSchemaForeignKeyFieldDeclaration

public int expandSchemaForeignKeyFieldDeclaration(DbSchemaTableList resolver)
Specified by:
expandSchemaForeignKeyFieldDeclaration in interface DbMappingSimpleNode
Overrides:
expandSchemaForeignKeyFieldDeclaration in class DbMappingScriptNode

SMACS