org.datanucleus.store.schema
Interface StoreSchemaHandler


public interface StoreSchemaHandler

Interface defining schema operation for a StoreManager.


Method Summary
 void createSchema(java.lang.Object conn, java.lang.String schemaName)
          Method to create the specified schema.
 void deleteSchema(java.lang.Object conn, java.lang.String schemaName)
          Method to delete the specified schema.
 StoreSchemaData getSchemaData(java.lang.Object conn, java.lang.String name, java.lang.Object[] values)
          Accessor for schema data store under the provided name and defined by the specified values.
 StoreManager getStoreManager()
          Accessor for the StoreManager.
 

Method Detail

createSchema

void createSchema(java.lang.Object conn,
                  java.lang.String schemaName)
Method to create the specified schema.

Parameters:
conn - Connection to the datastore
schemaName - Name of the schema

deleteSchema

void deleteSchema(java.lang.Object conn,
                  java.lang.String schemaName)
Method to delete the specified schema.

Parameters:
conn - Connection to the datastore
schemaName - Name of the schema

getSchemaData

StoreSchemaData getSchemaData(java.lang.Object conn,
                              java.lang.String name,
                              java.lang.Object[] values)
Accessor for schema data store under the provided name and defined by the specified values. The supported types of values is particular to the implementation.

Parameters:
conn - Connection to the datastore
name - Name of the schema component to return.
values - Value(s) to use as qualifier(s) for selecting the schema component
Returns:
Schema data definition for this name

getStoreManager

StoreManager getStoreManager()
Accessor for the StoreManager.

Returns:
StoreManager


Copyright © 2009. All Rights Reserved.