Examples of loadDataMap()


Examples of org.apache.cayenne.map.MapLoader.loadDataMap()

    private DataMap dataMap;

    public DataMap getDataMap() {
        if (dataMap == null) {
            MapLoader mapLoader = new MapLoader();
            dataMap = mapLoader.loadDataMap(getMapXml("sus-map.map.xml"));
        }
        return dataMap;
    }

    private InputSource getMapXml(String mapName) {
View Full Code Here

Examples of org.apache.cayenne.map.MapLoader.loadDataMap()

                    locator.setSkipHomeDirectory(true);
                    return locator;
                }
            };

            DataMap newMap = mapLoader.loadDataMap(dataMapFile.getAbsolutePath());
            DataChannelDescriptor domain = (DataChannelDescriptor)getProjectController().getProject().getRootNode();

            if (newMap.getName() != null) {
                newMap.setName(NamedObjectFactory.createName(
                        DataMap.class,
View Full Code Here

Examples of org.apache.cayenne.map.MapLoader.loadDataMap()

    public void testLoadUTF8() throws Exception {
        MapLoader loader = new MapLoader();

        // the idea here is to avoid passing the reader to the loader, and make sure the
        // loader does the right thing (i.e. loads UTF-8 encoded file) itself.
        DataMap map = loader.loadDataMap("i18n/by/DataMap.map.xml");
        assertNotNull(map.getDbEntity(TABLE1_BY));
    }

    public void testStoreUTF8() throws Exception {
        MapLoader loader = new MapLoader();
View Full Code Here

Examples of org.apache.cayenne.map.MapLoader.loadDataMap()

    public void testStoreUTF8() throws Exception {
        MapLoader loader = new MapLoader();

        // the idea here is to avoid passing the reader to the loader, and make sure the
        // loader does the right thing (i.e. loads UTF-8 encoded file) itself.
        DataMap map = loader.loadDataMap("i18n/by/DataMap.map.xml");

        File mapFile = new File(getTestDir(), "CAY_236Map.map.xml");
        TestProjectFile file = new TestProjectFile(map, "DataMap", mapFile);
        file.saveTemp();
View Full Code Here

Examples of org.apache.cayenne.map.MapLoader.loadDataMap()

                    locator.setSkipHomeDirectory(true);
                    return locator;
                }
            };

            DataMap newMap = mapLoader.loadDataMap(dataMapFile.getAbsolutePath());
            DataDomain domain = getProjectController().getCurrentDataDomain();

            if (newMap.getName() != null) {
                newMap.setName(NamedObjectFactory.createName(
                        DataMap.class,
View Full Code Here

Examples of org.apache.cayenne.map.MapLoader.loadDataMap()

                    locator.setSkipHomeDirectory(true);
                    return locator;
                }
            };

            DataMap newMap = mapLoader.loadDataMap(dataMapFile.getAbsolutePath());
            DataDomain domain = getProjectController().getCurrentDataDomain();

            if (newMap.getName() != null) {
                newMap.setName(NamedObjectFactory.createName(
                        DataMap.class,
View Full Code Here

Examples of org.apache.cayenne.map.MapLoader.loadDataMap()

        DataMap map;

        try {
            in = url.openStream();

            map = mapLoader.loadDataMap(new InputSource(in));
        }
        catch (Exception e) {
            throw new CayenneRuntimeException(
                    "Error loading configuration from %s",
                    e,
View Full Code Here

Examples of org.apache.cayenne.map.MapLoader.loadDataMap()

        DataMap map;

        try {
            in = url.openStream();

            map = mapLoader.loadDataMap(new InputSource(in));
        }
        catch (Exception e) {
            throw new CayenneRuntimeException(
                    "Error loading configuration from %s",
                    e,
View Full Code Here

Examples of org.apache.cayenne.map.MapLoader.loadDataMap()

                    locator.setSkipHomeDirectory(true);
                    return locator;
                }
            };

            DataMap newMap = mapLoader.loadDataMap(dataMapFile.getAbsolutePath());
            DataChannelDescriptor domain = (DataChannelDescriptor)getProjectController().getProject().getRootNode();

            if (newMap.getName() != null) {
                newMap.setName(NamedObjectFactory.createName(
                        DataMap.class,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.