public class HistoricalItemImpl extends java.lang.Object implements HistoricalItem, DataSourceListener
| Constructor and Description |
|---|
HistoricalItemImpl(HistoricalItemInformation itemInformation,
java.lang.String masterId,
BundleContext context) |
HistoricalItemImpl(java.lang.String id,
java.util.Map<java.lang.String,Variant> attributes,
java.lang.String masterId,
BundleContext context) |
| Modifier and Type | Method and Description |
|---|---|
Query |
createQuery(QueryParameters parameters,
QueryListener listener,
boolean updateData)
Create a new query
|
HistoricalItemInformation |
getInformation()
Get the item information
|
protected void |
setDataSource(DataSource service) |
protected void |
setStorage(StorageHistoricalItem service) |
void |
start() |
void |
stateChanged(DataItemValue value) |
void |
stop() |
void |
update(java.util.Map<java.lang.String,java.lang.String> properties) |
public HistoricalItemImpl(HistoricalItemInformation itemInformation, java.lang.String masterId, BundleContext context) throws InvalidSyntaxException
InvalidSyntaxExceptionpublic HistoricalItemImpl(java.lang.String id,
java.util.Map<java.lang.String,Variant> attributes,
java.lang.String masterId,
BundleContext context)
throws InvalidSyntaxException
InvalidSyntaxExceptionprotected void setDataSource(DataSource service)
protected void setStorage(StorageHistoricalItem service)
public void start()
throws InvalidSyntaxException
InvalidSyntaxExceptionpublic void stop()
public Query createQuery(QueryParameters parameters, QueryListener listener, boolean updateData)
HistoricalItemcreateQuery in interface HistoricalItemparameters - the initial query parameterslistener - the query listenerupdateData - if true then additional updates will be made by
the query when
data changes although the query is QueryState.COMPLETEnull if the query could be be
createdpublic HistoricalItemInformation getInformation()
HistoricalItemgetInformation in interface HistoricalItempublic void stateChanged(DataItemValue value)
stateChanged in interface DataSourceListenerpublic void update(java.util.Map<java.lang.String,java.lang.String> properties)
throws InvalidSyntaxException
InvalidSyntaxException
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0