org.docshare.orm.IDBDelegate Maven / Gradle / Ivy
package org.docshare.orm;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;
public interface IDBDelegate {
ResultSet resultById(String tname, String column, Object id) throws SQLException;
int save(DBTool tool, Model m, String key, boolean isInsert);
int delete(String tname, String key, Object id);
//String buildSQL(List cons, DBTool tool, String sqlfrom);
//ResultSet runSQL(List cons,DBTool tool,String tbName);
long size(List cons,DBTool tool,String tbName);
ResultSet runSQL(String rawSql) throws SQLException;
Map listColumn(String tname, boolean useCache);
String keyColumn(String tname);
Map columnOfRs(String sql, ResultSet rs);
void beginTransaction();
void commit();
void rollback();
ResultSet runSQL(List cons,SQLConstains orderby,SQLConstains limit, DBTool tool, String tbName, String prefix);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy