<?xml version="1.0" ?>
<?xml-stylesheet type="text/xsl"
 href="http://eigenbase.sourceforge.net/resgen/Resource.xsl" ?>
<!-- 
  $Id: //open/dev/farrago/src/net/sf/farrago/resource/FarragoInternalQuery.xml#7 $
  Farrago is an extensible data management system.
  Copyright (C) 2005-2009 The Eigenbase Project
  Copyright (C) 2005-2009 SQLstream, Inc.
  Copyright (C) 2005-2009 LucidEra, Inc.

  This program is free software; you can redistribute it and/or
  modify it under the terms of the GNU General Public License
  as published by the Free Software Foundation; either version 2
  of the License, or (at your option) any later Eigenbase-approved version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.
  
  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307  USA
  -->

<resourceBundle
  static="false"
  locale="en_US"
  exceptionClassName="org.eigenbase.util.EigenbaseException">
  
<!-- ====================================================================== -->

This file contains the definitions of queries (SQL or LURQL) used internally by
Farrago.  These will never need to be localized.  We use the resgen
mechanism as a convenience: it allows us to maintain queries in
readable form instead of embedded with ugly escaping in Java code,
with early binding between invoking code and query name.
(Parameters are still late-bound by name; it would be nice to make
them early-bound also.)

<!-- ====================================================================== -->

<message id="10" name="TestQuery">
<text>
select s
from class NamedColumnSet where name=?tableName then (
    follow association ElementOwnership backward as s
);
</text>
</message>

<message id="20" name="TestSecurityRoleCycleCheck">
<text>
select r
from class Role where name=?granteeName then (
    recursively (
        follow origin end Grantee where action = ''INHERIT_ROLE'' then (
            follow origin end Privilege as r
        )
    )
);
</text>
</message>

</resourceBundle>

<!-- End FarragoInternalQuery.xml -->
