|
lsst.daf.persistence
15.0-4-g45f767a+7
|
Location of a persisted Persistable instance in a database. More...
#include <DbStorageLocation.h>
Public Types | |
| typedef std::shared_ptr< DbStorageLocation > | Ptr |
| typedef unsigned long | memId |
| typedef memId(* | memNewCallback) (const memId cid) |
| typedef memId(* | memCallback) (const Citizen *ptr) |
Public Member Functions | |
| DbStorageLocation (void) | |
| Default constructor. More... | |
| DbStorageLocation (std::string const &url) | |
| Constructor from CORAL-style URL. More... | |
| virtual | ~DbStorageLocation (void) |
| Destructor. More... | |
| virtual std::string | toString (void) const |
| Produce a string (URL) representation of the DbStorageLocation. More... | |
| virtual std::string | getConnString (void) const |
| Produce a CORAL-style connection string representation of the DbStorageLocation. More... | |
| virtual std::string const & | getDbType (void) const |
| Accessor for database type. More... | |
| virtual std::string const & | getHostname (void) const |
| Accessor for database hostname. More... | |
| virtual std::string const & | getPort (void) const |
| Accessor for database port number. More... | |
| virtual std::string const & | getUsername (void) const |
| Accessor for username. More... | |
| virtual std::string const & | getPassword (void) const |
| Accessor for password. More... | |
| virtual std::string const & | getDbName (void) const |
| Accessor for database name. More... | |
| std::string | repr () const |
| void | markPersistent (void) |
| memId | getId () const |
Static Public Member Functions | |
| static bool | hasBeenCorrupted () |
| static memId | getNextMemId () |
| static int | init () |
| static int | census (int, memId startingMemId=0) |
| static void | census (std::ostream &stream, memId startingMemId=0) |
| static const std::vector< const Citizen *> * | census () |
| static int | census (int, memId startingMemId=0) |
| static void | census (std::ostream &stream, memId startingMemId=0) |
| static const std::vector< const Citizen *> * | census () |
| static memId | setNewCallbackId (memId id) |
| static memId | setNewCallbackId (memId id) |
| static memId | setDeleteCallbackId (memId id) |
| static memId | setDeleteCallbackId (memId id) |
| static memNewCallback | setNewCallback (memNewCallback func) |
| static memCallback | setDeleteCallback (memCallback func) |
| static memCallback | setCorruptionCallback (memCallback func) |
Public Attributes | |
| magicSentinel | |
Location of a persisted Persistable instance in a database.
Provides database connection information for DbStorage. Can be initialized with either an all-in-one URL containing username and password information or a CORAL-style connection string URL with separate username and password.
Definition at line 58 of file DbStorageLocation.h.
Definition at line 60 of file DbStorageLocation.h.
| lsst::daf::persistence::DbStorageLocation::DbStorageLocation | ( | void | ) |
Default constructor.
Definition at line 55 of file DbStorageLocation.cc.
| lsst::daf::persistence::DbStorageLocation::DbStorageLocation | ( | std::string const & | url | ) |
Constructor from CORAL-style URL.
| [in] | url | CORAL-style connection string (database type, hostname, port, database name) |
Definition at line 64 of file DbStorageLocation.cc.
|
virtual |
Destructor.
Definition at line 86 of file DbStorageLocation.cc.
|
virtual |
Produce a CORAL-style connection string representation of the DbStorageLocation.
Definition at line 101 of file DbStorageLocation.cc.
|
virtual |
Accessor for database name.
Definition at line 143 of file DbStorageLocation.cc.
|
virtual |
Accessor for database type.
Definition at line 108 of file DbStorageLocation.cc.
|
virtual |
Accessor for database hostname.
Definition at line 115 of file DbStorageLocation.cc.
|
virtual |
Accessor for password.
Definition at line 136 of file DbStorageLocation.cc.
|
virtual |
Accessor for database port number.
Definition at line 122 of file DbStorageLocation.cc.
|
virtual |
Accessor for username.
Definition at line 129 of file DbStorageLocation.cc.
|
virtual |
Produce a string (URL) representation of the DbStorageLocation.
Definition at line 92 of file DbStorageLocation.cc.
1.8.13