VisiBroker for Java

com.inprise.vbroker.ServerManager
Interface StorageOperations

All Known Subinterfaces:
Storage

public interface StorageOperations


Method Summary
 void close()
          Closes the storage.
 void open()
          Opens the storage for reading and writing.
 Property[] read_properties()
          Reads all properties from the storage and returns the property sequence.
 Property read_property(java.lang.String propertyName)
          Read a property from the storage.
 void write_properties(Property[] p)
          Writes properties to the storage.
 void write_property(Property p)
          Writes a single property to the storage.
 

Method Detail

write_property

void write_property(Property p)
                    throws StorageException
Writes a single property to the storage.

Parameters:
p - Property to be written.
Throws:
StorageException - If an I/O error occurs while writing the property.

write_properties

void write_properties(Property[] p)
                      throws StorageException
Writes properties to the storage.

Parameters:
p - Array containing all the properties to be written.
Throws:
StorageException - If an I/O error occurs while writing a property.

read_property

Property read_property(java.lang.String propertyName)
                       throws StorageException,
                              NameInvalid
Read a property from the storage.

Parameters:
propertyName - Name of the property to read.
Throws:
NameInvalid - If the property name is not known to the container.
StorageException - If an I/O error occurs while reading the property.

read_properties

Property[] read_properties()
                           throws StorageException
Reads all properties from the storage and returns the property sequence.

Returns:
Array of Property containing all the properties.
Throws:
StorageException

close

void close()
           throws StorageException
Closes the storage. May write back all the modified properties to the storage.

Throws:
StorageException

open

void open()
          throws StorageException
Opens the storage for reading and writing.

Throws:
StorageException

Borland Software Corporation
http://www.borland.com
100 Enterprise Way
Scotts Valley, CA 95066
Voice: (831) 431-1000
pubsweb@borland.com

Read the latest documentation online