|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object i3.dragos.gm.core.DataChangeSet
public class DataChangeSet
A ChangeSet
enumerates GraphEntityClasses and GraphEntities
that have been modified by an event or during the course of a transaction.
Please note that this implementation is not thread-safe. This should not be a problem however with the purposes it is used for in the core:
Constructor Summary | |
---|---|
DataChangeSet(boolean readOnly)
Creates an empty DataChangeSet. |
|
DataChangeSet(java.util.Collection<GraphEntityClass> gec,
java.util.Collection<GraphEntity> ge,
boolean readOnly)
Creates a DataChangeSet containing the specified GraphEntityClasses and GraphEntities. |
|
DataChangeSet(GraphEntity[] g,
boolean readOnly)
Creates a DataChangeSet containing the specified GraphEntities. |
|
DataChangeSet(GraphEntity g,
boolean readOnly)
Creates a DataChangeSet containing the specified GraphEntity. |
|
DataChangeSet(GraphEntityClass[] g,
boolean readOnly)
Creates a DataChangeSet containing the specified GraphEntityClasses. |
|
DataChangeSet(GraphEntityClass g,
boolean readOnly)
Creates a DataChangeSet containing the specified GraphEntityClass. |
Method Summary | |
---|---|
DataChangeSet |
closure()
Returns a new DataChangeSet that includes all GraphEntityClasses and GraphEntities directly or indirectly affected by this ChangeSet. |
java.util.Set<GraphEntity> |
getGraphEntities()
Returns the changed GraphEntities. |
java.util.Set<GraphEntityClass> |
getGraphEntityClasses()
Returns the changed GraphEntityClasses. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataChangeSet(boolean readOnly)
readOnly
- Whether modifications are forbidden.public DataChangeSet(GraphEntityClass g, boolean readOnly)
g
- The changed GraphEntityClass.readOnly
- Whether modifications are forbidden.public DataChangeSet(GraphEntity g, boolean readOnly)
g
- The changed GraphEntity.readOnly
- Whether modifications are forbidden.public DataChangeSet(java.util.Collection<GraphEntityClass> gec, java.util.Collection<GraphEntity> ge, boolean readOnly)
gec
- The changed GraphEntityClasses (may be null
).ge
- The changed GraphEntities (may be null
).readOnly
- Whether modifications are forbidden.public DataChangeSet(GraphEntityClass[] g, boolean readOnly)
g
- The changed GraphEntityClasses.readOnly
- Whether modifications are forbidden.public DataChangeSet(GraphEntity[] g, boolean readOnly)
g
- The changed GraphEntities.readOnly
- Whether modifications are forbidden.Method Detail |
---|
public java.util.Set<GraphEntityClass> getGraphEntityClasses()
public java.util.Set<GraphEntity> getGraphEntities()
public DataChangeSet closure() throws DragosException
The Closure is calculated as follows:
Resolution of subclasses and instances is performed on the core level, meaning a completely unwrapped GraphPool/Schema.
DragosException
- in case of internal errors.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |