org.apache.jackrabbit.core.cluster
Class PropertyModifiedOperation

java.lang.Object
  extended by org.apache.jackrabbit.core.cluster.ItemOperation
      extended by org.apache.jackrabbit.core.cluster.PropertyModifiedOperation

public class PropertyModifiedOperation
extends ItemOperation

Describes a journal operation for a property modification.


Field Summary
 
Fields inherited from class org.apache.jackrabbit.core.cluster.ItemOperation
ADDED, DELETED, MODIFIED
 
Method Summary
 void apply(ChangeLog changeLog)
          Apply an operation to a change log.
static org.apache.jackrabbit.core.cluster.PropertyOperation create(int operationType)
          Creates a new instance of a known subclass.
static org.apache.jackrabbit.core.cluster.PropertyOperation create(PropertyState state)
          Create a property record for a modified property.
 PropDefId getDefinitionId()
          Return the definition id.
 PropertyId getId()
          Return the property id.
 int getType()
          Return the type.
 InternalValue[] getValues()
          Return the values.
 boolean hasDefinitionId()
          Return a flag indicating whether the definiton id is contained in this record.
 boolean hasId()
          Return a flag indicating whether the property id is contained in this record.
 boolean hasMultiValued()
          Return a flag indicating whether the multivalued flag is contained in this record.
 boolean hasType()
          Return a flag indicating whether the type is contained.
 boolean hasValues()
          Return a flag indicating whether the values contained in this record.
 boolean isMultiValued()
          Return the multivalued flag.
 void setDefinitionId(PropDefId definitionId)
          Set the definition id.
 void setId(PropertyId id)
          Set the property id.
 void setMultiValued(boolean multiValued)
          Set the multivalued flag.
 void setType(int type)
          Set the type.
 void setValues(InternalValue[] values)
          Set the values.
 
Methods inherited from class org.apache.jackrabbit.core.cluster.ItemOperation
getOperationType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static org.apache.jackrabbit.core.cluster.PropertyOperation create(PropertyState state)
Create a property record for a modified property. Only modified/modifiable members must be transmitted.

Parameters:
state - property state
Returns:
property operation

apply

public void apply(ChangeLog changeLog)
Apply an operation to a change log. Subclass responsibility.

Specified by:
apply in class ItemOperation
Parameters:
changeLog - change log

create

public static org.apache.jackrabbit.core.cluster.PropertyOperation create(int operationType)
Creates a new instance of a known subclass.

Parameters:
operationType - operation type
Returns:
instance of this class

hasDefinitionId

public boolean hasDefinitionId()
Return a flag indicating whether the definiton id is contained in this record.

Returns:
true if the definition id is contained; false otherwise.

getDefinitionId

public PropDefId getDefinitionId()
Return the definition id.

Returns:
definition id

setDefinitionId

public void setDefinitionId(PropDefId definitionId)
Set the definition id.

Parameters:
definitionId - definition id

hasId

public boolean hasId()
Return a flag indicating whether the property id is contained in this record.

Returns:
true if the property id is contained; false otherwise.

getId

public PropertyId getId()
Return the property id.

Returns:
property id

setId

public void setId(PropertyId id)
Set the property id.

Parameters:
id - property id

hasMultiValued

public boolean hasMultiValued()
Return a flag indicating whether the multivalued flag is contained in this record.

Returns:
true if the multivalued flag is contained; false otherwise.

isMultiValued

public boolean isMultiValued()
Return the multivalued flag.

Returns:
multivalued flag

setMultiValued

public void setMultiValued(boolean multiValued)
Set the multivalued flag.

Parameters:
multiValued - multivalued flag

hasType

public boolean hasType()
Return a flag indicating whether the type is contained.

Returns:
true if the type is contained; false otherwise.

getType

public int getType()
Return the type.

Returns:
type

setType

public void setType(int type)
Set the type.

Parameters:
type - type

hasValues

public boolean hasValues()
Return a flag indicating whether the values contained in this record.

Returns:
true if the values contained contained; false otherwise.

getValues

public InternalValue[] getValues()
Return the values.

Returns:
value

setValues

public void setValues(InternalValue[] values)
Set the values.

Parameters:
values - values


Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.