public abstract class RecordHandler<E> extends Object implements AutoCloseable
| Constructor and Description |
|---|
RecordHandler(Connection connection,
String statement) |
RecordHandler(Connection connection,
String statement,
boolean commit) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected Connection |
getConnection() |
protected Timestamp |
importTimestamp() |
void |
insert(E record) |
protected abstract void |
setParameters(PreparedStatement statement,
E record) |
public RecordHandler(Connection connection, String statement) throws SQLException
SQLExceptionpublic RecordHandler(Connection connection, String statement, boolean commit) throws SQLException
SQLExceptionpublic void insert(E record) throws SQLException
SQLExceptionprotected abstract void setParameters(PreparedStatement statement, E record) throws SQLException
SQLExceptionprotected Connection getConnection()
public void close()
throws SQLException
close in interface AutoCloseableSQLExceptionprotected Timestamp importTimestamp()
Copyright © 2012–2016 Emory University. All rights reserved.