| Modifier and Type | Field and Description |
|---|---|
protected T |
dlg |
static String |
ITEM_SAVE_DOES_SESSION_SAVE |
static int |
MV_PROPERTY_WARN_THRESHOLD |
static boolean |
SAVE_SESSION
The value of this flag determines the behaviour of
save(). |
protected SessionContext |
sessionContext |
protected SessionDelegate |
sessionDelegate |
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| Modifier and Type | Method and Description |
|---|---|
void |
accept(ItemVisitor visitor) |
protected org.apache.jackrabbit.oak.api.PropertyState |
createMultiState(String oakName,
List<Value> values,
org.apache.jackrabbit.oak.api.Type<?> type) |
protected org.apache.jackrabbit.oak.api.PropertyState |
createSingleState(String oakName,
Value value,
org.apache.jackrabbit.oak.api.Type<?> type) |
Item |
getAncestor(int depth) |
Binary |
getBinary() |
boolean |
getBoolean() |
Calendar |
getDate() |
BigDecimal |
getDecimal() |
PropertyDefinition |
getDefinition() |
int |
getDepth() |
double |
getDouble() |
long |
getLength() |
long[] |
getLengths() |
long |
getLong() |
String |
getName() |
Node |
getNode() |
Node |
getParent() |
String |
getPath() |
Property |
getProperty() |
Session |
getSession() |
InputStream |
getStream() |
String |
getString() |
int |
getType() |
Value |
getValue() |
Value[] |
getValues() |
boolean |
isModified() |
boolean |
isMultiple() |
boolean |
isNew() |
boolean |
isNode() |
boolean |
isSame(Item otherItem) |
protected <U> U |
perform(SessionOperation<U> op)
Perform the passed
SessionOperation. |
void |
refresh(boolean keepChanges) |
void |
remove() |
void |
save()
|
void |
setValue(BigDecimal value) |
void |
setValue(Binary value) |
void |
setValue(boolean value) |
void |
setValue(Calendar value) |
void |
setValue(double value) |
void |
setValue(InputStream value) |
void |
setValue(long value) |
void |
setValue(Node value) |
void |
setValue(String value) |
void |
setValue(String[] strings) |
void |
setValue(Value value) |
void |
setValue(Value[] values) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAncestor, getDepth, getName, getPath, getSession, isSame, refresh, savepublic static final String ITEM_SAVE_DOES_SESSION_SAVE
public static final int MV_PROPERTY_WARN_THRESHOLD
public static final boolean SAVE_SESSION
save(). If false,
save will throw a UnsupportedRepositoryOperationException if the
sub tree rooted at this item does not contain all transient changes. If
true, save will delegate to Session.save().protected final SessionContext sessionContext
protected final T extends ItemDelegate dlg
protected final SessionDelegate sessionDelegate
@Nonnull public Node getParent() throws RepositoryException
getParent in interface ItemRepositoryExceptionpublic boolean isModified()
isModified in interface Itempublic void remove()
throws RepositoryException
remove in interface ItemRepositoryExceptionpublic void accept(ItemVisitor visitor) throws RepositoryException
accept in interface ItemRepositoryExceptionpublic void setValue(Value value) throws RepositoryException
setValue in interface PropertyRepositoryExceptionpublic void setValue(Value[] values) throws RepositoryException
setValue in interface PropertyRepositoryExceptionpublic void setValue(String value) throws RepositoryException
setValue in interface PropertyRepositoryExceptionpublic void setValue(String[] strings) throws RepositoryException
setValue in interface PropertyRepositoryExceptionpublic void setValue(InputStream value) throws RepositoryException
setValue in interface PropertyRepositoryExceptionpublic void setValue(Binary value) throws RepositoryException
setValue in interface PropertyRepositoryExceptionpublic void setValue(long value)
throws RepositoryException
setValue in interface PropertyRepositoryExceptionpublic void setValue(double value)
throws RepositoryException
setValue in interface PropertyRepositoryExceptionpublic void setValue(BigDecimal value) throws RepositoryException
setValue in interface PropertyRepositoryExceptionpublic void setValue(Calendar value) throws RepositoryException
setValue in interface PropertyRepositoryExceptionpublic void setValue(boolean value)
throws RepositoryException
setValue in interface PropertyRepositoryExceptionpublic void setValue(Node value) throws RepositoryException
setValue in interface PropertyRepositoryException@Nonnull public Value getValue() throws RepositoryException
getValue in interface PropertyRepositoryException@Nonnull public Value[] getValues() throws RepositoryException
getValues in interface PropertyRepositoryException@Nonnull public String getString() throws RepositoryException
getString in interface PropertyRepositoryException@Nonnull public InputStream getStream() throws RepositoryException
getStream in interface PropertyRepositoryException@Nonnull public Binary getBinary() throws RepositoryException
getBinary in interface PropertyRepositoryExceptionpublic long getLong()
throws RepositoryException
getLong in interface PropertyRepositoryExceptionpublic double getDouble()
throws RepositoryException
getDouble in interface PropertyRepositoryException@Nonnull public BigDecimal getDecimal() throws RepositoryException
getDecimal in interface PropertyRepositoryException@Nonnull public Calendar getDate() throws RepositoryException
getDate in interface PropertyRepositoryExceptionpublic boolean getBoolean()
throws RepositoryException
getBoolean in interface PropertyRepositoryException@Nonnull public Node getNode() throws RepositoryException
getNode in interface PropertyRepositoryException@Nonnull public Property getProperty() throws RepositoryException
getProperty in interface PropertyRepositoryExceptionpublic long getLength()
throws RepositoryException
getLength in interface PropertyRepositoryException@Nonnull public long[] getLengths() throws RepositoryException
getLengths in interface PropertyRepositoryException@Nonnull public PropertyDefinition getDefinition() throws RepositoryException
getDefinition in interface PropertyRepositoryExceptionpublic int getType()
throws RepositoryException
getType in interface PropertyRepositoryExceptionpublic boolean isMultiple()
throws RepositoryException
isMultiple in interface PropertyRepositoryException@Nonnull protected final <U> U perform(@Nonnull SessionOperation<U> op) throws RepositoryException
SessionOperation.U - return type of the operationop - operation to performop.perform()RepositoryException - as thrown by op.perform().@Nonnull public String getName() throws RepositoryException
getName in interface ItemRepositoryExceptionItem.getName()@Nonnull public String getPath() throws RepositoryException
getPath in interface ItemRepositoryExceptionItem.getPath()@Nonnull public Session getSession()
getSession in interface Itempublic Item getAncestor(int depth) throws RepositoryException
getAncestor in interface ItemRepositoryExceptionpublic int getDepth()
throws RepositoryException
getDepth in interface ItemRepositoryExceptionpublic boolean isSame(Item otherItem) throws RepositoryException
isSame in interface ItemRepositoryExceptionItem.isSame(javax.jcr.Item)public void save()
throws RepositoryException
Session.save() if SAVE_SESSION is
true. Otherwise it only performs the save if the subtree rooted at this item contains
all transient changes. That is, if calling Session.save() would have the same effect
as calling this method. In all other cases this method will throw an
UnsupportedRepositoryOperationExceptionsave in interface ItemRepositoryExceptionItem.save()public void refresh(boolean keepChanges)
throws RepositoryException
refresh in interface ItemRepositoryExceptionItem.refresh(boolean)@Nonnull protected org.apache.jackrabbit.oak.api.PropertyState createSingleState(String oakName, Value value, org.apache.jackrabbit.oak.api.Type<?> type) throws RepositoryException
RepositoryException@Nonnull protected org.apache.jackrabbit.oak.api.PropertyState createMultiState(String oakName, List<Value> values, org.apache.jackrabbit.oak.api.Type<?> type) throws RepositoryException
RepositoryExceptionCopyright © 2012-2016 The Apache Software Foundation. All Rights Reserved.