|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.dna.jcr.cache.PropertyInfo
@Immutable public class PropertyInfo
An immutable representation of the name and current value(s) for a property, along with the JCR metadata for the property,
including the property definition
and property
type
.
This class is immutable, which means that clients should never hold onto an instance. Instead, clients can obtain an instance
by using a PropertyId
, quickly use the information in the instance, and then immediately discard their reference. This
is because these instances are replaced and discarded whenever anything about the property changes.
Constructor Summary | |
---|---|
PropertyInfo(PropertyId propertyId,
PropertyDefinitionId definitionId,
int propertyType,
Property dnaProperty,
boolean multiValued,
boolean isNew,
boolean isModified)
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
PropertyDefinitionId |
getDefinitionId()
The identifier for the property definition. |
UUID |
getNodeUuid()
Get the UUID of the node to which this property belongs. |
Property |
getProperty()
Get the DNA Property, which contains the name and value(s) |
PropertyId |
getPropertyId()
Get the durable identifier for this property. |
Name |
getPropertyName()
Get the property name. |
int |
getPropertyType()
Get the JCR PropertyType for this property. |
int |
hashCode()
|
boolean |
isModified()
Indicates whether this property/value combination is modified (i.e., exists in the persistent repository with a different value or values). |
boolean |
isMultiValued()
|
boolean |
isNew()
Indicates whether this property/value combination is new (i.e., does not yet exist in the persistent repository). |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PropertyInfo(PropertyId propertyId, PropertyDefinitionId definitionId, int propertyType, Property dnaProperty, boolean multiValued, boolean isNew, boolean isModified)
Method Detail |
---|
public PropertyId getPropertyId()
public UUID getNodeUuid()
public PropertyDefinitionId getDefinitionId()
public Property getProperty()
public Name getPropertyName()
public int getPropertyType()
PropertyType
for this property.
public boolean isMultiValued()
public boolean isNew()
true
if the property has not yet been saved to the persistent repository.Item.isNew()
public boolean isModified()
true
if the property has been modified since the last time it was saved to the persistent repositoryItem.isModified()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public String toString()
toString
in class Object
Object.toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |