Class SchemaObjectDefinition
java.lang.Object
org.springframework.data.gemfire.config.schema.SchemaObjectDefinition
- All Implemented Interfaces:
Serializable
,org.springframework.core.Ordered
- Direct Known Subclasses:
IndexDefinition
,RegionDefinition
public abstract class SchemaObjectDefinition
extends Object
implements Serializable, org.springframework.core.Ordered
SchemaObjectDefinition
is an Abstract Data Type (ADT) encapsulating the definition of a single Apache Geode
or Pivotal GemFire schema object (e.g. Region
or Index
).- Since:
- 2.0.0
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionSchemaObjectDefinition
(String name) Constructs a new instance ofSchemaObjectDefinition
initialized with the specifiedname
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
create
(GemfireAdminOperations gemfireAdminOperations) Creates an actual schema object from thisSchemaObjectDefinition
.boolean
getName()
Returns thename
assigned to the schema object.abstract SchemaObjectType
getType()
Returns thetype
of schema object defined by thisSchemaObjectDefinition
.int
hashCode()
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.core.Ordered
getOrder
-
Constructor Details
-
SchemaObjectDefinition
Constructs a new instance ofSchemaObjectDefinition
initialized with the specifiedname
.- Parameters:
name
-name
given to the GemFire/Geode schema object; must not be null.- Throws:
IllegalArgumentException
- if name is not specified.
-
-
Method Details
-
getName
Returns thename
assigned to the schema object.- Returns:
- the
name
assigned to the schema object; name is never null.
-
getType
Returns thetype
of schema object defined by thisSchemaObjectDefinition
.- Returns:
- the
type
of schema object defined by thisSchemaObjectDefinition
. - See Also:
-
create
Creates an actual schema object from thisSchemaObjectDefinition
.- Parameters:
gemfireAdminOperations
-GemfireAdminOperations
used to create an actual schema object from thisSchemaObjectDefinition
.- See Also:
-
equals
-
hashCode
public int hashCode() -
toString
-