public abstract class HsqldbDaqAbstractReader<T extends Serializable> extends Object implements DaqReader<T>
| Modifier | Constructor and Description |
|---|---|
protected |
HsqldbDaqAbstractReader(DataSource dataSource,
String table) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
DataRecord<T> |
fetchRecord(long tag,
Instant instant) |
List<DataRecord<T>> |
fetchRecords(long[] tags,
Instant from,
Instant to) |
long |
getRecordCount() |
protected abstract String |
getSqlTypeName() |
protected abstract T |
getValue(ResultSet resultSet,
int index) |
Map<Long,String> |
hash(Instant from,
Instant to,
boolean includeData,
String algorithm) |
protected abstract void |
setValue(PreparedStatement statement,
int index,
T value) |
long |
tagCount(Instant from,
Instant to) |
long[] |
tags(Instant from,
Instant to) |
protected abstract byte[] |
toByteArray(T value) |
protected HsqldbDaqAbstractReader(DataSource dataSource, String table)
public long[] tags(Instant from, Instant to)
tags in interface DaqReader<T extends Serializable>public long tagCount(Instant from, Instant to)
tagCount in interface DaqReader<T extends Serializable>public DataRecord<T> fetchRecord(long tag, Instant instant)
fetchRecord in interface DaqReader<T extends Serializable>public List<DataRecord<T>> fetchRecords(long[] tags, Instant from, Instant to)
fetchRecords in interface DaqReader<T extends Serializable>public Map<Long,String> hash(Instant from, Instant to, boolean includeData, String algorithm)
hash in interface DaqReader<T extends Serializable>public long getRecordCount()
getRecordCount in interface DaqMXBeanprotected abstract void setValue(PreparedStatement statement, int index, T value) throws SQLException
SQLExceptionprotected abstract T getValue(ResultSet resultSet, int index) throws SQLException
SQLExceptionprotected abstract String getSqlTypeName()
public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2012–2017 MARID software development group. All rights reserved.