public abstract class AbstractWriteTransaction<T extends DOMDataTreeWriteTransaction> extends Object
DOMDataTreeWriteTransaction
.Modifier | Constructor and Description |
---|---|
protected |
AbstractWriteTransaction(T delegate,
BindingToNormalizedNodeCodec codec) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
doCancel() |
protected @NonNull com.google.common.util.concurrent.FluentFuture<? extends CommitInfo> |
doCommit() |
protected void |
doDelete(LogicalDatastoreType store,
InstanceIdentifier<?> path) |
protected @NonNull com.google.common.util.concurrent.FluentFuture<Boolean> |
doExists(DOMDataTreeReadOperations readOps,
LogicalDatastoreType store,
InstanceIdentifier<?> path) |
protected <D extends DataObject> |
doRead(DOMDataTreeReadOperations readOps,
LogicalDatastoreType store,
InstanceIdentifier<D> path) |
protected void |
ensureParentsByMerge(LogicalDatastoreType store,
org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier domPath,
InstanceIdentifier<?> path)
Subclasses of this class are required to implement creation of parent nodes based on behaviour of their
underlying transaction.
|
protected BindingToNormalizedNodeCodec |
getCodec() |
T |
getDelegate() |
protected <S extends DOMDataTreeTransaction> |
getDelegateChecked(Class<S> txType) |
Object |
getIdentifier() |
protected static Optional<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier> |
getParent(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier child)
Deprecated.
|
<U extends DataObject> |
merge(LogicalDatastoreType store,
InstanceIdentifier<U> path,
U data,
boolean createParents) |
<U extends DataObject> |
put(LogicalDatastoreType store,
InstanceIdentifier<U> path,
U data,
boolean createParents) |
protected AbstractWriteTransaction(T delegate, BindingToNormalizedNodeCodec codec)
public final <U extends DataObject> void put(LogicalDatastoreType store, InstanceIdentifier<U> path, U data, boolean createParents)
public final <U extends DataObject> void merge(LogicalDatastoreType store, InstanceIdentifier<U> path, U data, boolean createParents)
@Deprecated protected static Optional<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier> getParent(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier child)
YangInstanceIdentifier.getParent()
instead.protected final void ensureParentsByMerge(LogicalDatastoreType store, org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier domPath, InstanceIdentifier<?> path)
store
- an instance of LogicalDatastoreTypedomPath
- an instance of YangInstanceIdentifierpath
- an instance of InstanceIdentifierprotected final void doDelete(LogicalDatastoreType store, InstanceIdentifier<?> path)
protected final @NonNull com.google.common.util.concurrent.FluentFuture<? extends CommitInfo> doCommit()
protected final boolean doCancel()
public final Object getIdentifier()
getIdentifier
in interface org.opendaylight.yangtools.concepts.Identifiable<Object>
public final T getDelegate()
getDelegate
in interface org.opendaylight.yangtools.concepts.Delegator<T extends DOMDataTreeTransaction>
protected final <S extends DOMDataTreeTransaction> S getDelegateChecked(Class<S> txType)
protected final BindingToNormalizedNodeCodec getCodec()
protected final <D extends DataObject> @NonNull com.google.common.util.concurrent.FluentFuture<Optional<D>> doRead(DOMDataTreeReadOperations readOps, LogicalDatastoreType store, InstanceIdentifier<D> path)
protected final @NonNull com.google.common.util.concurrent.FluentFuture<Boolean> doExists(DOMDataTreeReadOperations readOps, LogicalDatastoreType store, InstanceIdentifier<?> path)
Copyright © 2019 OpenDaylight. All rights reserved.