2 #include "RelationalAccess/ISchema.h" 3 #include "RelationalAccess/ITable.h" 4 #include "RelationalAccess/IQuery.h" 5 #include "RelationalAccess/ICursor.h" 6 #include "RelationalAccess/ITableDataEditor.h" 7 #include "CoralBase/AttributeList.h" 8 #include "CoralBase/AttributeSpecification.h" 9 #include "CoralBase/AttributeList.h" 10 #include "CoralBase/Attribute.h" 20 coral::IQuery*
q =
m_schema.tableHandle(idtableName).newQuery();
23 coral::ICursor& cursor = q->execute();
24 unsigned long long result = 0;
25 while (cursor.next()) {
26 const coral::AttributeList& row = cursor.currentRow();
35 coral::IQuery*
q =
m_schema.tableHandle(idtableName).newQuery();
37 unsigned long long r = 0;
38 coral::AttributeList myresult;
40 q->defineOutput(myresult);
42 coral::ICursor& cursor = q->execute();
43 while (cursor.next()) {
44 const coral::AttributeList& row = cursor.currentRow();
47 coral::ITableDataEditor& dataEditor =
m_schema.tableHandle(idtableName).dataEditor();
48 coral::AttributeList inputData;
coral::ISchema & m_schema
unsigned long long getIDforTable(const std::string &tableName)
std::string m_idtablecolumnName
idDealer(coral::ISchema &schema)
unsigned long long generateNextIDForTable(const std::string &tableName, unsigned int interval=1)
static const std::string idTableName(const std::string &dataTableName)