No effective change - code cleanup - remove unused throws exception

This commit is contained in:
Robin Bygrave
2015-07-31 20:56:26 +12:00
parent 2ada43f6ba
commit d6973ed88d
5 changed files with 27 additions and 31 deletions
@@ -50,7 +50,7 @@ public class DatabasePlatformFactory {
/**
* Lookup the platform by name.
*/
private DatabasePlatform byDatabaseName(String dbName) throws SQLException {
private DatabasePlatform byDatabaseName(String dbName) {
dbName = dbName.toLowerCase();
if (dbName.equals("postgres") || dbName.equals("postgres9")) {
@@ -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();
}