org.alfresco.jcr.item
Class ItemImpl

java.lang.Object
  extended by org.alfresco.jcr.item.ItemImpl
All Implemented Interfaces:
javax.jcr.Item
Direct Known Subclasses:
NodeImpl, PropertyImpl

public abstract class ItemImpl
extends java.lang.Object
implements javax.jcr.Item

Alfresco Implementation of an Item


Field Summary
protected  SessionImpl session
           
 
Constructor Summary
ItemImpl(SessionImpl session)
          Construct
 
Method Summary
abstract  javax.jcr.Item getProxy()
          Get the Item Proxy
 javax.jcr.Session getSession()
           
 SessionImpl getSessionImpl()
          Get the Session implementation
 boolean isModified()
           
 boolean isNew()
           
 void refresh(boolean keepChanges)
           
 void save()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jcr.Item
accept, getAncestor, getDepth, getName, getParent, getPath, isNode, isSame, remove
 

Field Detail

session

protected SessionImpl session
Constructor Detail

ItemImpl

public ItemImpl(SessionImpl session)
Construct

Parameters:
session -
Method Detail

getSessionImpl

public SessionImpl getSessionImpl()
Get the Session implementation

Returns:
session implementation

getProxy

public abstract javax.jcr.Item getProxy()
Get the Item Proxy

Returns:
the proxy

getSession

public javax.jcr.Session getSession()
                             throws javax.jcr.RepositoryException
Specified by:
getSession in interface javax.jcr.Item
Throws:
javax.jcr.RepositoryException

isNew

public boolean isNew()
Specified by:
isNew in interface javax.jcr.Item

isModified

public boolean isModified()
Specified by:
isModified in interface javax.jcr.Item

save

public void save()
          throws javax.jcr.AccessDeniedException,
                 javax.jcr.ItemExistsException,
                 javax.jcr.nodetype.ConstraintViolationException,
                 javax.jcr.InvalidItemStateException,
                 javax.jcr.ReferentialIntegrityException,
                 javax.jcr.version.VersionException,
                 javax.jcr.lock.LockException,
                 javax.jcr.nodetype.NoSuchNodeTypeException,
                 javax.jcr.RepositoryException
Specified by:
save in interface javax.jcr.Item
Throws:
javax.jcr.AccessDeniedException
javax.jcr.ItemExistsException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.InvalidItemStateException
javax.jcr.ReferentialIntegrityException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.NoSuchNodeTypeException
javax.jcr.RepositoryException

refresh

public void refresh(boolean keepChanges)
             throws javax.jcr.InvalidItemStateException,
                    javax.jcr.RepositoryException
Specified by:
refresh in interface javax.jcr.Item
Throws:
javax.jcr.InvalidItemStateException
javax.jcr.RepositoryException


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.