Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

Channel_Helper Class Reference

Defines methods to get and to create objects of Channel by identity or by query. More...

List of all members.

Static Public Member Functions

Channel get (config.Configuration db, config.ConfigObject obj)
 Method to get an object by config object.

Channel get (config.Configuration db, String id)
 Method to get an object by identity.

Channel[] get (config.Configuration db, config.Query query)
 Method to get objects of class.

Channel create (config.Configuration db, String file, String id)
 Method to create object of this class in given database file.

Channel create (config.Configuration db, config.DalObject at, String id)
 Method to create object of this class in database file storing existing object.


Detailed Description

Defines methods to get and to create objects of Channel by identity or by query.

If something goes wrong the methods can throw several exceptions:

In addition the methods to create object can throw config.NotAllowedException exception in case, if there are no write access rights or database is already locked by other process.

Author:
genconfig

Definition at line 29 of file Channel_Helper.java.


Member Function Documentation

Channel Channel_Helper.create config.Configuration  db,
config.DalObject  at,
String  id
[static]
 

Method to create object of this class in database file storing existing object.

Parameters:
db configuration object
at create new object at the same database where  'at' object is stored
id object identity

Definition at line 102 of file Channel_Helper.java.

References get().

Here is the call graph for this function:

Channel Channel_Helper.create config.Configuration  db,
String  file,
String  id
[static]
 

Method to create object of this class in given database file.

Parameters:
db configuration object
file name of the database file
id object identity

Definition at line 91 of file Channel_Helper.java.

References get().

Here is the call graph for this function:

Channel [] Channel_Helper.get config.Configuration  db,
config.Query  query
[static]
 

Method to get objects of class.

If the query is empty, then all objects of class are returned. Otherwise returns objects which satisfy query.

Parameters:
db configuration object
query query (see config.Query)

Definition at line 75 of file Channel_Helper.java.

References get().

Here is the call graph for this function:

Channel Channel_Helper.get config.Configuration  db,
String  id
[static]
 

Method to get an object by identity.

If no such object, the method throws exception config.NotFoundException.

Parameters:
db configuration object
id identity of the object

Definition at line 56 of file Channel_Helper.java.

References get().

Here is the call graph for this function:

Channel Channel_Helper.get config.Configuration  db,
config.ConfigObject  obj
[static]
 

Method to get an object by config object.

It is used by the config.Configuration class.

Parameters:
db configuration object
obj config object

Definition at line 38 of file Channel_Helper.java.

Referenced by create(), and get().


The documentation for this class was generated from the following file:
Generated on Thu Dec 15 21:22:46 2005 for SCT DAQ/DCS Software - Java by doxygen 1.3.5