use of org.mybatis.generator.codegen.ibatis2.dao.elements.AbstractDAOElementGenerator in project generator by mybatis.
the class DAOGenerator method addInsertMethod.
protected void addInsertMethod(TopLevelClass topLevelClass, Interface interfaze) {
if (introspectedTable.getRules().generateInsert()) {
AbstractDAOElementGenerator methodGenerator = new InsertMethodGenerator();
initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze);
}
}
use of org.mybatis.generator.codegen.ibatis2.dao.elements.AbstractDAOElementGenerator in project generator by mybatis.
the class DAOGenerator method addSelectByExampleWithBLOBsMethod.
protected void addSelectByExampleWithBLOBsMethod(TopLevelClass topLevelClass, Interface interfaze) {
if (introspectedTable.getRules().generateSelectByExampleWithBLOBs()) {
AbstractDAOElementGenerator methodGenerator = new SelectByExampleWithBLOBsMethodGenerator(generateForJava5);
initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze);
}
}
use of org.mybatis.generator.codegen.ibatis2.dao.elements.AbstractDAOElementGenerator in project generator by mybatis.
the class DAOGenerator method addCountByExampleMethod.
protected void addCountByExampleMethod(TopLevelClass topLevelClass, Interface interfaze) {
if (introspectedTable.getRules().generateCountByExample()) {
AbstractDAOElementGenerator methodGenerator = new CountByExampleMethodGenerator(generateForJava5);
initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze);
}
}
use of org.mybatis.generator.codegen.ibatis2.dao.elements.AbstractDAOElementGenerator in project generator by mybatis.
the class DAOGenerator method addUpdateByExampleWithoutBLOBsMethod.
protected void addUpdateByExampleWithoutBLOBsMethod(TopLevelClass topLevelClass, Interface interfaze) {
if (introspectedTable.getRules().generateUpdateByExampleWithoutBLOBs()) {
AbstractDAOElementGenerator methodGenerator = new UpdateByExampleWithoutBLOBsMethodGenerator();
initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze);
}
}
use of org.mybatis.generator.codegen.ibatis2.dao.elements.AbstractDAOElementGenerator in project generator by mybatis.
the class DAOGenerator method addInsertSelectiveMethod.
protected void addInsertSelectiveMethod(TopLevelClass topLevelClass, Interface interfaze) {
if (introspectedTable.getRules().generateInsertSelective()) {
AbstractDAOElementGenerator methodGenerator = new InsertSelectiveMethodGenerator();
initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze);
}
}
Aggregations