Class AbstractWriteTransaction<T extends DOMDataWriteTransaction>
- java.lang.Object
-
- org.opendaylight.controller.md.sal.binding.impl.AbstractWriteTransaction<T>
-
- All Implemented Interfaces:
Delegator<T>
,Identifiable<Object>
- Direct Known Subclasses:
AbstractReadWriteTransaction
@Deprecated(forRemoval=true) public abstract class AbstractWriteTransaction<T extends DOMDataWriteTransaction> extends Object
Deprecated, for removal: This API element is subject to removal in a future version.Abstract Base Transaction for transactions which are backed byDOMDataWriteTransaction
.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractWriteTransaction(T delegate, BindingToNormalizedNodeCodec codec)
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected boolean
doCancel()
Deprecated, for removal: This API element is subject to removal in a future version.protected FluentFuture<? extends CommitInfo>
doCommit()
Deprecated, for removal: This API element is subject to removal in a future version.protected void
doDelete(LogicalDatastoreType store, InstanceIdentifier<?> path)
Deprecated, for removal: This API element is subject to removal in a future version.protected CheckedFuture<Boolean,ReadFailedException>
doExists(DOMDataReadTransaction readTx, LogicalDatastoreType store, InstanceIdentifier<?> path)
Deprecated, for removal: This API element is subject to removal in a future version.protected <D extends DataObject>
CheckedFuture<Optional<D>,ReadFailedException>doRead(DOMDataReadTransaction readTx, LogicalDatastoreType store, InstanceIdentifier<D> path)
Deprecated, for removal: This API element is subject to removal in a future version.protected abstract void
ensureParentsByMerge(LogicalDatastoreType store, YangInstanceIdentifier key, InstanceIdentifier<?> path)
Deprecated, for removal: This API element is subject to removal in a future version.Subclasses of this class are required to implement creation of parent nodes based on behaviour of their underlying transaction.protected BindingToNormalizedNodeCodec
getCodec()
Deprecated, for removal: This API element is subject to removal in a future version.T
getDelegate()
Deprecated, for removal: This API element is subject to removal in a future version.protected <S extends AsyncTransaction<YangInstanceIdentifier,NormalizedNode<?,?>>>
SgetDelegateChecked(Class<S> txType)
Deprecated, for removal: This API element is subject to removal in a future version.Object
getIdentifier()
Deprecated, for removal: This API element is subject to removal in a future version.protected static Optional<YangInstanceIdentifier>
getParent(YangInstanceIdentifier child)
Deprecated.UseYangInstanceIdentifier.getParent()
instead.<U extends DataObject>
voidmerge(LogicalDatastoreType store, InstanceIdentifier<U> path, U data, boolean createParents)
Deprecated, for removal: This API element is subject to removal in a future version.<U extends DataObject>
voidput(LogicalDatastoreType store, InstanceIdentifier<U> path, U data, boolean createParents)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
Constructor Detail
-
AbstractWriteTransaction
protected AbstractWriteTransaction(T delegate, BindingToNormalizedNodeCodec codec)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Detail
-
put
public final <U extends DataObject> void put(LogicalDatastoreType store, InstanceIdentifier<U> path, U data, boolean createParents)
Deprecated, for removal: This API element is subject to removal in a future version.
-
merge
public final <U extends DataObject> void merge(LogicalDatastoreType store, InstanceIdentifier<U> path, U data, boolean createParents)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getParent
@Deprecated protected static Optional<YangInstanceIdentifier> getParent(YangInstanceIdentifier child)
Deprecated.UseYangInstanceIdentifier.getParent()
instead.Deprecated.
-
ensureParentsByMerge
protected abstract void ensureParentsByMerge(LogicalDatastoreType store, YangInstanceIdentifier key, InstanceIdentifier<?> path)
Deprecated, for removal: This API element is subject to removal in a future version.Subclasses of this class are required to implement creation of parent nodes based on behaviour of their underlying transaction.
-
doDelete
protected final void doDelete(LogicalDatastoreType store, InstanceIdentifier<?> path)
Deprecated, for removal: This API element is subject to removal in a future version.
-
doCommit
protected final FluentFuture<? extends CommitInfo> doCommit()
Deprecated, for removal: This API element is subject to removal in a future version.
-
doCancel
protected final boolean doCancel()
Deprecated, for removal: This API element is subject to removal in a future version.
-
getIdentifier
public final Object getIdentifier()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getIdentifier
in interfaceIdentifiable<T extends AsyncTransaction<YangInstanceIdentifier,NormalizedNode<?,?>>>
-
getDelegate
public final T getDelegate()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getDelegate
in interfaceDelegator<T extends AsyncTransaction<YangInstanceIdentifier,NormalizedNode<?,?>>>
-
getDelegateChecked
protected final <S extends AsyncTransaction<YangInstanceIdentifier,NormalizedNode<?,?>>> S getDelegateChecked(Class<S> txType)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getCodec
protected final BindingToNormalizedNodeCodec getCodec()
Deprecated, for removal: This API element is subject to removal in a future version.
-
doRead
protected final <D extends DataObject> CheckedFuture<Optional<D>,ReadFailedException> doRead(DOMDataReadTransaction readTx, LogicalDatastoreType store, InstanceIdentifier<D> path)
Deprecated, for removal: This API element is subject to removal in a future version.
-
doExists
protected final CheckedFuture<Boolean,ReadFailedException> doExists(DOMDataReadTransaction readTx, LogicalDatastoreType store, InstanceIdentifier<?> path)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-