|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ibatis.ibator.internal.IbatorPluginAggregator
public final class IbatorPluginAggregator
This class is for internal use only. It contains a list of plugins for the current context and is used to aggregate plugins together. This class implements the rule that if any plugin returns "false" from a method, then no other plugin is called.
This class does not follow the normal plugin lifecycle and should not be subclassed by clients.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.ibatis.ibator.api.IbatorPlugin |
---|
IbatorPlugin.ModelClassType |
Constructor Summary | |
---|---|
IbatorPluginAggregator()
|
Method Summary | |
---|---|
void |
addPlugin(IbatorPlugin plugin)
|
java.util.List<GeneratedJavaFile> |
contextGenerateAdditionalJavaFiles()
This method can be used to generate any additional Java file needed by your implementation. |
java.util.List<GeneratedJavaFile> |
contextGenerateAdditionalJavaFiles(IntrospectedTable introspectedTable)
This method can be used to generate additional Java files needed by your implementation that might be related to a specific table. |
java.util.List<GeneratedXmlFile> |
contextGenerateAdditionalXmlFiles()
This method can be used to generate any additional XML file needed by your implementation. |
java.util.List<GeneratedXmlFile> |
contextGenerateAdditionalXmlFiles(IntrospectedTable introspectedTable)
This method can be used to generate additional XML files needed by your implementation that might be related to a specific table. |
boolean |
daoCountByExampleMethodGenerated(Method method,
Interface interfaze,
IntrospectedTable introspectedTable)
This method is called when the countByExample method has been generated in the DAO interface class. |
boolean |
daoCountByExampleMethodGenerated(Method method,
TopLevelClass topLevelClass,
IntrospectedTable introspectedTable)
This method is called when the countByExample method has been generated in the DAO implementation class. |
boolean |
daoDeleteByExampleMethodGenerated(Method method,
Interface interfaze,
IntrospectedTable introspectedTable)
This method is called when the deleteByExample method has been generated in the DAO interface class. |
boolean |
daoDeleteByExampleMethodGenerated(Method method,
TopLevelClass topLevelClass,
IntrospectedTable introspectedTable)
This method is called when the deleteByExample method has been generated in the DAO implementation class. |
boolean |
daoDeleteByPrimaryKeyMethodGenerated(Method method,
Interface interfaze,
IntrospectedTable introspectedTable)
This method is called when the deleteByPrimaryKey method has been generated in the DAO interface class. |
boolean |
daoDeleteByPrimaryKeyMethodGenerated(Method method,
TopLevelClass topLevelClass,
IntrospectedTable introspectedTable)
This method is called when the deleteByPrimaryKey method has been generated in the DAO implementation class. |
boolean |
daoImplementationGenerated(TopLevelClass topLevelClass,
IntrospectedTable introspectedTable)
This method is called when the entire DAO implementation has been generated. |
boolean |
daoInsertMethodGenerated(Method method,
Interface interfaze,
IntrospectedTable introspectedTable)
This method is called when the insert method has been generated in the DAO interface class. |
boolean |
daoInsertMethodGenerated(Method method,
TopLevelClass topLevelClass,
IntrospectedTable introspectedTable)
This method is called when the insert method has been generated in the DAO implementation class. |
boolean |
daoInsertSelectiveMethodGenerated(Method method,
Interface interfaze,
IntrospectedTable introspectedTable)
This method is called when the insert selective method has been generated in the DAO interface class. |
boolean |
daoInsertSelectiveMethodGenerated(Method method,
TopLevelClass topLevelClass,
IntrospectedTable introspectedTable)
This method is called when the insert selective method has been generated in the DAO implementation class. |
boolean |
daoInterfaceGenerated(Interface interfaze,
IntrospectedTable introspectedTable)
This method is called when the entire DAO interface has been generated. |
boolean |
daoSelectByExampleWithBLOBsMethodGenerated(Method method,
Interface interfaze,
IntrospectedTable introspectedTable)
This method is called when the selectByExampleWithBLOBs method has been generated in the DAO interface class. |
boolean |
daoSelectByExampleWithBLOBsMethodGenerated(Method method,
TopLevelClass topLevelClass,
IntrospectedTable introspectedTable)
This method is called when the selectByExampleWithBLOBs method has been generated in the DAO implementation class. |
boolean |
daoSelectByExampleWithoutBLOBsMethodGenerated(Method method,
Interface interfaze,
IntrospectedTable introspectedTable)
This method is called when the selectByExampleWithoutBLOBs method has been generated in the DAO interface class. |
boolean |
daoSelectByExampleWithoutBLOBsMethodGenerated(Method method,
TopLevelClass topLevelClass,
IntrospectedTable introspectedTable)
This method is called when the selectByExampleWithoutBLOBs method has been generated in the DAO implementation class. |
boolean |
daoSelectByPrimaryKeyMethodGenerated(Method method,
Interface interfaze,
IntrospectedTable introspectedTable)
This method is called when the selectByPrimaryKey method has been generated in the DAO interface class. |
boolean |
daoSelectByPrimaryKeyMethodGenerated(Method method,
TopLevelClass topLevelClass,
IntrospectedTable introspectedTable)
This method is called when the selectByPrimaryKey method has been generated in the DAO implementation class. |
boolean |
daoUpdateByExampleSelectiveMethodGenerated(Method method,
Interface interfaze,
IntrospectedTable introspectedTable)
This method is called when the updateByExampleSelective method has been generated in the DAO interface class. |
boolean |
daoUpdateByExampleSelectiveMethodGenerated(Method method,
TopLevelClass topLevelClass,
IntrospectedTable introspectedTable)
This method is called when the updateByExampleSelective method has been generated in the DAO implementation class. |
boolean |
daoUpdateByExampleWithBLOBsMethodGenerated(Method method,
Interface interfaze,
IntrospectedTable introspectedTable)
This method is called when the updateByExampleWithBLOBs method has been generated in the DAO interface class. |
boolean |
daoUpdateByExampleWithBLOBsMethodGenerated(Method method,
TopLevelClass topLevelClass,
IntrospectedTable introspectedTable)
This method is called when the updateByExampleWithBLOBs method has been generated in the DAO implementation class. |
boolean |
daoUpdateByExampleWithoutBLOBsMethodGenerated(Method method,
Interface interfaze,
IntrospectedTable introspectedTable)
This method is called when the updateByExampleWithoutBLOBs method has been generated in the DAO interface class. |
boolean |
daoUpdateByExampleWithoutBLOBsMethodGenerated(Method method,
TopLevelClass topLevelClass,
IntrospectedTable introspectedTable)
This method is called when the updateByExampleWithoutBLOBs method has been generated in the DAO implementation class. |
boolean |
daoUpdateByPrimaryKeySelectiveMethodGenerated(Method method,
Interface interfaze,
IntrospectedTable introspectedTable)
This method is called when the updateByPrimaryKeySelective method has been generated in the DAO interface class. |
boolean |
daoUpdateByPrimaryKeySelectiveMethodGenerated(Method method,
TopLevelClass topLevelClass,
IntrospectedTable introspectedTable)
This method is called when the updateByPrimaryKeySelective method has been generated in the DAO implementation class. |
boolean |
daoUpdateByPrimaryKeyWithBLOBsMethodGenerated(Method method,
Interface interfaze,
IntrospectedTable introspectedTable)
This method is called when the updateByPrimaryKeyWithBLOBs method has been generated in the DAO interface class. |
boolean |
daoUpdateByPrimaryKeyWithBLOBsMethodGenerated(Method method,
TopLevelClass topLevelClass,
IntrospectedTable introspectedTable)
This method is called when the updateByPrimaryKeyWithBLOBs method has been generated in the DAO implementation class. |
boolean |
daoUpdateByPrimaryKeyWithoutBLOBsMethodGenerated(Method method,
Interface interfaze,
IntrospectedTable introspectedTable)
This method is called when the updateByPrimaryKeyWithoutBLOBs method has been generated in the DAO interface class. |
boolean |
daoUpdateByPrimaryKeyWithoutBLOBsMethodGenerated(Method method,
TopLevelClass topLevelClass,
IntrospectedTable introspectedTable)
This method is called when the updateByPrimaryKeyWithoutBLOBs method has been generated in the DAO implementation class. |
void |
initialized(IntrospectedTable introspectedTable)
This method is called just before the getGeneratedXXXFiles methods are called on the introspected table. |
boolean |
modelBaseRecordClassGenerated(TopLevelClass tlc,
IntrospectedTable introspectedTable)
This method is called after the base record class is generated by the ibator supplied JavaModelGenerator. |
boolean |
modelExampleClassGenerated(TopLevelClass tlc,
IntrospectedTable introspectedTable)
This method is called after the example class is generated by the ibator supplied JavaModelGenerator. |
boolean |
modelFieldGenerated(Field field,
TopLevelClass topLevelClass,
IntrospectedColumn introspectedColumn,
IntrospectedTable introspectedTable,
IbatorPlugin.ModelClassType modelClassType)
This method is called after the field is generated for a specific column in a table. |
boolean |
modelGetterMethodGenerated(Method method,
TopLevelClass topLevelClass,
IntrospectedColumn introspectedColumn,
IntrospectedTable introspectedTable,
IbatorPlugin.ModelClassType modelClassType)
This method is called after the getter, or accessor, method is generated for a specific column in a table. |
boolean |
modelPrimaryKeyClassGenerated(TopLevelClass tlc,
IntrospectedTable introspectedTable)
This method is called after the primary key class is generated by the ibator supplied JavaModelGenerator. |
boolean |
modelRecordWithBLOBsClassGenerated(TopLevelClass tlc,
IntrospectedTable introspectedTable)
This method is called after the record with BLOBs class is generated by the ibator supplied JavaModelGenerator. |
boolean |
modelSetterMethodGenerated(Method method,
TopLevelClass topLevelClass,
IntrospectedColumn introspectedColumn,
IntrospectedTable introspectedTable,
IbatorPlugin.ModelClassType modelClassType)
This method is called after the setter, or mutator, method is generated for a specific column in a table. |
void |
setIbatorContext(IbatorContext ibatorContext)
Set the context under which this plugin is running |
void |
setProperties(java.util.Properties properties)
Set properties from the plugin configuration |
boolean |
sqlMapCountByExampleElementGenerated(XmlElement element,
IntrospectedTable table)
This method is called when the countByExample element is generated. |
boolean |
sqlMapDeleteByExampleElementGenerated(XmlElement element,
IntrospectedTable table)
This method is called when the deleteByExample element is generated. |
boolean |
sqlMapDeleteByPrimaryKeyElementGenerated(XmlElement element,
IntrospectedTable table)
This method is called when the deleteByPrimaryKey element is generated. |
boolean |
sqlMapDocumentGenerated(Document document,
IntrospectedTable introspectedTable)
This method is called when the SqlMap document has been generated. |
boolean |
sqlMapExampleWhereClauseElementGenerated(XmlElement element,
IntrospectedTable introspectedTable)
This method is called when the exampleWhereClause element is generated. |
boolean |
sqlMapGenerated(GeneratedXmlFile sqlMap,
IntrospectedTable introspectedTable)
This method is called when the SqlMap file has been generated. |
boolean |
sqlMapInsertElementGenerated(XmlElement element,
IntrospectedTable introspectedTable)
This method is called when the insert element is generated. |
boolean |
sqlMapInsertSelectiveElementGenerated(XmlElement element,
IntrospectedTable introspectedTable)
This method is called when the insert selective element is generated. |
boolean |
sqlMapResultMapWithBLOBsElementGenerated(XmlElement element,
IntrospectedTable introspectedTable)
This method is called when the resultMap with BLOBs element is generated - this resultMap will extend the base resultMap. |
boolean |
sqlMapResultMapWithoutBLOBsElementGenerated(XmlElement element,
IntrospectedTable introspectedTable)
This method is called when the base resultMap is generated. |
boolean |
sqlMapSelectByExampleWithBLOBsElementGenerated(XmlElement element,
IntrospectedTable introspectedTable)
This method is called when the selectByExampleWithBLOBs element is generated. |
boolean |
sqlMapSelectByExampleWithoutBLOBsElementGenerated(XmlElement element,
IntrospectedTable introspectedTable)
This method is called when the selectByExample element is generated. |
boolean |
sqlMapSelectByPrimaryKeyElementGenerated(XmlElement element,
IntrospectedTable introspectedTable)
This method is called when the selectByPrimaryKey element is generated. |
boolean |
sqlMapUpdateByExampleSelectiveElementGenerated(XmlElement element,
IntrospectedTable introspectedTable)
This method is called when the updateByExampleSelective element is generated. |
boolean |
sqlMapUpdateByExampleWithBLOBsElementGenerated(XmlElement element,
IntrospectedTable introspectedTable)
This method is called when the updateByExampleWithBLOBs element is generated. |
boolean |
sqlMapUpdateByExampleWithoutBLOBsElementGenerated(XmlElement element,
IntrospectedTable introspectedTable)
This method is called when the updateByExampleWithourBLOBs element is generated. |
boolean |
sqlMapUpdateByPrimaryKeySelectiveElementGenerated(XmlElement element,
IntrospectedTable introspectedTable)
This method is called when the updateByPrimaryKeySelective element is generated. |
boolean |
sqlMapUpdateByPrimaryKeyWithBLOBsElementGenerated(XmlElement element,
IntrospectedTable introspectedTable)
This method is called when the updateByPrimaryKeyWithBLOBs element is generated. |
boolean |
sqlMapUpdateByPrimaryKeyWithoutBLOBsElementGenerated(XmlElement element,
IntrospectedTable introspectedTable)
This method is called when the updateByPrimaryKeyWithoutBLOBs element is generated. |
boolean |
validate(java.util.List<java.lang.String> warnings)
This method is called after all the setXXX methods are called, but before any other method is called. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IbatorPluginAggregator()
Method Detail |
---|
public void addPlugin(IbatorPlugin plugin)
public void setIbatorContext(IbatorContext ibatorContext)
IbatorPlugin
setIbatorContext
in interface IbatorPlugin
public void setProperties(java.util.Properties properties)
IbatorPlugin
setProperties
in interface IbatorPlugin
public boolean validate(java.util.List<java.lang.String> warnings)
IbatorPlugin
validate
in interface IbatorPlugin
warnings
- add strings to this list to specify warnings. For example,
if the plugin is invalid, you should specify why. Warnings are reported
to users after the completion of the ibator run.
public boolean modelBaseRecordClassGenerated(TopLevelClass tlc, IntrospectedTable introspectedTable)
IbatorPlugin
modelBaseRecordClassGenerated
in interface IbatorPlugin
tlc
- the generated base record classintrospectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean modelRecordWithBLOBsClassGenerated(TopLevelClass tlc, IntrospectedTable introspectedTable)
IbatorPlugin
modelRecordWithBLOBsClassGenerated
in interface IbatorPlugin
tlc
- the generated record with BLOBs classintrospectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean sqlMapCountByExampleElementGenerated(XmlElement element, IntrospectedTable table)
IbatorPlugin
sqlMapCountByExampleElementGenerated
in interface IbatorPlugin
element
- the generated <select> elementtable
- ibator's class containing information
about the table as introspected from the database
public boolean sqlMapDeleteByExampleElementGenerated(XmlElement element, IntrospectedTable table)
IbatorPlugin
sqlMapDeleteByExampleElementGenerated
in interface IbatorPlugin
element
- the generated <delete> elementtable
- ibator's class containing information
about the table as introspected from the database
public boolean sqlMapDeleteByPrimaryKeyElementGenerated(XmlElement element, IntrospectedTable table)
IbatorPlugin
sqlMapDeleteByPrimaryKeyElementGenerated
in interface IbatorPlugin
element
- the generated <delete> elementtable
- ibator's class containing information
about the table as introspected from the database
public boolean modelExampleClassGenerated(TopLevelClass tlc, IntrospectedTable introspectedTable)
IbatorPlugin
modelExampleClassGenerated
in interface IbatorPlugin
tlc
- the generated example classintrospectedTable
- ibator's class containing information
about the table as introspected from the database
public java.util.List<GeneratedJavaFile> contextGenerateAdditionalJavaFiles(IntrospectedTable introspectedTable)
IbatorPlugin
contextGenerateAdditionalJavaFiles
in interface IbatorPlugin
introspectedTable
- ibator's class containing information
about the table as introspected from the database
public java.util.List<GeneratedXmlFile> contextGenerateAdditionalXmlFiles(IntrospectedTable introspectedTable)
IbatorPlugin
contextGenerateAdditionalXmlFiles
in interface IbatorPlugin
introspectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean modelPrimaryKeyClassGenerated(TopLevelClass tlc, IntrospectedTable introspectedTable)
IbatorPlugin
modelPrimaryKeyClassGenerated
in interface IbatorPlugin
tlc
- the generated primary key classintrospectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean sqlMapResultMapWithoutBLOBsElementGenerated(XmlElement element, IntrospectedTable introspectedTable)
IbatorPlugin
sqlMapResultMapWithoutBLOBsElementGenerated
in interface IbatorPlugin
element
- the generated <resultMap> elementintrospectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean sqlMapExampleWhereClauseElementGenerated(XmlElement element, IntrospectedTable introspectedTable)
IbatorPlugin
sqlMapExampleWhereClauseElementGenerated
in interface IbatorPlugin
element
- the generated <sql> elementintrospectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean sqlMapInsertElementGenerated(XmlElement element, IntrospectedTable introspectedTable)
IbatorPlugin
sqlMapInsertElementGenerated
in interface IbatorPlugin
element
- the generated <insert> elementintrospectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean sqlMapResultMapWithBLOBsElementGenerated(XmlElement element, IntrospectedTable introspectedTable)
IbatorPlugin
sqlMapResultMapWithBLOBsElementGenerated
in interface IbatorPlugin
element
- the generated <resultMap> elementintrospectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean sqlMapSelectByExampleWithoutBLOBsElementGenerated(XmlElement element, IntrospectedTable introspectedTable)
IbatorPlugin
sqlMapSelectByExampleWithoutBLOBsElementGenerated
in interface IbatorPlugin
element
- the generated <select> elementintrospectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean sqlMapSelectByExampleWithBLOBsElementGenerated(XmlElement element, IntrospectedTable introspectedTable)
IbatorPlugin
sqlMapSelectByExampleWithBLOBsElementGenerated
in interface IbatorPlugin
element
- the generated <select> elementintrospectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean sqlMapSelectByPrimaryKeyElementGenerated(XmlElement element, IntrospectedTable introspectedTable)
IbatorPlugin
sqlMapSelectByPrimaryKeyElementGenerated
in interface IbatorPlugin
element
- the generated <select> elementintrospectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean sqlMapGenerated(GeneratedXmlFile sqlMap, IntrospectedTable introspectedTable)
IbatorPlugin
sqlMapGenerated
in interface IbatorPlugin
sqlMap
- the generated file (containing the file name,
package name, and project name)introspectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean sqlMapUpdateByExampleSelectiveElementGenerated(XmlElement element, IntrospectedTable introspectedTable)
IbatorPlugin
sqlMapUpdateByExampleSelectiveElementGenerated
in interface IbatorPlugin
element
- the generated <update> elementintrospectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean sqlMapUpdateByExampleWithBLOBsElementGenerated(XmlElement element, IntrospectedTable introspectedTable)
IbatorPlugin
sqlMapUpdateByExampleWithBLOBsElementGenerated
in interface IbatorPlugin
element
- the generated <update> elementintrospectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean sqlMapUpdateByExampleWithoutBLOBsElementGenerated(XmlElement element, IntrospectedTable introspectedTable)
IbatorPlugin
sqlMapUpdateByExampleWithoutBLOBsElementGenerated
in interface IbatorPlugin
element
- the generated <update> elementintrospectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean sqlMapUpdateByPrimaryKeySelectiveElementGenerated(XmlElement element, IntrospectedTable introspectedTable)
IbatorPlugin
sqlMapUpdateByPrimaryKeySelectiveElementGenerated
in interface IbatorPlugin
element
- the generated <update> elementintrospectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean sqlMapUpdateByPrimaryKeyWithBLOBsElementGenerated(XmlElement element, IntrospectedTable introspectedTable)
IbatorPlugin
sqlMapUpdateByPrimaryKeyWithBLOBsElementGenerated
in interface IbatorPlugin
element
- the generated <update> elementintrospectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean sqlMapUpdateByPrimaryKeyWithoutBLOBsElementGenerated(XmlElement element, IntrospectedTable introspectedTable)
IbatorPlugin
sqlMapUpdateByPrimaryKeyWithoutBLOBsElementGenerated
in interface IbatorPlugin
element
- the generated <update> elementintrospectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean daoCountByExampleMethodGenerated(Method method, Interface interfaze, IntrospectedTable introspectedTable)
IbatorPlugin
daoCountByExampleMethodGenerated
in interface IbatorPlugin
method
- the generated countByExample methodinterfaze
- the partially implemented DAO interface
class. You can add additional imported classes to the
interface class if necessary.introspectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean daoCountByExampleMethodGenerated(Method method, TopLevelClass topLevelClass, IntrospectedTable introspectedTable)
IbatorPlugin
daoCountByExampleMethodGenerated
in interface IbatorPlugin
method
- the generated countByExample methodtopLevelClass
- the partially implemented DAO implementation
class. You can add additional imported classes to the
implementation class if necessary.introspectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean daoDeleteByExampleMethodGenerated(Method method, Interface interfaze, IntrospectedTable introspectedTable)
IbatorPlugin
daoDeleteByExampleMethodGenerated
in interface IbatorPlugin
method
- the generated deleteByExample methodinterfaze
- the partially implemented DAO interface
class. You can add additional imported classes to the
interface class if necessary.introspectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean daoDeleteByExampleMethodGenerated(Method method, TopLevelClass topLevelClass, IntrospectedTable introspectedTable)
IbatorPlugin
daoDeleteByExampleMethodGenerated
in interface IbatorPlugin
method
- the generated deleteByExample methodtopLevelClass
- the partially implemented DAO implementation
class. You can add additional imported classes to the
implementation class if necessary.introspectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean daoDeleteByPrimaryKeyMethodGenerated(Method method, Interface interfaze, IntrospectedTable introspectedTable)
IbatorPlugin
daoDeleteByPrimaryKeyMethodGenerated
in interface IbatorPlugin
method
- the generated deleteByPrimaryKey methodinterfaze
- the partially implemented DAO interface
class. You can add additional imported classes to the
interface class if necessary.introspectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean daoDeleteByPrimaryKeyMethodGenerated(Method method, TopLevelClass topLevelClass, IntrospectedTable introspectedTable)
IbatorPlugin
daoDeleteByPrimaryKeyMethodGenerated
in interface IbatorPlugin
method
- the generated deleteByPrimaryKey methodtopLevelClass
- the partially implemented DAO implementation
class. You can add additional imported classes to the
implementation class if necessary.introspectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean daoImplementationGenerated(TopLevelClass topLevelClass, IntrospectedTable introspectedTable)
IbatorPlugin
daoImplementationGenerated
in interface IbatorPlugin
topLevelClass
- the generated implementation classintrospectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean daoInsertMethodGenerated(Method method, Interface interfaze, IntrospectedTable introspectedTable)
IbatorPlugin
daoInsertMethodGenerated
in interface IbatorPlugin
method
- the generated insert methodinterfaze
- the partially implemented DAO interface
class. You can add additional imported classes to the
interface class if necessary.introspectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean daoInsertMethodGenerated(Method method, TopLevelClass topLevelClass, IntrospectedTable introspectedTable)
IbatorPlugin
daoInsertMethodGenerated
in interface IbatorPlugin
method
- the generated insert methodtopLevelClass
- the partially implemented DAO implementation
class. You can add additional imported classes to the
implementation class if necessary.introspectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean daoInterfaceGenerated(Interface interfaze, IntrospectedTable introspectedTable)
IbatorPlugin
daoInterfaceGenerated
in interface IbatorPlugin
interfaze
- the generated interfaceintrospectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean daoSelectByExampleWithBLOBsMethodGenerated(Method method, Interface interfaze, IntrospectedTable introspectedTable)
IbatorPlugin
daoSelectByExampleWithBLOBsMethodGenerated
in interface IbatorPlugin
method
- the generated selectByExampleWithBLOBs methodinterfaze
- the partially implemented DAO interface
class. You can add additional imported classes to the
interface class if necessary.introspectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean daoSelectByExampleWithBLOBsMethodGenerated(Method method, TopLevelClass topLevelClass, IntrospectedTable introspectedTable)
IbatorPlugin
daoSelectByExampleWithBLOBsMethodGenerated
in interface IbatorPlugin
method
- the generated selectByExampleWithBLOBs methodtopLevelClass
- the partially implemented DAO implementation
class. You can add additional imported classes to the
implementation class if necessary.introspectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean daoSelectByExampleWithoutBLOBsMethodGenerated(Method method, Interface interfaze, IntrospectedTable introspectedTable)
IbatorPlugin
daoSelectByExampleWithoutBLOBsMethodGenerated
in interface IbatorPlugin
method
- the generated selectByExampleWithoutBLOBs methodinterfaze
- the partially implemented DAO interface
class. You can add additional imported classes to the
interface class if necessary.introspectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean daoSelectByExampleWithoutBLOBsMethodGenerated(Method method, TopLevelClass topLevelClass, IntrospectedTable introspectedTable)
IbatorPlugin
daoSelectByExampleWithoutBLOBsMethodGenerated
in interface IbatorPlugin
method
- the generated selectByExampleWithoutBLOBs methodtopLevelClass
- the partially implemented DAO implementation
class. You can add additional imported classes to the
implementation class if necessary.introspectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean daoSelectByPrimaryKeyMethodGenerated(Method method, Interface interfaze, IntrospectedTable introspectedTable)
IbatorPlugin
daoSelectByPrimaryKeyMethodGenerated
in interface IbatorPlugin
method
- the generated selectByPrimaryKey methodinterfaze
- the partially implemented DAO interface
class. You can add additional imported classes to the
interface class if necessary.introspectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean daoSelectByPrimaryKeyMethodGenerated(Method method, TopLevelClass topLevelClass, IntrospectedTable introspectedTable)
IbatorPlugin
daoSelectByPrimaryKeyMethodGenerated
in interface IbatorPlugin
method
- the generated selectByPrimaryKey methodtopLevelClass
- the partially implemented DAO implementation
class. You can add additional imported classes to the
implementation class if necessary.introspectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean daoUpdateByExampleSelectiveMethodGenerated(Method method, Interface interfaze, IntrospectedTable introspectedTable)
IbatorPlugin
daoUpdateByExampleSelectiveMethodGenerated
in interface IbatorPlugin
method
- the generated updateByExampleSelective methodinterfaze
- the partially implemented DAO interface
class. You can add additional imported classes to the
interface class if necessary.introspectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean daoUpdateByExampleSelectiveMethodGenerated(Method method, TopLevelClass topLevelClass, IntrospectedTable introspectedTable)
IbatorPlugin
daoUpdateByExampleSelectiveMethodGenerated
in interface IbatorPlugin
method
- the generated updateByExampleSelective methodtopLevelClass
- the partially implemented DAO implementation
class. You can add additional imported classes to the
implementation class if necessary.introspectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean daoUpdateByExampleWithBLOBsMethodGenerated(Method method, Interface interfaze, IntrospectedTable introspectedTable)
IbatorPlugin
daoUpdateByExampleWithBLOBsMethodGenerated
in interface IbatorPlugin
method
- the generated updateByExampleWithBLOBs methodinterfaze
- the partially implemented DAO interface
class. You can add additional imported classes to the
interface class if necessary.introspectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean daoUpdateByExampleWithBLOBsMethodGenerated(Method method, TopLevelClass topLevelClass, IntrospectedTable introspectedTable)
IbatorPlugin
daoUpdateByExampleWithBLOBsMethodGenerated
in interface IbatorPlugin
method
- the generated updateByExampleWithBLOBs methodtopLevelClass
- the partially implemented DAO implementation
class. You can add additional imported classes to the
implementation class if necessary.introspectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean daoUpdateByExampleWithoutBLOBsMethodGenerated(Method method, Interface interfaze, IntrospectedTable introspectedTable)
IbatorPlugin
daoUpdateByExampleWithoutBLOBsMethodGenerated
in interface IbatorPlugin
method
- the generated updateByExampleWithoutBLOBs methodinterfaze
- the partially implemented DAO interface
class. You can add additional imported classes to the
interface class if necessary.introspectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean daoUpdateByExampleWithoutBLOBsMethodGenerated(Method method, TopLevelClass topLevelClass, IntrospectedTable introspectedTable)
IbatorPlugin
daoUpdateByExampleWithoutBLOBsMethodGenerated
in interface IbatorPlugin
method
- the generated updateByExampleWithoutBLOBs methodtopLevelClass
- the partially implemented DAO implementation
class. You can add additional imported classes to the
implementation class if necessary.introspectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean daoUpdateByPrimaryKeySelectiveMethodGenerated(Method method, Interface interfaze, IntrospectedTable introspectedTable)
IbatorPlugin
daoUpdateByPrimaryKeySelectiveMethodGenerated
in interface IbatorPlugin
method
- the generated updateByPrimaryKeySelective methodinterfaze
- the partially implemented DAO interface
class. You can add additional imported classes to the
interface class if necessary.introspectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean daoUpdateByPrimaryKeySelectiveMethodGenerated(Method method, TopLevelClass topLevelClass, IntrospectedTable introspectedTable)
IbatorPlugin
daoUpdateByPrimaryKeySelectiveMethodGenerated
in interface IbatorPlugin
method
- the generated updateByPrimaryKeySelective methodtopLevelClass
- the partially implemented DAO implementation
class. You can add additional imported classes to the
implementation class if necessary.introspectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean daoUpdateByPrimaryKeyWithBLOBsMethodGenerated(Method method, Interface interfaze, IntrospectedTable introspectedTable)
IbatorPlugin
daoUpdateByPrimaryKeyWithBLOBsMethodGenerated
in interface IbatorPlugin
method
- the generated updateByPrimaryKeyWithBLOBs methodinterfaze
- the partially implemented DAO interface
class. You can add additional imported classes to the
interface class if necessary.introspectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean daoUpdateByPrimaryKeyWithBLOBsMethodGenerated(Method method, TopLevelClass topLevelClass, IntrospectedTable introspectedTable)
IbatorPlugin
daoUpdateByPrimaryKeyWithBLOBsMethodGenerated
in interface IbatorPlugin
method
- the generated updateByPrimaryKeyWithBLOBs methodtopLevelClass
- the partially implemented DAO implementation
class. You can add additional imported classes to the
implementation class if necessary.introspectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean daoUpdateByPrimaryKeyWithoutBLOBsMethodGenerated(Method method, Interface interfaze, IntrospectedTable introspectedTable)
IbatorPlugin
daoUpdateByPrimaryKeyWithoutBLOBsMethodGenerated
in interface IbatorPlugin
method
- the generated updateByPrimaryKeyWithoutBLOBs methodinterfaze
- the partially implemented DAO interface
class. You can add additional imported classes to the
interface class if necessary.introspectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean daoUpdateByPrimaryKeyWithoutBLOBsMethodGenerated(Method method, TopLevelClass topLevelClass, IntrospectedTable introspectedTable)
IbatorPlugin
daoUpdateByPrimaryKeyWithoutBLOBsMethodGenerated
in interface IbatorPlugin
method
- the generated updateByPrimaryKeyWithBLOBs methodtopLevelClass
- the partially implemented DAO implementation
class. You can add additional imported classes to the
implementation class if necessary.introspectedTable
- ibator's class containing information
about the table as introspected from the database
public java.util.List<GeneratedJavaFile> contextGenerateAdditionalJavaFiles()
IbatorPlugin
contextGenerateAdditionalJavaFiles
in interface IbatorPlugin
public java.util.List<GeneratedXmlFile> contextGenerateAdditionalXmlFiles()
IbatorPlugin
contextGenerateAdditionalXmlFiles
in interface IbatorPlugin
public boolean sqlMapDocumentGenerated(Document document, IntrospectedTable introspectedTable)
IbatorPlugin
sqlMapDocumentGenerated
in interface IbatorPlugin
document
- the generated document (note that this is ibator's
internal Document class - not the w3c XML Document class)introspectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean modelFieldGenerated(Field field, TopLevelClass topLevelClass, IntrospectedColumn introspectedColumn, IntrospectedTable introspectedTable, IbatorPlugin.ModelClassType modelClassType)
IbatorPlugin
modelFieldGenerated
in interface IbatorPlugin
field
- the field generated for the specified columntopLevelClass
- the partially implemented model
class. You can add additional imported classes to the
implementation class if necessary.introspectedColumn
- ibator's class containing information
about the column related to this field as introspected from
the databaseintrospectedTable
- ibator's class containing information
about the table as introspected from the databasemodelClassType
- the type of class that the field is generated
for
public boolean modelGetterMethodGenerated(Method method, TopLevelClass topLevelClass, IntrospectedColumn introspectedColumn, IntrospectedTable introspectedTable, IbatorPlugin.ModelClassType modelClassType)
IbatorPlugin
modelGetterMethodGenerated
in interface IbatorPlugin
method
- the getter, or accessor, method generated for
the specified columntopLevelClass
- the partially implemented model
class. You can add additional imported classes to the
implementation class if necessary.introspectedColumn
- ibator's class containing information
about the column related to this field as introspected from
the databaseintrospectedTable
- ibator's class containing information
about the table as introspected from the databasemodelClassType
- the type of class that the field is generated
for
public boolean modelSetterMethodGenerated(Method method, TopLevelClass topLevelClass, IntrospectedColumn introspectedColumn, IntrospectedTable introspectedTable, IbatorPlugin.ModelClassType modelClassType)
IbatorPlugin
modelSetterMethodGenerated
in interface IbatorPlugin
method
- the setter, or mutator, method generated for
the specified columntopLevelClass
- the partially implemented model
class. You can add additional imported classes to the
implementation class if necessary.introspectedColumn
- ibator's class containing information
about the column related to this field as introspected from
the databaseintrospectedTable
- ibator's class containing information
about the table as introspected from the databasemodelClassType
- the type of class that the field is generated
for
public boolean sqlMapInsertSelectiveElementGenerated(XmlElement element, IntrospectedTable introspectedTable)
IbatorPlugin
sqlMapInsertSelectiveElementGenerated
in interface IbatorPlugin
element
- the generated <insert> elementintrospectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean daoInsertSelectiveMethodGenerated(Method method, Interface interfaze, IntrospectedTable introspectedTable)
IbatorPlugin
daoInsertSelectiveMethodGenerated
in interface IbatorPlugin
method
- the generated insert methodinterfaze
- the partially implemented DAO interface
class. You can add additional imported classes to the
interface class if necessary.introspectedTable
- ibator's class containing information
about the table as introspected from the database
public boolean daoInsertSelectiveMethodGenerated(Method method, TopLevelClass topLevelClass, IntrospectedTable introspectedTable)
IbatorPlugin
daoInsertSelectiveMethodGenerated
in interface IbatorPlugin
method
- the generated insert methodtopLevelClass
- the partially implemented DAO implementation
class. You can add additional imported classes to the
implementation class if necessary.introspectedTable
- ibator's class containing information
about the table as introspected from the database
public void initialized(IntrospectedTable introspectedTable)
IbatorPlugin
A good example of overriding an attribute would be the case where a user wanted to change the name of one of the generated classes, change the target package, or change the name of the generated SQL map file.
Warning: Anything that is listed as an attribute should
not be changed by one of the other plugin methods. For example,
if you want to change the name of a generated example class, you
should not simply change the Type in the
modelExampleClassGenerated()
method. If you do, the
change will not be reflected in other generated artifacts.
initialized
in interface IbatorPlugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |