Examples of RdbJoin


Examples of org.objectweb.jorm.mapper.rdb.metainfo.RdbJoin

        //Build JORM meta objects for the secondary (external) tables
        if (sc.joinToExtTables != null) {
            for (int i = 0; i < sc.joinToExtTables.length; i++) {
                RdbExternalTable extTable = rcm
                        .createRdbExternalTable(sc.joinToExtTables[i].extTable.name);
                RdbJoin join = extTable.createRdbJoin("_" + i);
                if (debug) {
                    logger.log(BasicLevel.DEBUG, "define external table '"
                            + sc.joinToExtTables[i].extTable.name
                            + "' for the class '" + sc.getFQName() + "'.");
                }
                for (Iterator it = sc.joinToExtTables[i].columns.iterator(); it
                        .hasNext();) {
                    SpeedoJoinColumn jc = (SpeedoJoinColumn) it.next();
                    join.addJoinColumnNames(jc.targetColumn,
                            jc.column.name);
                    if (debug) {
                        logger.log(BasicLevel.DEBUG,
                                "\tdefine join between columns '"
                                        + jc.column.name + "' and '"
View Full Code Here

Examples of org.objectweb.jorm.mapper.rdb.metainfo.RdbJoin

            ClassMapping cm) throws PException, SpeedoException {
        String colName;
        String colType;
        RdbClassMultiMapping rcm = (RdbClassMultiMapping) cm;
        RdbTable t;
        RdbJoin join = null;
        if (sf == null) {
            //auto compute column name
            colName = pe.getName();
            colType = null;
            //get the main table as default
View Full Code Here

Examples of org.objectweb.jorm.mapper.rdb.metainfo.RdbJoin

            exttable.setColocated(true);
            exttable.setColocatedMaster(false);
        }

        //Define the join to the external table
        RdbJoin j = exttable.createRdbJoin(sf.name);
        for (Iterator fkColIt = sf.join.columns.iterator(); fkColIt
                .hasNext();) {
            SpeedoJoinColumn jc = (SpeedoJoinColumn) fkColIt.next();
            j.addJoinColumnNames(jc.targetColumn, jc.column.name);
        }
        // map the name def over pk field of the referenced class
        if (tnd.isFieldName()) {
            RdbPrimitiveElementMapping pem = (RdbPrimitiveElementMapping) trcm
                    .getPrimitiveElementMapping(tnd.getFieldName(), true);
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.