com.github.taymindis.paas.EventTransaction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jsp-paas Show documentation
Show all versions of jsp-paas Show documentation
Page as a service for JSP to standardize the function by jsp page, guarantee zero downtime
The newest version!
package com.github.taymindis.paas;
import java.sql.SQLException;
import java.util.ArrayList;
public interface EventTransaction extends Event {
String queryOne(final String sql, Object... sqlParams) throws SQLException;
String queryValueRowByComma(final String sql, Object... sqlParams) throws SQLException;
String queryValueRowBySemicolon(final String sql, Object... sqlParams) throws SQLException;
String queryValueRowByVertical(final String sql, Object... sqlParams) throws SQLException;
ArrayList queryToList(String sql, Object... sqlParams) throws SQLException;
ArrayList queryColumns(String sql, Object... sqlParams) throws SQLException;
QueryResult query(final String sql, Object... sqlParams) throws SQLException;
int execute(String sql, Object... sqlParams) throws SQLException;
/**
* @param sql sql
* @param sqlParams sqlParams
* @return row affected
* @throws SQLException SQLException
*/
int executeWithKey(String sql, Object... sqlParams) throws SQLException;
void rollback() throws SQLException;
void commit() throws SQLException;
void release() throws SQLException;
void release(boolean committable) throws SQLException;
@Override
T getResult();
}