com.jeesuite.mybatis.crud.builder.SelectAllBuilder Maven / Gradle / Ivy
/**
*
*/
package com.jeesuite.mybatis.crud.builder;
import org.apache.ibatis.jdbc.SQL;
import com.jeesuite.mybatis.crud.helper.EntityMapper;
import com.jeesuite.mybatis.crud.helper.TableMapper;
/**
* @description
* @author vakin
* @date 2015年12月2日
* @Copyright (c) 2015, jwww
*/
public class SelectAllBuilder extends AbstractSelectMethodBuilder{
@Override
String[] methodNames() {
return new String[]{"selectAll"};
}
@Override
String buildSQL(EntityMapper entityMapper, boolean selective) {
TableMapper tableMapper = entityMapper.getTableMapper();
return new SQL() {
{
SELECT("*");
FROM(tableMapper.getName());
}
}.toString();
}
}