Package org.apache.cayenne.xml

Examples of org.apache.cayenne.xml.XMLDecoder


            Reader in = new InputStreamReader(resource.openStream(), "UTF-8");

            // TODO: andrus, 04/18/2006 - an inefficiency in XMLDecoder - it
            // doesn't cache the mapping

            XMLDecoder decoder = new XMLDecoder();
            JpaEntityMap entityMap = (JpaEntityMap) decoder.decode(in, mappingURL
                    .toExternalForm());

            return entityMap;
        }
        catch (Exception e) {
View Full Code Here


            Reader in = new InputStreamReader(resource.openStream(), "UTF-8");

            // TODO: andrus, 04/18/2006 - an inefficiency in XMLDecoder - it
            // doesn't cache the mapping

            XMLDecoder decoder = new XMLDecoder();
            JpaEntityMap entityMap = (JpaEntityMap) decoder.decode(in, mappingURL
                    .toExternalForm());

            return entityMap;
        }
        catch (Exception e) {
View Full Code Here

TOP

Related Classes of org.apache.cayenne.xml.XMLDecoder

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.