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

org.docshare.orm.IDBDelegate Maven / Gradle / Ivy

Go to download

An efficient, fast, convenient, easy to learn, easy to use MVC framework and ORM framework. It is seamless compatible with JSTL and supports FreeMarker. It can run independently, and it can also be applied to traditional Java Web projects. It is an efficient, fast, convenient, easy to learn and easy to use MVC framework and ORM framework. It is seamless compatible with JSTL and supports FreeMarker. It can be run on its own, or it can be applied to traditional Java Web projects

There is a newer version: 2023.06.19
Show newest version
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