public abstract class RecordHandler<E> extends Object implements AutoCloseable
| Constructor and Description |
|---|
RecordHandler(org.arp.javautil.sql.ConnectionSpec connSpec,
String statement) |
RecordHandler(org.arp.javautil.sql.ConnectionSpec connSpec,
String statement,
Integer colCount) |
RecordHandler(Connection connection,
String statement) |
RecordHandler(Connection connection,
String statement,
boolean commit) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected Connection |
getConnection() |
Timestamp |
importTimestamp() |
void |
insert(E record) |
boolean |
isParametersSet() |
protected abstract void |
setParameters(PreparedStatement statement,
E record) |
void |
setParametersSet(boolean isParametersSet) |
public RecordHandler(Connection connection, String statement) throws SQLException
SQLExceptionpublic RecordHandler(Connection connection, String statement, boolean commit) throws SQLException
SQLExceptionpublic RecordHandler(org.arp.javautil.sql.ConnectionSpec connSpec,
String statement)
throws SQLException
SQLExceptionpublic RecordHandler(org.arp.javautil.sql.ConnectionSpec connSpec,
String statement,
Integer colCount)
throws SQLException
SQLExceptionpublic void insert(E record) throws SQLException
SQLExceptionprotected abstract void setParameters(PreparedStatement statement, E record) throws SQLException
SQLExceptionpublic boolean isParametersSet()
public void setParametersSet(boolean isParametersSet)
protected Connection getConnection()
public void close()
throws SQLException
close in interface AutoCloseableSQLExceptionpublic Timestamp importTimestamp()
Copyright © 2012–2020 Emory University. All rights reserved.