FreeHEP API
Version current

hep.aida.dev
Interface IDevMutableStore

All Superinterfaces:
IMutableStore, IOnDemandStore, IStore
All Known Implementing Classes:
BasicMutableStore, RemoteMutableStore

public interface IDevMutableStore
extends IMutableStore

Developer level interface to an IMutableStore.

Author:
serbo
Source Code:
IDevMutableStore.java

Method Summary
 hep.aida.IManagedObject createObject(String name, String type)
          Create an IManagedObject that can be later updated.
 void updateData(String path, String type)
          Initiates the process of updating content for an IManagedObject.
 
Methods inherited from interface hep.aida.dev.IOnDemandStore
read
 
Methods inherited from interface hep.aida.dev.IStore
close, commit, isReadOnly, read
 

Method Detail

updateData

public void updateData(String path,
                       String type)
                throws IllegalArgumentException
Initiates the process of updating content for an IManagedObject. Can be done synchronously or can just schedule update in some queue. If validation mechanism is used for updates, servant's "setValid(path)" method should be called here after successfull date update.

Parameters:
path - The path to the object which is to be updated.
type - Type of object (this parameter does not have to be used).
Throws:
IllegalArgumentException - If the path does not exist, or if it is a directory.

createObject

public hep.aida.IManagedObject createObject(String name,
                                            String type)
                                     throws IllegalArgumentException
Create an IManagedObject that can be later updated. If object already exist, do not overwrite it, just return with, maybe, a warning.

Parameters:
name - Simple name of an object which is to be created, no directories.
type - Type of object.
Throws:
IllegalArgumentException - If unknown type.

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.