All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jeesuite.mybatis.crud.builder.SelectAllBuilder Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
/**
 * 
 */
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(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy