Package org.exolab.castor.mapping.xml

Examples of org.exolab.castor.mapping.xml.NamedQuery


    private void extractAndAddNamedQueries(final ClassDescriptorJDONature jdoNature,
            final ClassMapping clsMap)
    throws MappingException {
        Enumeration namedQueriesEnum = clsMap.enumerateNamedQuery();
        while (namedQueriesEnum.hasMoreElements()) {
            NamedQuery query = (NamedQuery) namedQueriesEnum.nextElement();
            String queryName = query.getName();
            if (_queryNames.contains(queryName)) {
                throw new MappingException(
                        "Duplicate entry for named query with name " + queryName);
            }
            _queryNames.add(queryName);

            jdoNature.addNamedQuery(queryName, query.getQuery());
        }
    }
View Full Code Here

TOP

Related Classes of org.exolab.castor.mapping.xml.NamedQuery

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.