23 unique_ptr<coral::IQuery>
query(
m_session.nominalSchema().tableHandle(
"L1_BUNCH_GROUP").newQuery() );
24 query->setRowCacheSize( 5 );
27 coral::AttributeList bindList;
28 bindList.extend<
long>(
"bgId");
29 std::string cond =
"L1BG_ID = :bgId";
30 bindList[0].data<
long>() = bgTarget.
id();
31 query->setCondition( cond, bindList );
34 coral::AttributeList attList;
35 attList.extend<std::string>(
"L1BG_NAME" );
36 attList.extend<
int>(
"L1BG_VERSION" );
39 coral::ICursor& cursor =
query->execute();
41 if ( ! cursor.next() ) {
44 throw std::runtime_error(
"BunchGroupLoader >> BunchGroup not available" );
47 const coral::AttributeList& row = cursor.currentRow();
48 std::string
name = row[
"L1BG_NAME"].data<std::string>();
49 int version = row[
"L1BG_VERSION"].data<
int>();
59 unique_ptr<coral::IQuery> q(
m_session.nominalSchema().tableHandle(
"L1_BG_TO_B").newQuery() );
60 q->setRowCacheSize( 5 );
63 coral::AttributeList bindList;
64 bindList.extend<
long>(
"bgId");
65 bindList[0].data<
long>() = bgTarget.
id();
66 q->setCondition(
"L1BG2B_BUNCH_GROUP_ID = :bgId", bindList );
69 coral::AttributeList attList;
70 attList.extend<
int>(
"L1BG2B_BUNCH_NUMBER" );
73 coral::ICursor& cursor = q->execute();
75 while( cursor.next() ) {
76 const coral::AttributeList& row = cursor.currentRow();
83 catch(
const coral::Exception& e ) {