class: DatabaseInfos

public class: DatabaseInfos
Author:
Project: Phase: 1.0; Status: Proposed; Version: 1.0; Complexity: 1
Dates: Created: 6.12.2005 2:39:26; Modified: 6.12.2005 19:53:19;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {6CDF370D-042D-42ed-876B-FF637DE5697D}
Container for all database connections

 

Goto: Fields, Methods

See also: DBDataAdmin, DBDataAdmin, DatabaseInfo, ManageDB

Appears in: Database interface

Connections
 
DatabaseInfos Attributes
Attribute Details
private string
  path
Notes: Path of the file name

private string
  fileName
Notes: File name for configuration file

private DBDataAdmin
  dbAdmin
Notes: Reference to data admin object

private ArrayList
  failedDrivers
Notes: Array for non-valid objects

private int
  wrkConnId
Notes: ID for work connection (-1 if not defined)

 
DatabaseInfos Methods
Operation Details
public
DatabaseInfos(
   string path,
   string fileName,
   DBDataAdmin dbAdmin):
Notes: Constructor.
public
DatabaseInfos(
   DatabaseInfos dInfos):
Notes: Copy constructor.
public
Load():bool
Notes: Load information about connections from configuration file

@returns true if succeed
public
Save():bool
Notes: Save information about connections from configuration file

@returns true if succeed
public
Path():string
<<property>>
Notes: Path of the file
public
FileName():string
<<property>>
Notes: File name
public
this(
   int id):DatabaseInfo
<<indexer>>
Notes: Return info about connection
public
HasWorkConnection():bool
<<property>>
Notes: Contain Work connection
public
RemoveNonValid():void
Notes: Leave valid connections only
public
WorkDatabase():DatabaseInfo
<<property>>
Notes: DatabaseInfo to work connection
public
WorkDatabaseId():int
<<property>>
Notes: Id to work database