Examples of SecondaryTable


Examples of org.apache.openejb.jee.jpa.SecondaryTable

            entityData.entity.setTable(table);

            // warn about no equivalent of the consistence modes in sun file

            for (org.apache.openejb.jee.sun.SecondaryTable sunSecondaryTable : bean.getSecondaryTable()) {
                SecondaryTable secondaryTable = new SecondaryTable();
                secondaryTable.setName(sunSecondaryTable.getTableName());
                for (ColumnPair columnPair : sunSecondaryTable.getColumnPair()) {
                    SunColumnName localColumnName = new SunColumnName(columnPair.getColumnName().get(0), table.getName());
                    SunColumnName referencedColumnName = new SunColumnName(columnPair.getColumnName().get(1), table.getName());

                    // if user specified in reverse order, swap
                    if (localColumnName.table != null) {
                        SunColumnName temp = localColumnName;
                        localColumnName = referencedColumnName;
                        referencedColumnName = temp;
                    }

                    PrimaryKeyJoinColumn primaryKeyJoinColumn = new PrimaryKeyJoinColumn();
                    primaryKeyJoinColumn.setName(localColumnName.column);
                    primaryKeyJoinColumn.setReferencedColumnName(referencedColumnName.column);
                    secondaryTable.getPrimaryKeyJoinColumn().add(primaryKeyJoinColumn);
                }
            }

            for (CmpFieldMapping cmpFieldMapping : bean.getCmpFieldMapping()) {
                String fieldName = cmpFieldMapping.getFieldName();
View Full Code Here

Examples of org.jpox.store.rdbms.table.SecondaryTable

        {
            Iterator tablesIter = secondaryTables.iterator();
            while (tablesIter.hasNext())
            {
                // Process the secondary table
                SecondaryTable secTable = (SecondaryTable)tablesIter.next();
                insertTable(secTable, sm, clr);
            }
        }
    }
View Full Code Here

Examples of org.jpox.store.rdbms.table.SecondaryTable

        {
            Iterator tablesIter = secondaryTables.iterator();
            while (tablesIter.hasNext())
            {
                // Process the secondary table
                SecondaryTable secTable = (SecondaryTable)tablesIter.next();
                updateTable(secTable, sm, clr, fieldMetaData);
            }
        }
    }
View Full Code Here

Examples of org.jpox.store.rdbms.table.SecondaryTable

        {
            Iterator tablesIter = secondaryTables.iterator();
            while (tablesIter.hasNext())
            {
                // Process the secondary table
                SecondaryTable secTable = (SecondaryTable)tablesIter.next();
                deleteTable(secTable, sm, clr);
            }
        }

        // Do the actual delete of this table
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.