|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.electrocodeogram.cpc.core.api.data.CloneDiff org.electrocodeogram.cpc.core.api.data.CompositCloneDiff
@Deprecated public class CompositCloneDiff
A special composite version of the CloneDiff
class.
The IStoreProvider
may merge multiple CloneDiff
objects into one to reduce
the number of objects and thereby the storage complexity. If multiple CloneDiff
events
are merged, the resulting composite diff is of this type.
CloneDiff
,
Serialized FormField Summary | |
---|---|
java.lang.String |
PERSISTENCE_CLASS_IDENTIFIER
Deprecated. IStatefulObject persistence class identifier, value: "composite_clone_diff" |
Fields inherited from class org.electrocodeogram.cpc.core.api.data.CloneDiff |
---|
automaticChange, creationDate, creator, length, offset, PERSISTENCE_OBJECT_IDENTIFIER, text |
Constructor Summary | |
---|---|
CompositCloneDiff(java.util.Date startOfRangeDate,
java.util.Date endOfRangeDate,
java.lang.String creator,
java.util.Date creationDate,
boolean automaticChange,
int offset,
int length,
java.lang.String text)
Deprecated. Creates a new CompositCloneDiff . |
Method Summary | |
---|---|
java.lang.String |
getCreator()
Deprecated. Retrieves the creator (username) of this composite diff. |
java.util.Date |
getEndOfRangeDate()
Deprecated. The CloneDiff.getCreationDate() of the last CloneDiff object in this composite diff. |
java.lang.String |
getPersistenceClassIdentifier()
Deprecated. Returns a string which uniquely identifies the object type. |
java.util.Date |
getStartOfRangeDate()
Deprecated. The CloneDiff.getCreationDate() of the first CloneDiff object in this composite diff. |
java.util.Map<java.lang.String,java.lang.Comparable<? extends java.lang.Object>> |
getState()
Deprecated. Returns a map which fully describes the internal state of this object. |
java.util.Map<java.lang.String,java.lang.Class<? extends java.lang.Object>> |
getStateTypes()
Deprecated. Returns a list of all keys which are needed to persist this objects internal state. |
void |
setState(java.util.Map<java.lang.String,java.lang.Comparable<? extends java.lang.Object>> state)
Deprecated. Restores the internal state of this object to the state which was extracted by means of getState() earlier. |
java.lang.String |
toString()
Deprecated. |
Methods inherited from class org.electrocodeogram.cpc.core.api.data.CloneDiff |
---|
clone, compareTo, equals, getCreationDate, getLength, getOffset, getPersistenceObjectIdentifier, getText, getTextLength, hashCode, isAutomaticChange, isSealed, seal |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final java.lang.String PERSISTENCE_CLASS_IDENTIFIER
IStatefulObject
persistence class identifier, value: "composite_clone_diff"
Constructor Detail |
---|
public CompositCloneDiff(java.util.Date startOfRangeDate, java.util.Date endOfRangeDate, java.lang.String creator, java.util.Date creationDate, boolean automaticChange, int offset, int length, java.lang.String text)
CompositCloneDiff
.
CompositCloneDiff
does not contain a list of CloneDiff
objects. Instead the
changes made by the included CloneDiff
objects is merged into a single diff object.
A CompositCloneDiff
object must always contain all CloneDiff
objects which fall
into the given date range described by getStartOfRangeDate()
and
getEndOfRangeDate()
. No CloneDiff
object may be left out.
Once a CompositCloneDiff
is stored, its underlying individual CloneDiff
objects may
not be made accessible to a client in any way.
I.e. care must be taken that the
IStoreProvider.getFullCloneObjectExtension(ICloneObject, Class)
command does not return any CloneDiff
objects which are already "contained" within an also returned CompositCloneDiff
object.
Please refer to the CloneDiff
constructor for more information about the common parameters.
startOfRangeDate
- creation date of the oldest CloneDiff
in this composite, never null.endOfRangeDate
- creation date of the youngest CloneDiff
in this composite, never null.creator
- creator (username) value of the oldest CloneDiff
object in this composite
for which the creator is defined, may be NULL if no CloneDiff
object specified a creator.CloneDiff.CloneDiff(String, Date, boolean, int, int, String)
Method Detail |
---|
public java.util.Date getStartOfRangeDate()
CloneDiff.getCreationDate()
of the first CloneDiff
object in this composite diff.
CloneDiff
object in this composite, never null.public java.util.Date getEndOfRangeDate()
CloneDiff.getCreationDate()
of the last CloneDiff
object in this composite diff.
CloneDiff
object in this composite, never null.public java.lang.String getCreator()
CloneDiff
objects refer to different creators, the first (oldest) defined
creator value will be used for the composite diff.
CloneDiff
objects.
getCreator
in class CloneDiff
public java.lang.String getPersistenceClassIdentifier()
IStatefulObject
For the default ICloneObject
sub interfaces the return values must equal
the PERSISTENCE_CLASS_IDENTIFIER constant defined in the interface.
3rd party clone objects can define their own persistence identifiers.
Allowed are only letters, numbers and the underscore. Furthermore
an identifier needs to contain at least one letter, may not begin with an underscore
and may not contain multiple consecutive underscores.
A typical store provider will use this method to derive directory/file or table names.
getPersistenceClassIdentifier
in interface IStatefulObject
getPersistenceClassIdentifier
in class CloneDiff
public java.util.Map<java.lang.String,java.lang.Comparable<? extends java.lang.Object>> getState()
IStatefulObject
IStoreProvider
and the setState() method is used to restore a persisted state.
In case of an ICloneObject
, the map does not include any data for
ICloneObjectExtension
which are stored under the object.
The values in the map are restricted to the following object types:
IStatefulObject.getPersistenceObjectIdentifier()
entry in this state map must always be defined
and its value may not change during the lifetime of a stateful object.
getState
in interface IStatefulObject
getState
in class CloneDiff
IStatefulObject.setState(Map)
public java.util.Map<java.lang.String,java.lang.Class<? extends java.lang.Object>> getStateTypes()
IStatefulObject
I.e. if getState() will return a Map which contains the key "uuid" with the value "jda83ds-..." then this Map contains the key "uuid" with the value String.class.
getStateTypes
in interface IStatefulObject
getStateTypes
in class CloneDiff
IStatefulObject.getState()
public void setState(java.util.Map<java.lang.String,java.lang.Comparable<? extends java.lang.Object>> state)
IStatefulObject
For a description of the internal structure of the map, see getState().
setState
in interface IStatefulObject
setState
in class CloneDiff
state
- a map describing the internal state of this object, never nullIStatefulObject.getState()
public java.lang.String toString()
toString
in class CloneDiff
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |