Skip to content

Commit 4cbec9e

Browse files
committed
Update factory
Signed-off-by: Otavio Santana <[email protected]>
1 parent 91c5c7b commit 4cbec9e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

jnosql-couchbase-driver/src/main/java/org/eclipse/jnosql/communication/couchbase/keyvalue/DefaultCouchbaseBucketManagerFactory.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -113,36 +113,36 @@ public <K, V> Map<K, V> getMap(String bucketName, String key, Class<K> keyType,
113113
}
114114

115115
@Override
116-
public <T> Queue<T> getQueue(String bucketName, Class<T> clazz) {
116+
public <T> Queue<T> getQueue(String bucketName, Class<T> type) {
117117
requireNonNull(bucketName, "bucketName is required");
118-
requireNonNull(clazz, "valueValue is required");
118+
requireNonNull(type, "type is required");
119119

120120
Bucket bucket = this.cluster.bucket(bucketName);
121121
Collection collection = bucket.collection(bucketName);
122122

123-
return new com.couchbase.client.java.datastructures.CouchbaseQueue<>(bucketName + QUEUE, collection, clazz,
123+
return new com.couchbase.client.java.datastructures.CouchbaseQueue<>(bucketName + QUEUE, collection, type,
124124
QueueOptions.queueOptions());
125125

126126
}
127127

128128
@Override
129-
public <T> Set<T> getSet(String bucketName, Class<T> clazz) {
129+
public <T> Set<T> getSet(String bucketName, Class<T> type) {
130130
requireNonNull(bucketName, "bucketName is required");
131-
requireNonNull(clazz, "valueValue is required");
131+
requireNonNull(type, "type is required");
132132

133133
Bucket bucket = this.cluster.bucket(bucketName);
134134
Collection collection = bucket.collection(bucketName);
135135

136-
return new CouchbaseArraySet<>(bucketName + SET, collection, clazz, ArraySetOptions.arraySetOptions());
136+
return new CouchbaseArraySet<>(bucketName + SET, collection, type, ArraySetOptions.arraySetOptions());
137137
}
138138

139139
@Override
140-
public <T> List<T> getList(String bucketName, Class<T> clazz) {
140+
public <T> List<T> getList(String bucketName, Class<T> type) {
141141
requireNonNull(bucketName, "bucketName is required");
142-
requireNonNull(clazz, "valueValue is required");
142+
requireNonNull(type, "type is required");
143143
Bucket bucket = this.cluster.bucket(bucketName);
144144
Collection collection = bucket.collection(bucketName);
145-
return new CouchbaseArrayList<>(bucketName + LIST, collection, clazz, ArrayListOptions.arrayListOptions());
145+
return new CouchbaseArrayList<>(bucketName + LIST, collection, type, ArrayListOptions.arrayListOptions());
146146
}
147147

148148

0 commit comments

Comments
 (0)