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 ScopeSpeccreate(String name)Creates a newScopeSpecwith no collections attached.static ScopeSpeccreate(String name, Set<CollectionSpec> collectionSpecs)Creates a newScopeSpecwith a set ofCollectionSpecs.booleanequals(Object o)inthashCode()Stringname()Returns the name of the scope.StringtoString()
-
-
-
Method Detail
-
create
@Internal public static ScopeSpec create(String name, Set<CollectionSpec> collectionSpecs)
Creates a newScopeSpecwith a set ofCollectionSpecs.- 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 newScopeSpecwith 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.
-
-