Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix javadocs and enable doclint
[controller.git]
/
opendaylight
/
md-sal
/
sal-binding-api
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
md
/
sal
/
binding
/
api
/
WriteTransaction.java
diff --git
a/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/md/sal/binding/api/WriteTransaction.java
b/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/md/sal/binding/api/WriteTransaction.java
index a6ba2e2799b99f884c119dae6ef67e44bd85a562..d99150881ac6f60350379d7f5b78b30e2b184c30 100644
(file)
--- a/
opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/md/sal/binding/api/WriteTransaction.java
+++ b/
opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/md/sal/binding/api/WriteTransaction.java
@@
-67,8
+67,9
@@
public interface WriteTransaction extends AsyncWriteTransaction<InstanceIdentifi
* @param data
* the data object to be written to the specified path
* @param createMissingParents
* @param data
* the data object to be written to the specified path
* @param createMissingParents
- * if true, any missing parent nodes will be automatically
- * created using a merge operation.
+ * if {@link #CREATE_MISSING_PARENTS} ({@code true}), any missing
+ * parent nodes will be automatically created using a merge
+ * operation.
* @throws IllegalStateException
* if the transaction has already been submitted
*/
* @throws IllegalStateException
* if the transaction has already been submitted
*/
@@
-115,8
+116,9
@@
public interface WriteTransaction extends AsyncWriteTransaction<InstanceIdentifi
* @param data
* the data object to be merged to the specified path
* @param createMissingParents
* @param data
* the data object to be merged to the specified path
* @param createMissingParents
- * if true, any missing parent nodes will be automatically created
- * using a merge operation.
+ * if {@link #CREATE_MISSING_PARENTS} ({@code true}), any missing
+ * parent nodes will be automatically created using a merge
+ * operation.
* @throws IllegalStateException
* if the transaction has already been submitted
*/
* @throws IllegalStateException
* if the transaction has already been submitted
*/
@@
-125,4
+127,14
@@
public interface WriteTransaction extends AsyncWriteTransaction<InstanceIdentifi
@Override
void delete(LogicalDatastoreType store, InstanceIdentifier<?> path);
@Override
void delete(LogicalDatastoreType store, InstanceIdentifier<?> path);
+
+ /**
+ * Flag value indicating that missing parents should be created.
+ */
+ boolean CREATE_MISSING_PARENTS = true;
+
+ /**
+ * Flag value indicating that missing parents should cause an error.
+ */
+ boolean FAIL_ON_MISSING_PARENTS = false;
}
}