23 unique_ptr<coral::IQuery>
query( m_session.nominalSchema().tableHandle(
"L1_BUNCH_GROUP").newQuery() );
24 query->setRowCacheSize( 5 );
28 bindList.extend<
long>(
"bgId");
29 std::string cond =
"L1BG_ID = :bgId";
30 bindList[0].data<
long>() = bgTarget.
id();
31 query->setCondition( cond, bindList );
35 attList.extend<std::string>(
"L1BG_NAME" );
36 attList.extend<
int>(
"L1BG_VERSION" );
44 throw std::runtime_error(
"BunchGroupLoader >> BunchGroup not available" );
48 std::string
name =
row[
"L1BG_NAME"].data<std::string>();
59 unique_ptr<coral::IQuery>
q( m_session.nominalSchema().tableHandle(
"L1_BG_TO_B").newQuery() );
60 q->setRowCacheSize( 5 );
64 bindList.extend<
long>(
"bgId");
65 bindList[0].data<
long>() = bgTarget.
id();
66 q->setCondition(
"L1BG2B_BUNCH_GROUP_ID = :bgId", bindList );
70 attList.extend<
int>(
"L1BG2B_BUNCH_NUMBER" );
73 coral::ICursor&
cursor =
q->execute();
77 bgTarget.
addBunch(
row[
"L1BG2B_BUNCH_NUMBER"].data<int>() );
83 catch(
const coral::Exception&
e ) {
85 m_session.transaction().rollback();