use of org.mybatis.generator.codegen.ibatis2.dao.elements.AbstractDAOElementGenerator in project generator by mybatis.
the class DAOGenerator method addDeleteByPrimaryKeyMethod.
protected void addDeleteByPrimaryKeyMethod(TopLevelClass topLevelClass, Interface interfaze) {
if (introspectedTable.getRules().generateDeleteByPrimaryKey()) {
AbstractDAOElementGenerator methodGenerator = new DeleteByPrimaryKeyMethodGenerator();
initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze);
}
}
use of org.mybatis.generator.codegen.ibatis2.dao.elements.AbstractDAOElementGenerator in project generator by mybatis.
the class DAOGenerator method addSelectByPrimaryKeyMethod.
protected void addSelectByPrimaryKeyMethod(TopLevelClass topLevelClass, Interface interfaze) {
if (introspectedTable.getRules().generateSelectByPrimaryKey()) {
AbstractDAOElementGenerator methodGenerator = new SelectByPrimaryKeyMethodGenerator();
initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze);
}
}
use of org.mybatis.generator.codegen.ibatis2.dao.elements.AbstractDAOElementGenerator in project generator by mybatis.
the class DAOGenerator method addSelectByExampleWithoutBLOBsMethod.
protected void addSelectByExampleWithoutBLOBsMethod(TopLevelClass topLevelClass, Interface interfaze) {
if (introspectedTable.getRules().generateSelectByExampleWithoutBLOBs()) {
AbstractDAOElementGenerator methodGenerator = new SelectByExampleWithoutBLOBsMethodGenerator(generateForJava5);
initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze);
}
}
use of org.mybatis.generator.codegen.ibatis2.dao.elements.AbstractDAOElementGenerator in project generator by mybatis.
the class DAOGenerator method addUpdateByExampleSelectiveMethod.
protected void addUpdateByExampleSelectiveMethod(TopLevelClass topLevelClass, Interface interfaze) {
if (introspectedTable.getRules().generateUpdateByExampleSelective()) {
AbstractDAOElementGenerator methodGenerator = new UpdateByExampleSelectiveMethodGenerator();
initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze);
}
}
use of org.mybatis.generator.codegen.ibatis2.dao.elements.AbstractDAOElementGenerator in project generator by mybatis.
the class DAOGenerator method addUpdateByPrimaryKeyWithoutBLOBsMethod.
protected void addUpdateByPrimaryKeyWithoutBLOBsMethod(TopLevelClass topLevelClass, Interface interfaze) {
if (introspectedTable.getRules().generateUpdateByPrimaryKeyWithoutBLOBs()) {
AbstractDAOElementGenerator methodGenerator = new UpdateByPrimaryKeyWithoutBLOBsMethodGenerator();
initializeAndExecuteGenerator(methodGenerator, topLevelClass, interfaze);
}
}
Aggregations