No effective change - code cleanup - remove unused throws exception

This commit is contained in:
Robin Bygrave committed 2015-07-31 20:56:26 +12:00
1 parent 2ada43f6ba
commit d6973ed88d
5 files changed
+27 -31

No files matched your search

@@ -212,7 +212,7 @@ public class Binder {
/**
* Binds the value to the statement according to the data type.
*/
private void bindSimpleData(DataBind b, int dataType, Object data) throws SQLException {
private void bindSimpleData(DataBind b, int dataType, Object data) {
try {
switch (dataType) {
@@ -69,7 +69,7 @@ public final class DeleteMeta {
/**
* get or generate the sql based on the concurrency mode.
*/
public String getSql(PersistRequestBean<?> request) throws SQLException {
public String getSql(PersistRequestBean<?> request) {
if (id.isEmpty()) {
throw new IllegalStateException("Can not deleteById on " + request.getFullName() + " as no @Id property");
@@ -88,11 +88,7 @@ public final class DmlBeanPersister implements BeanPersister {
} finally {
if (!batched && handler != null) {
try {
handler.close();
} catch (SQLException e) {
logger.error(null, e);
}
handler.close();
}
}
}
@@ -6,29 +6,29 @@ import java.sql.SQLException;
* Implementation API for insert update and delete handlers.
*/
public interface PersistHandler {
/**
* Return the bind log.
*/
String getBindLog();
/**
* Get the sql and bind the statement.
*/
void bind() throws SQLException;
/**
* Add this for batch execution.
*/
void addBatch() throws SQLException;
/**
* Return the bind log.
*/
String getBindLog();
/**
* Execute now for non-batch execution.
*/
void execute() throws SQLException;
/**
* Close resources including underlying preparedStatement.
*/
void close() throws SQLException;
/**
* Get the sql and bind the statement.
*/
void bind() throws SQLException;
/**
* Add this for batch execution.
*/
void addBatch() throws SQLException;
/**
* Execute now for non-batch execution.
*/
void execute() throws SQLException;
/**
* Close resources including underlying preparedStatement.
*/
void close();
}