public abstract class AbstractQuery extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<Integer,String> |
columnAliases |
protected Connection |
connection |
protected FolderItemFactory |
itemFactory |
protected String |
sql |
Constructor and Description |
---|
AbstractQuery(String id,
int period,
String sql,
Connection connection,
Map<Integer,String> columnAliases) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doQuery() |
protected String |
mapFieldName(int i,
ResultSet result) |
void |
register(ScheduledExecutorService timer,
DefaultChainItemFactory parentItemFactory) |
protected abstract void |
setGlobalError(Throwable e) |
void |
tick() |
void |
unregister() |
protected final String sql
protected final Connection connection
protected FolderItemFactory itemFactory
public void register(ScheduledExecutorService timer, DefaultChainItemFactory parentItemFactory)
public void unregister()
public void tick()
protected abstract void setGlobalError(Throwable e)
protected String mapFieldName(int i, ResultSet result) throws SQLException
SQLException