An implementation used to define the properties of a collection to be constructed and to retrieve these properties after construction.
More...
#include <CollectionSvc/CollectionDescription.h>
An implementation used to define the properties of a collection to be constructed and to retrieve these properties after construction.
Definition at line 25 of file CollectionDescription.h.
◆ ColumnByName
◆ CollectionDescription() [1/3]
| pool::CollectionDescription::CollectionDescription |
( |
const std::string & | name, |
|
|
const DbType & | type, |
|
|
const std::string & | connection = "" ) |
Constructor that takes as input the minimum amount of properties needed to describe the collection.
- Parameters
-
| name | Name of collection. |
| type | Storage technology type of collection. |
| connection | Connection to database containing collection. |
◆ CollectionDescription() [2/3]
Copy constructor.
- Parameters
-
| rhs | Collection description object to copy. |
◆ ~CollectionDescription()
| pool::CollectionDescription::~CollectionDescription |
( |
| ) |
|
◆ CollectionDescription() [3/3]
◆ attributeColumn()
| const CollectionColumn & pool::CollectionDescription::attributeColumn |
( |
int | columnId | ) |
const |
Returns a description object for an Attribute column of the collection, given the position of the column.
- Parameters
-
| columnId | Position of column in associated collection fragment. |
◆ checkNewColumnName()
| void pool::CollectionDescription::checkNewColumnName |
( |
const std::string & | name | ) |
const |
|
protected |
◆ clearAll()
| void pool::CollectionDescription::clearAll |
( |
| ) |
|
|
protected |
◆ connection()
| const std::string & pool::CollectionDescription::connection |
( |
| ) |
const |
Returns the connection to the database containing the collection.
◆ copyFrom()
make this description a copy of 'rhs'
◆ insertColumn()
| const CollectionColumn & pool::CollectionDescription::insertColumn |
( |
const std::string & | columnName, |
|
|
const std::string & | columnType ) |
Adds a new column to the collection.
- Parameters
-
| columnName | Name of new column. |
| columnType | Data type of new column. |
◆ name()
| const std::string & pool::CollectionDescription::name |
( |
| ) |
const |
Returns the name of the collection and the top level collection fragment.
◆ numberOfAttributeColumns()
| int pool::CollectionDescription::numberOfAttributeColumns |
( |
| ) |
const |
Returns the number of Attribute columns in the collection.
◆ operator=() [1/2]
Definition at line 58 of file CollectionDescription.h.
CollectionDescription(const std::string &name, const DbType &type, const std::string &connection="")
Constructor that takes as input the minimum amount of properties needed to describe the collection.
CollectionDescription & operator=(const CollectionDescription &rhs)
Assignment operator.
◆ operator=() [2/2]
Assignment operator.
- Parameters
-
◆ setColumnId() [1/2]
| int pool::CollectionDescription::setColumnId |
( |
const std::string & | columnName, |
|
|
int | id ) |
◆ setColumnId() [2/2]
◆ setConnection()
| void pool::CollectionDescription::setConnection |
( |
const std::string & | connection | ) |
|
Sets the connection to the database containing the collection.
- Parameters
-
| connection | Connection to database where collection is stored. |
◆ setName()
| void pool::CollectionDescription::setName |
( |
const std::string & | name | ) |
|
Sets the name of the collection.
- Parameters
-
◆ setType()
| void pool::CollectionDescription::setType |
( |
const DbType & | type | ) |
|
Sets the storage technology type of the collection.
- Parameters
-
| type | Storage technology type of collection. |
◆ tokenColumn()
Returns a description object for the default Token column of the collection.
Definition at line 107 of file CollectionDescription.h.
static const pool::CollectionColumn m_tokenColumn
◆ type()
| const DbType & pool::CollectionDescription::type |
( |
| ) |
const |
Returns the storage technology type of the collection.
◆ m_attributeColumnForColumnName
| ColumnByName pool::CollectionDescription::m_attributeColumnForColumnName |
|
private |
◆ m_attributeColumns
◆ m_columnIdForColumnName
| std::map< std::string, int > pool::CollectionDescription::m_columnIdForColumnName |
|
private |
◆ m_connection
| std::string pool::CollectionDescription::m_connection |
|
private |
◆ m_name
| std::string pool::CollectionDescription::m_name |
|
private |
◆ m_tokenColumn
◆ m_type
| DbType pool::CollectionDescription::m_type |
|
private |
The documentation for this class was generated from the following file: