Class ScopeSpec
- java.lang.Object
-
- com.couchbase.client.java.manager.collection.ScopeSpec
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<CollectionSpec>
collections()
Returns the underlying collections of this scope.static ScopeSpec
create(String name)
Creates a newScopeSpec
with no collections attached.static ScopeSpec
create(String name, Set<CollectionSpec> collectionSpecs)
Creates a newScopeSpec
with a set ofCollectionSpec
s.boolean
equals(Object o)
int
hashCode()
String
name()
Returns the name of the scope.String
toString()
-
-
-
Method Detail
-
create
@Internal public static ScopeSpec create(String name, Set<CollectionSpec> collectionSpecs)
Creates a newScopeSpec
with a set ofCollectionSpec
s.- Parameters:
name
- the name of the scope.collectionSpecs
- the collections that should be part of the scope.- Returns:
- the created
ScopeSpec
.
-
create
@Internal public static ScopeSpec create(String name)
Creates a newScopeSpec
with no collections attached.- Parameters:
name
- the name of the scope.- Returns:
- the created
ScopeSpec
.
-
name
public String name()
Returns the name of the scope.- Returns:
- the name of the scope.
-
collections
public Set<CollectionSpec> collections()
Returns the underlying collections of this scope.- Returns:
- the underlying collections of this scope.
-
-