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,
Integer timeout,
Map<Integer,String> columnAliases) |
Modifier and Type | Method and Description |
---|---|
protected void |
applyTimeout(PreparedStatement stmt) |
protected abstract void |
doQuery() |
protected Integer |
getTimeout() |
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)
protected Integer getTimeout()
public void unregister()
public void tick()
protected abstract void setGlobalError(Throwable e)
protected String mapFieldName(int i, ResultSet result) throws SQLException
SQLException
protected void applyTimeout(PreparedStatement stmt) throws SQLException
SQLException
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.