org.apache.jackrabbit.jcr2spi
Class StaleProperty

java.lang.Object
  extended by org.apache.jackrabbit.commons.AbstractItem
      extended by org.apache.jackrabbit.commons.AbstractProperty
          extended by org.apache.jackrabbit.jcr2spi.StaleProperty
All Implemented Interfaces:
Item, Property

public class StaleProperty
extends org.apache.jackrabbit.commons.AbstractProperty

This implementation of Property throws an InvalidItemStateException on all method calls.


Field Summary
 
Fields inherited from interface javax.jcr.Property
JCR_ACTIVITY, JCR_AUTOCREATED, JCR_BASE_VERSION, JCR_CHILD_VERSION_HISTORY, JCR_CONFIGURATION, JCR_CONTENT, JCR_COPIED_FROM, JCR_CREATED, JCR_CREATED_BY, JCR_CURRENT_LIFECYCLE_STATE, JCR_DATA, JCR_DEFAULT_PRIMARY_TYPE, JCR_DEFAULT_VALUES, JCR_DESCRIPTION, JCR_ENCODING, JCR_FROZEN_MIXIN_TYPES, JCR_FROZEN_PRIMARY_TYPE, JCR_FROZEN_UUID, JCR_HAS_ORDERABLE_CHILD_NODES, JCR_HOST, JCR_ID, JCR_IS_ABSTRACT, JCR_IS_CHECKED_OUT, JCR_IS_MIXIN, JCR_LANGUAGE, JCR_LAST_MODIFIED, JCR_LAST_MODIFIED_BY, JCR_LIFECYCLE_POLICY, JCR_LOCK_IS_DEEP, JCR_LOCK_OWNER, JCR_MANDATORY, JCR_MERGE_FAILED, JCR_MIMETYPE, JCR_MIXIN_TYPES, JCR_MULTIPLE, JCR_NAME, JCR_NODE_TYPE_NAME, JCR_ON_PARENT_VERSION, JCR_PATH, JCR_PORT, JCR_PREDECESSORS, JCR_PRIMARY_ITEM_NAME, JCR_PRIMARY_TYPE, JCR_PROTECTED, JCR_PROTOCOL, JCR_REPOSITORY, JCR_REQUIRED_PRIMARY_TYPES, JCR_REQUIRED_TYPE, JCR_ROOT, JCR_SAME_NAME_SIBLINGS, JCR_STATEMENT, JCR_SUCCESSORS, JCR_SUPERTYPES, JCR_TITLE, JCR_UUID, JCR_VALUE_CONSTRAINTS, JCR_VERSION_HISTORY, JCR_VERSIONABLE_UUID, JCR_WORKSPACE
 
Constructor Summary
StaleProperty()
           
 
Method Summary
 Binary getBinary()
           
 BigDecimal getDecimal()
           
 PropertyDefinition getDefinition()
           
 String getName()
           
 Node getParent()
           
 Session getSession()
           
 Value getValue()
           
 Value[] getValues()
           
 boolean isModified()
           
 boolean isMultiple()
           
 boolean isNew()
           
 boolean isSame(Item otherItem)
           
 void refresh(boolean keepChanges)
           
 void save()
           
 void setValue(BigDecimal value)
           
 void setValue(Binary value)
           
 
Methods inherited from class org.apache.jackrabbit.commons.AbstractProperty
accept, getBoolean, getDate, getDouble, getLength, getLengths, getLong, getNode, getPath, getProperty, getStream, getString, getType, isNode, remove, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue
 
Methods inherited from class org.apache.jackrabbit.commons.AbstractItem
getAncestor, getDepth, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.jcr.Item
getAncestor, getDepth
 

Constructor Detail

StaleProperty

public StaleProperty()
Method Detail

setValue

public void setValue(Binary value)
              throws ValueFormatException,
                     VersionException,
                     LockException,
                     ConstraintViolationException,
                     RepositoryException
Throws:
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException

setValue

public void setValue(BigDecimal value)
              throws ValueFormatException,
                     VersionException,
                     LockException,
                     ConstraintViolationException,
                     RepositoryException
Throws:
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException

getValue

public Value getValue()
               throws ValueFormatException,
                      RepositoryException
Throws:
ValueFormatException
RepositoryException

getValues

public Value[] getValues()
                  throws ValueFormatException,
                         RepositoryException
Throws:
ValueFormatException
RepositoryException

getBinary

public Binary getBinary()
                 throws ValueFormatException,
                        RepositoryException
Throws:
ValueFormatException
RepositoryException

getDecimal

public BigDecimal getDecimal()
                      throws ValueFormatException,
                             RepositoryException
Throws:
ValueFormatException
RepositoryException

getDefinition

public PropertyDefinition getDefinition()
                                 throws RepositoryException
Throws:
RepositoryException

isMultiple

public boolean isMultiple()
                   throws RepositoryException
Throws:
RepositoryException

getName

public String getName()
               throws RepositoryException
Throws:
RepositoryException

getParent

public Node getParent()
               throws ItemNotFoundException,
                      AccessDeniedException,
                      RepositoryException
Throws:
ItemNotFoundException
AccessDeniedException
RepositoryException

getSession

public Session getSession()
                   throws RepositoryException
Throws:
RepositoryException

isNew

public boolean isNew()

isModified

public boolean isModified()

isSame

public boolean isSame(Item otherItem)
               throws RepositoryException
Throws:
RepositoryException

save

public void save()
          throws AccessDeniedException,
                 ItemExistsException,
                 ConstraintViolationException,
                 InvalidItemStateException,
                 ReferentialIntegrityException,
                 VersionException,
                 LockException,
                 NoSuchNodeTypeException,
                 RepositoryException
Throws:
AccessDeniedException
ItemExistsException
ConstraintViolationException
InvalidItemStateException
ReferentialIntegrityException
VersionException
LockException
NoSuchNodeTypeException
RepositoryException

refresh

public void refresh(boolean keepChanges)
             throws InvalidItemStateException,
                    RepositoryException
Throws:
InvalidItemStateException
RepositoryException


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