org.apache.ibatis.ibator.generator.ibatis2.sqlmap.elements
Class AbstractXmlElementGenerator

java.lang.Object
  extended by org.apache.ibatis.ibator.generator.AbstractGenerator
      extended by org.apache.ibatis.ibator.generator.ibatis2.sqlmap.elements.AbstractXmlElementGenerator
Direct Known Subclasses:
CountByExampleElementGenerator, DeleteByExampleElementGenerator, DeleteByPrimaryKeyElementGenerator, ExampleWhereClauseElementGenerator, InsertElementGenerator, InsertSelectiveElementGenerator, ResultMapWithBLOBsElementGenerator, ResultMapWithoutBLOBsElementGenerator, SelectByExampleWithBLOBsElementGenerator, SelectByExampleWithoutBLOBsElementGenerator, SelectByPrimaryKeyElementGenerator, UpdateByExampleSelectiveElementGenerator, UpdateByExampleWithBLOBsElementGenerator, UpdateByExampleWithoutBLOBsElementGenerator, UpdateByPrimaryKeySelectiveElementGenerator, UpdateByPrimaryKeyWithBLOBsElementGenerator, UpdateByPrimaryKeyWithoutBLOBsElementGenerator

public abstract class AbstractXmlElementGenerator
extends AbstractGenerator

Author:
Jeff Butler

Field Summary
 
Fields inherited from class org.apache.ibatis.ibator.generator.AbstractGenerator
ibatorContext, introspectedTable, progressCallback, warnings
 
Constructor Summary
AbstractXmlElementGenerator()
           
 
Method Summary
abstract  void addElements(XmlElement parentElement)
           
protected  XmlElement getSelectKey(IntrospectedColumn introspectedColumn, GeneratedKey generatedKey)
          This method should return an XmlElement for the select key used to automatically generate keys.
 
Methods inherited from class org.apache.ibatis.ibator.generator.AbstractGenerator
getIbatorContext, getIntrospectedTable, getProgressCallback, getWarnings, setIbatorContext, setIntrospectedTable, setProgressCallback, setWarnings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractXmlElementGenerator

public AbstractXmlElementGenerator()
Method Detail

addElements

public abstract void addElements(XmlElement parentElement)

getSelectKey

protected XmlElement getSelectKey(IntrospectedColumn introspectedColumn,
                                  GeneratedKey generatedKey)
This method should return an XmlElement for the select key used to automatically generate keys.

Parameters:
introspectedColumn - the column related to the select key statement
generatedKey - the generated key for the current table
Returns:
the selectKey element