org.netbeans.mdr.persistence
Interface StorageFactory

All Known Implementing Classes:
BtreeFactory

public interface StorageFactory

For any implementation of Storage, the constructor is something like StorageImplementation(name). Different names represent different repositories. The meaning of "name" is implementation-defined. For btree it will be the base of the file name. This factory is used only to create instances of Storage. Methods to create and delete physical resources for the Storage, open and close the Storage etc. are defined in Storage interface.

Version:
Author:
Pavel Buzek

Method Summary
 MOFID createNullMOFID()
          Creates a NULL MOFID in the format used by this Storage implementation
 Storage createStorage(java.util.Map properties)
          Creates instance of class that implements Storage interface.
 

Method Detail

createStorage

Storage createStorage(java.util.Map properties)
                      throws StorageException
Creates instance of class that implements Storage interface. throws StorageException if the name is not valid name of a Storage

Throws:
StorageException

createNullMOFID

MOFID createNullMOFID()
                      throws StorageException
Creates a NULL MOFID in the format used by this Storage implementation

Throws:
StorageException


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.