lsst.daf.persistence
13.0-40-g460649b+6
|
Location of a persisted Persistable instance in a database. More...
#include <DbStorageLocation.h>
Public Types | |
typedef std::shared_ptr< DbStorageLocation > | 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... | |
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.
typedef std::shared_ptr<DbStorageLocation> lsst::daf::persistence::DbStorageLocation::Ptr |
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.