Examples of whereForeignKey()


Examples of org.apache.openjpa.jdbc.sql.Select.whereForeignKey()

            for( DBIdentifier secTableName : colsMappedToSecTable.keySet()) {
                FieldMapping fm = colsMappedToSecTable.get(secTableName);
                // select only the PK columns, since we just want to lock
                Select select = factory.newSelect();
                select.select(fm.getColumns());
                select.whereForeignKey(fm.getJoinForeignKey(), id, mapping, _store);
                sqls.add(select.toSelect(true, fetch));
            }
        }
        return sqls;
    }
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.