com.flexive.shared.content
Class FxDelta.FxDeltaChange

java.lang.Object
  extended by com.flexive.shared.content.FxDelta.FxDeltaChange
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
FxDelta

public static class FxDelta.FxDeltaChange
extends java.lang.Object
implements java.io.Serializable

A single delta change

See Also:
Serialized Form

Nested Class Summary
(package private) static class FxDelta.FxDeltaChange.ChangeType
           
 
Constructor Summary
FxDelta.FxDeltaChange(FxDelta.FxDeltaChange.ChangeType changeType, java.lang.String XPath, FxData originalData, FxData newData)
          Ctor
 
Method Summary
 int _getRetryCount()
          Internal use only! Getter for the retry count
 void _increaseRetries()
          Internal use only! Increase the retry count - used when saving and conflicts arise that are fixed after some retries (ie positioning changes)
 boolean _isUpdateable()
          Internal use only! Is this delta updateable or do we need delete/insert? A property is not updateable if language settings changed or it spans multiple columns like a select-many
 FxDelta.FxDeltaChange.ChangeType getChangeType()
          Get the type of change
 FxData getNewData()
          Getter for the new data
 FxData getOriginalData()
          Getter for the original data
 java.lang.String getXPath()
          Getter for the XPath (based on the origina XPath)
 boolean isDataChange()
          Has data changed?
 boolean isGroup()
          Is the change affecting a group?
 boolean isInternal()
          Is this a system internal property like version or step?
 boolean isLanguageSettingChanged()
          Have language settings changed? (New or removed translationtions,etc)
 boolean isPositionChange()
          Did the position change?
 boolean isPositionChangeOnly()
          Is this a position change only?
 boolean isProperty()
          Is the change affecting a property?
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FxDelta.FxDeltaChange

public FxDelta.FxDeltaChange(FxDelta.FxDeltaChange.ChangeType changeType,
                             java.lang.String XPath,
                             FxData originalData,
                             FxData newData)
Ctor

Parameters:
changeType - type of change
XPath - affected XPath
originalData - original data
newData - new data
Method Detail

getChangeType

public FxDelta.FxDeltaChange.ChangeType getChangeType()
Get the type of change

Returns:
type of change

getXPath

public java.lang.String getXPath()
Getter for the XPath (based on the origina XPath)

Returns:
XPath

getOriginalData

public FxData getOriginalData()
Getter for the original data

Returns:
original data

getNewData

public FxData getNewData()
Getter for the new data

Returns:
new data

isProperty

public boolean isProperty()
Is the change affecting a property?

Returns:
property affected?

isInternal

public boolean isInternal()
Is this a system internal property like version or step?

Returns:
is system internal

isPositionChangeOnly

public boolean isPositionChangeOnly()
Is this a position change only?

Returns:
position change only?

isGroup

public boolean isGroup()
Is the change affecting a group?

Returns:
group affected?

isPositionChange

public boolean isPositionChange()
Did the position change?

Returns:
position change

isDataChange

public boolean isDataChange()
Has data changed?

Returns:
data changed

isLanguageSettingChanged

public boolean isLanguageSettingChanged()
Have language settings changed? (New or removed translationtions,etc)

Returns:
language settings changed

_isUpdateable

public boolean _isUpdateable()
Internal use only! Is this delta updateable or do we need delete/insert? A property is not updateable if language settings changed or it spans multiple columns like a select-many

Returns:
if this chance is updateable

_increaseRetries

public void _increaseRetries()
Internal use only! Increase the retry count - used when saving and conflicts arise that are fixed after some retries (ie positioning changes)


_getRetryCount

public int _getRetryCount()
Internal use only! Getter for the retry count

Returns:
retry count

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object