Package org.apache.openjpa.lib.identifier

Examples of org.apache.openjpa.lib.identifier.IdentifierUtil.convert()


       
        IdentifierUtil nu = new IdentifierUtilImpl(defConfig);
       
        // Test basic name conversion with single name converter
        String n0 = "\"TABLE\"";
        String cn0 = nu.convert(newConfig, "DEFAULT", n0);
        assertEquals("`TABLE`", cn0);
       
        // Test basic name conversion with single name converter - no
        // conversion
        String n1 = "TABLE";
View Full Code Here


        assertEquals("`TABLE`", cn0);
       
        // Test basic name conversion with single name converter - no
        // conversion
        String n1 = "TABLE";
        String cn1 = nu.convert(newConfig, "DEFAULT", n1);
        assertEquals("TABLE", cn1);

        // Test basic name separator conversion with compound name converter
        String n2 = "TABLE.SCHEMA";
        String cn2 = nu.convertFull(newConfig, "DEFAULT", n2);
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.