@@ -108,8 +108,8 @@ type QueryExecutor interface {
108
108
ExecuteQuery (namespace , query string ) (commonledger.ResultsIterator , error )
109
109
// GetPrivateData gets the value of a private data item identified by a tuple <namespace, collection, key>
110
110
GetPrivateData (namespace , collection , key string ) ([]byte , error )
111
- // GetPrivateMetadata gets the metadata of a private data item identified by a tuple <namespace, collection, key>
112
- GetPrivateMetadata (namespace , collection , key string ) (map [string ][]byte , error )
111
+ // GetPrivateDataMetadata gets the metadata of a private data item identified by a tuple <namespace, collection, key>
112
+ GetPrivateDataMetadata (namespace , collection , key string ) (map [string ][]byte , error )
113
113
// GetPrivateDataMultipleKeys gets the values for the multiple private data items in a single call
114
114
GetPrivateDataMultipleKeys (namespace , collection string , keys []string ) ([][]byte , error )
115
115
// GetPrivateDataRangeScanIterator returns an iterator that contains all the key-values between given key ranges.
@@ -144,11 +144,9 @@ type TxSimulator interface {
144
144
DeleteState (namespace string , key string ) error
145
145
// SetMultipleKeys sets the values for multiple keys in a single call
146
146
SetStateMultipleKeys (namespace string , kvs map [string ][]byte ) error
147
- // SetStateMetadataEntry upserts an entry in the metadata for the given namespace and key
148
- SetStateMetadataEntry (namespace , key , metakey string , metadata []byte ) error
149
- // DeleteStateMetadataEntry deletes the given entry from the metadata for the given namespace and key
150
- DeleteStateMetadataEntry (namespace , key , metakey string ) error
151
- // DeleteStateMetadata deletes entire metadata for a given key
147
+ // SetStateMetadata sets the metadata associated with an existing key-tuple <namespace, key>
148
+ SetStateMetadata (namespace , key , metadata map [string ][]byte ) error
149
+ // DeleteStateMetadata deletes the metadata (if any) associated with an existing key-tuple <namespace, key>
152
150
DeleteStateMetadata (namespace , key string ) error
153
151
// ExecuteUpdate for supporting rich data model (see comments on QueryExecutor above)
154
152
ExecuteUpdate (query string ) error
@@ -158,12 +156,10 @@ type TxSimulator interface {
158
156
SetPrivateDataMultipleKeys (namespace , collection string , kvs map [string ][]byte ) error
159
157
// DeletePrivateData deletes the given tuple <namespace, collection, key> from private data
160
158
DeletePrivateData (namespace , collection , key string ) error
161
- // SetPrivateMetadataEntry upserts an entry in the metadata for a key in the private data state represented by the tuple <namespace, collection, key>
162
- SetPrivateMetadataEntry (namespace , collection , key , metakey string , metadata []byte ) error
163
- // DeletePrivateMetadataEntry deletes the given entry from the metadata for a key in the private data state represented by the tuple <namespace, collection, key>
164
- DeletePrivateMetadataEntry (namespace , collection , key , metakey string ) error
165
- // DeletePrivateMetadata deletes entire metadata for a given key in the private data state represented by the tuple <namespace, collection, key>
166
- DeletePrivateMetadata (namespace , collection , key string ) error
159
+ // SetPrivateDataMetadata sets the metadata associated with an existing key-tuple <namespace, collection, key>
160
+ SetPrivateDataMetadata (namespace , collection , key , metadata map [string ][]byte ) error
161
+ // DeletePrivateDataMetadata deletes the metadata associated with an existing key-tuple <namespace, collection, key>
162
+ DeletePrivateDataMetadata (namespace , collection , key string ) error
167
163
// GetTxSimulationResults encapsulates the results of the transaction simulation.
168
164
// This should contain enough detail for
169
165
// - The update in the state that would be caused if the transaction is to be committed
0 commit comments