Exemplo n.º 1
0
void SelectStatementRep::setQueryContext(QueryContext& inCtx)
{
  if (_ctx == NULL)
  {
    _ctx = inCtx.clone();
  }
  else
  {
    throw QueryException(MessageLoaderParms("QueryCommon.SelectStatementRep.QUERY_CTX_ALREADY_SET",
                        "The QueryContext can only be set once on a SelectStatement."));
  }
}
Exemplo n.º 2
0
SelectStatementRep::SelectStatementRep(String& inQlang, String& inQuery, QueryContext& inCtx)
  :_qlang(inQlang),
   _query(inQuery)
{
  _ctx = inCtx.clone();
}