StoreSchema.Builder Class
A builder for constructing StoreSchema instances.
Rather than having to manually construct the options and instantiating a StoreSchema directly, this builder may be used.
var store = StoreSchema.Builder()
.withSchemaName('schema_name')
.withSchema(mySchemaXML)
.withCallback(callback)
.build();
Constructor
StoreSchema.Builder
()
Item Index
Methods
Methods
withCallback
(
chainable
-
callback
Set the callback to be executed when the operation completes.
Parameters:
-
callback
Functionthe callback to execute
-
err
StringAn error message
-
response
Booleanoperation either succeeds or errors. This will be true.
-
withSchema
(
chainable
-
schemaXML
The XML that defines this schema
Parameters:
-
schemaXML
StringThe XML that defines the schema
withSchemaName
(
chainable
-
schemaName
The name of the schema.
Parameters:
-
schemaName
Stringthe name of the schema.