org.apache.jackrabbit.jcr2spi.state
Interface TransientItemStateFactory

All Superinterfaces:
ItemStateFactory
All Known Implementing Classes:
TransientISFactory

public interface TransientItemStateFactory
extends ItemStateFactory

TransientItemStateFactory extends the item state factory and adds new methods for creating node states and property states that are new.


Method Summary
 NodeState createNewNodeState(NodeEntry entry, Name nodeTypeName, QNodeDefinition definition)
          Creates a transient child NodeState with the given name.
 PropertyState createNewPropertyState(PropertyEntry entry, QPropertyDefinition definition, QValue[] values, int propertyType)
          Creates a transient PropertyState.
 
Methods inherited from interface org.apache.jackrabbit.jcr2spi.state.ItemStateFactory
addCreationListener, createDeepNodeState, createDeepPropertyState, createNodeState, createPropertyState, createRootState, getChildNodeInfos, getNodeReferences, removeCreationListener
 

Method Detail

createNewNodeState

NodeState createNewNodeState(NodeEntry entry,
                             Name nodeTypeName,
                             QNodeDefinition definition)
Creates a transient child NodeState with the given name.

Parameters:
entry -
nodeTypeName -
definition -
Returns:
the created NodeState

createNewPropertyState

PropertyState createNewPropertyState(PropertyEntry entry,
                                     QPropertyDefinition definition,
                                     QValue[] values,
                                     int propertyType)
                                     throws RepositoryException
Creates a transient PropertyState.

Parameters:
entry -
definition -
values -
propertyType -
Returns:
the created PropertyState.
Throws:
RepositoryException


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