use of org.mybatis.generator.codegen.ibatis2.dao.elements.AbstractDAOElementGenerator in project generator by mybatis.
the class DAOGenerator method addUpdateByExampleWithBLOBsMethod.
protected void addUpdateByExampleWithBLOBsMethod(TopLevelClass topLevelClass, Interface interfaze) {
if (introspectedTable.getRules().generateUpdateByExampleWithBLOBs()) {
AbstractDAOElementGenerator methodGenerator = new UpdateByExampleWithBLOBsMethodGenerator();
initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze);
}
}
use of org.mybatis.generator.codegen.ibatis2.dao.elements.AbstractDAOElementGenerator in project generator by mybatis.
the class DAOGenerator method addUpdateByPrimaryKeySelectiveMethod.
protected void addUpdateByPrimaryKeySelectiveMethod(TopLevelClass topLevelClass, Interface interfaze) {
if (introspectedTable.getRules().generateUpdateByPrimaryKeySelective()) {
AbstractDAOElementGenerator methodGenerator = new UpdateByPrimaryKeySelectiveMethodGenerator();
initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze);
}
}
use of org.mybatis.generator.codegen.ibatis2.dao.elements.AbstractDAOElementGenerator in project generator by mybatis.
the class DAOGenerator method addUpdateByExampleParmsInnerclass.
protected void addUpdateByExampleParmsInnerclass(TopLevelClass topLevelClass, Interface interfaze) {
Rules rules = introspectedTable.getRules();
if (rules.generateUpdateByExampleSelective() || rules.generateUpdateByExampleWithBLOBs() || rules.generateUpdateByExampleWithoutBLOBs()) {
AbstractDAOElementGenerator methodGenerator = new UpdateByExampleParmsInnerclassGenerator();
initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze);
}
}
use of org.mybatis.generator.codegen.ibatis2.dao.elements.AbstractDAOElementGenerator in project generator by mybatis.
the class DAOGenerator method addDeleteByExampleMethod.
protected void addDeleteByExampleMethod(TopLevelClass topLevelClass, Interface interfaze) {
if (introspectedTable.getRules().generateDeleteByExample()) {
AbstractDAOElementGenerator methodGenerator = new DeleteByExampleMethodGenerator();
initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze);
}
}
use of org.mybatis.generator.codegen.ibatis2.dao.elements.AbstractDAOElementGenerator in project generator by mybatis.
the class DAOGenerator method addUpdateByPrimaryKeyWithBLOBsMethod.
protected void addUpdateByPrimaryKeyWithBLOBsMethod(TopLevelClass topLevelClass, Interface interfaze) {
if (introspectedTable.getRules().generateUpdateByPrimaryKeyWithBLOBs()) {
AbstractDAOElementGenerator methodGenerator = new UpdateByPrimaryKeyWithBLOBsMethodGenerator();
initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze);
}
}
Aggregations