Package com.im.df.impl.db.resultset
Class ResultSetImpl
- java.lang.Object
-
- com.im.df.impl.db.resultset.ResultSetImpl
-
- All Implemented Interfaces:
com.im.df.api.dml.DFResultSet
public class ResultSetImpl extends Object implements com.im.df.api.dml.DFResultSet
The class managing states of the result set's vertices.Instead of constructors,
ResultSetRegistry.copyResultSet(com.im.df.impl.db.resultset.ResultSetImpl)
should be used. It registers the result set as currently active.- Author:
- Petr Hamernik
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addPropertyChangeListener(PropertyChangeListener l)
void
applyList(List<? extends Comparable<?>> ids, com.im.commons.progress.DFEnvironmentRW env)
void
applyQuery(com.im.df.api.dml.DFTermExpression newQueryTerm, com.im.commons.progress.DFEnvironmentRW env)
void
applyWorkingQuery(com.im.commons.progress.DFEnvironmentRW env)
void
clearIdCachesAndRefresh(com.im.df.api.ddl.DFDataTree.Edge edge, com.im.commons.progress.DFEnvironmentRO env)
This method is used byDBSchemaDataProviderImpl
to clear id caches when relational data are changed (e.g.com.im.df.api.dml.DFResultSet
createCopy()
void
enableFilterSearchResults(boolean filterResults, com.im.commons.progress.DFEnvironmentRW env)
Deprecated.void
ensureLoaded(com.im.commons.progress.DFEnvironmentRO env)
com.im.df.api.ddl.DFDataTree
getDataTree()
com.im.df.api.dml.DFTermExpression
getLastExecutedQuery()
com.im.commons.progress.DFLockable
getLockable()
com.im.df.api.dml.DFResultSet.VertexState
getRootVertexState()
com.im.df.api.support.DFSearchDomain
getSearchDomain()
com.im.df.api.dml.DFResultSet.VertexState
getVertexState(com.im.df.api.ddl.DFDataTree.Vertex vertex)
com.im.df.api.dml.DFTermExpression
getWorkingQuery()
boolean
isAllDataAreEmpty()
boolean
isFilterSearchResults()
Deprecated.boolean
isLoadAllChildRows()
Deprecated.boolean
isLoadIds(com.im.df.api.dml.DFResultSet.VertexState vertexState)
boolean
isQueryCancelRequested()
boolean
isQueryRunning()
void
reload(com.im.commons.progress.DFEnvironmentRW env)
void
removePropertyChangeListener(PropertyChangeListener l)
void
requestStopQuery()
void
setLoadAllChildRows(boolean loadAllChildForConvergent, com.im.commons.progress.DFEnvironmentRW env)
Deprecated.void
setLoadIds(com.im.df.api.dml.DFResultSet.VertexState vertexState)
void
setSearchDomain(com.im.df.api.support.DFSearchDomain searchDomain, com.im.commons.progress.DFEnvironmentRW env)
void
setWorkingQuery(com.im.df.api.dml.DFTermExpression workingQuery, com.im.commons.progress.DFEnvironmentRW env)
String
toString()
-
-
-
Method Detail
-
getDataTree
public com.im.df.api.ddl.DFDataTree getDataTree()
- Specified by:
getDataTree
in interfacecom.im.df.api.dml.DFResultSet
-
setWorkingQuery
public void setWorkingQuery(com.im.df.api.dml.DFTermExpression workingQuery, com.im.commons.progress.DFEnvironmentRW env)
- Specified by:
setWorkingQuery
in interfacecom.im.df.api.dml.DFResultSet
-
getWorkingQuery
public com.im.df.api.dml.DFTermExpression getWorkingQuery()
- Specified by:
getWorkingQuery
in interfacecom.im.df.api.dml.DFResultSet
-
getLastExecutedQuery
public com.im.df.api.dml.DFTermExpression getLastExecutedQuery()
- Specified by:
getLastExecutedQuery
in interfacecom.im.df.api.dml.DFResultSet
-
applyWorkingQuery
public void applyWorkingQuery(com.im.commons.progress.DFEnvironmentRW env)
- Specified by:
applyWorkingQuery
in interfacecom.im.df.api.dml.DFResultSet
-
applyQuery
public void applyQuery(com.im.df.api.dml.DFTermExpression newQueryTerm, com.im.commons.progress.DFEnvironmentRW env)
- Specified by:
applyQuery
in interfacecom.im.df.api.dml.DFResultSet
-
isAllDataAreEmpty
public boolean isAllDataAreEmpty()
-
isQueryRunning
public boolean isQueryRunning()
- Specified by:
isQueryRunning
in interfacecom.im.df.api.dml.DFResultSet
-
requestStopQuery
public void requestStopQuery()
- Specified by:
requestStopQuery
in interfacecom.im.df.api.dml.DFResultSet
-
isQueryCancelRequested
public boolean isQueryCancelRequested()
- Specified by:
isQueryCancelRequested
in interfacecom.im.df.api.dml.DFResultSet
-
applyList
public void applyList(List<? extends Comparable<?>> ids, com.im.commons.progress.DFEnvironmentRW env)
- Specified by:
applyList
in interfacecom.im.df.api.dml.DFResultSet
-
reload
public void reload(com.im.commons.progress.DFEnvironmentRW env)
- Specified by:
reload
in interfacecom.im.df.api.dml.DFResultSet
-
getLockable
public com.im.commons.progress.DFLockable getLockable()
- Specified by:
getLockable
in interfacecom.im.df.api.dml.DFResultSet
-
getVertexState
public com.im.df.api.dml.DFResultSet.VertexState getVertexState(com.im.df.api.ddl.DFDataTree.Vertex vertex)
- Specified by:
getVertexState
in interfacecom.im.df.api.dml.DFResultSet
-
getRootVertexState
public com.im.df.api.dml.DFResultSet.VertexState getRootVertexState()
- Specified by:
getRootVertexState
in interfacecom.im.df.api.dml.DFResultSet
-
setSearchDomain
public void setSearchDomain(com.im.df.api.support.DFSearchDomain searchDomain, com.im.commons.progress.DFEnvironmentRW env)
- Specified by:
setSearchDomain
in interfacecom.im.df.api.dml.DFResultSet
-
getSearchDomain
public com.im.df.api.support.DFSearchDomain getSearchDomain()
- Specified by:
getSearchDomain
in interfacecom.im.df.api.dml.DFResultSet
-
clearIdCachesAndRefresh
public void clearIdCachesAndRefresh(com.im.df.api.ddl.DFDataTree.Edge edge, com.im.commons.progress.DFEnvironmentRO env)
This method is used byDBSchemaDataProviderImpl
to clear id caches when relational data are changed (e.g. when new rows are inserted and make relationship). SeeDBSchemaDataProviderImpl.clearCachesInResultSets(com.im.df.api.ddl.DFRelationship.Direction, com.im.commons.progress.DFEnvironmentRW)
usages for more info. This method was added as part of implementation of IJC-391. It was meant as temporary solution only, but it's here since 07/2007. Notification about changes should be done different way, not through explicit call from relationship modification methods (rather using listeners I think).- Parameters:
edge
- the edge whose detail should be updated
-
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener l)
- Specified by:
addPropertyChangeListener
in interfacecom.im.df.api.dml.DFResultSet
-
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener l)
- Specified by:
removePropertyChangeListener
in interfacecom.im.df.api.dml.DFResultSet
-
createCopy
public com.im.df.api.dml.DFResultSet createCopy()
- Specified by:
createCopy
in interfacecom.im.df.api.dml.DFResultSet
-
ensureLoaded
public void ensureLoaded(com.im.commons.progress.DFEnvironmentRO env)
- Specified by:
ensureLoaded
in interfacecom.im.df.api.dml.DFResultSet
-
enableFilterSearchResults
@Deprecated public void enableFilterSearchResults(boolean filterResults, com.im.commons.progress.DFEnvironmentRW env)
Deprecated.- Specified by:
enableFilterSearchResults
in interfacecom.im.df.api.dml.DFResultSet
-
isFilterSearchResults
@Deprecated public boolean isFilterSearchResults()
Deprecated.- Specified by:
isFilterSearchResults
in interfacecom.im.df.api.dml.DFResultSet
-
setLoadIds
public void setLoadIds(com.im.df.api.dml.DFResultSet.VertexState vertexState)
- Specified by:
setLoadIds
in interfacecom.im.df.api.dml.DFResultSet
-
isLoadIds
public boolean isLoadIds(com.im.df.api.dml.DFResultSet.VertexState vertexState)
- Specified by:
isLoadIds
in interfacecom.im.df.api.dml.DFResultSet
-
isLoadAllChildRows
@Deprecated public boolean isLoadAllChildRows()
Deprecated.- Specified by:
isLoadAllChildRows
in interfacecom.im.df.api.dml.DFResultSet
-
setLoadAllChildRows
@Deprecated public void setLoadAllChildRows(boolean loadAllChildForConvergent, com.im.commons.progress.DFEnvironmentRW env)
Deprecated.- Specified by:
setLoadAllChildRows
in interfacecom.im.df.api.dml.DFResultSet
-
-