Package org.apache.cayenne.resource

Examples of org.apache.cayenne.resource.ClassLoaderResourceLocator


        // init defaults
        this.setSupportsBatchUpdates(false);
        this.setSupportsUniqueConstraints(true);

        // TODO: andrus 05.02.2010 - ideally this should be injected
        this.resourceLocator = new ClassLoaderResourceLocator();

        this.pkGenerator = createPkGenerator();
        this.typesHandler = TypesHandler.getHandler(findResource("/types.xml"));
        this.extendedTypes = new ExtendedTypeMap();
        this.configureExtendedTypes(extendedTypes);
View Full Code Here


        // init defaults
        this.setSupportsBatchUpdates(false);
        this.setSupportsUniqueConstraints(true);

        // TODO: andrus 05.02.2010 - ideally this should be injected
        this.resourceLocator = new ClassLoaderResourceLocator();
       
        this.pkGenerator = createPkGenerator();
        this.typesHandler = TypesHandler.getHandler(findResource("/types.xml"));
        this.extendedTypes = new ExtendedTypeMap();
        this.configureExtendedTypes(extendedTypes);
View Full Code Here

        this.setSupportsBatchUpdates(false);
        this.setSupportsUniqueConstraints(true);
        this.caseInsensitiveCollations = runtimeProperties.getBoolean(CI_PROPERTY, false);

        // TODO: andrus 05.02.2010 - ideally this should be injected
        this.resourceLocator = new ClassLoaderResourceLocator();

        this.pkGenerator = createPkGenerator();
        this.quotingStrategy = createQuotingStrategy();

        this.ejbqlTranslatorFactory = createEJBQLTranslatorFactory();
View Full Code Here

        this.setSupportsBatchUpdates(false);
        this.setSupportsUniqueConstraints(true);
        this.caseInsensitiveCollations = runtimeProperties.getBoolean(CI_PROPERTY, false);

        // TODO: andrus 05.02.2010 - ideally this should be injected
        this.resourceLocator = new ClassLoaderResourceLocator();

        this.pkGenerator = createPkGenerator();
        this.ejbqlTranslatorFactory = createEJBQLTranslatorFactory();
        this.typesHandler = TypesHandler.getHandler(findResource("/types.xml"));
        this.extendedTypes = new ExtendedTypeMap();
View Full Code Here

import junit.framework.TestCase;

public class ClassLoaderResourceLocatorTest extends TestCase {

    public void testFindResources() {
        ClassLoaderResourceLocator locator = new ClassLoaderResourceLocator();

        Collection<Resource> resources = locator
                .findResources("org/apache/cayenne/resource/ClassLoaderResourceLocatorTest.class");

        assertNotNull(resources);
        assertEquals(1, resources.size());
View Full Code Here

TOP

Related Classes of org.apache.cayenne.resource.ClassLoaderResourceLocator

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.