
com.github.obase.mysql.PstmtMeta Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of obase-mysql Show documentation
Show all versions of obase-mysql Show documentation
A very simple/efficient Mysql Client Framework
The newest version!
package com.github.obase.mysql;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.Map;
public abstract class PstmtMeta {
public static final int UNSET = -1;
public final boolean nop;
public final String psql;
public Map label;
public int select = UNSET;
public int from = UNSET;
public int where = UNSET;
public int group = UNSET;
public int having = UNSET;
public int order = UNSET;
public int limit = UNSET;
// 由selectAll构建
public String limitPsql;
public String countPsql;
// 构造时必须复制外来参数param
protected PstmtMeta(boolean nop, String psql) {
this.nop = nop;
this.psql = psql;
}
// 返回最后的pos位置,方便后续操作
public abstract int setParam(PreparedStatement pstmt, JdbcMeta meta, Object bean) throws SQLException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy