Package org.rhq.helpers.perftest.support.jpa

Examples of org.rhq.helpers.perftest.support.jpa.ColumnValues$Column


        try {
            statement = jdbcConnection.createStatement();
            results = statement.executeQuery(query);

            while (results.next()) {
                ColumnValues pks = new ColumnValues();
                for(Column pk : tablePks) {
                    Object pkVal = results.getObject(pkName);
                    pks.add(pk.getColumnName(), pkVal);
                }

                ret.add(pks);
            }
        } finally {
View Full Code Here


                resolvedPks.getOrCreate(translation.getRelationTable()).addAll(fromAndToValues);

                //now read out the to pks from fromAndToCols are return them as the "to" table primary keys
                Set<ColumnValues> toPks = new HashSet<ColumnValues>();
                for (ColumnValues cols : fromAndToValues) {
                    ColumnValues toPk = new ColumnValues();
                    for (int i = 0; i < translation.getRelationTableToColumns().length; ++i) {
                        String colName = translation.getRelationTableToColumns()[i];
                        String pkName = edge.getTo().getTranslation().getPkColumns()[i];

                        toPk.add(pkName, cols.getColumnByName(colName).getValue());
                    }
                    toPks.add(toPk);
                }

                return removeValuesWithNullColumn(toPks);
View Full Code Here

                    resolvedPks.getOrCreate(translation.getRelationTable()).addAll(fromAndToValues);

                    //now read out the to pks from fromAndToCols are return them as the "from" table primary keys
                    Set<ColumnValues> fromPks = new HashSet<ColumnValues>();
                    for (ColumnValues cols : fromAndToValues) {
                        ColumnValues fromPk = new ColumnValues();
                        for (int i = 0; i < translation.getRelationTableFromColumns().length; ++i) {
                            String colName = translation.getRelationTableFromColumns()[i];
                            String pkName = edge.getFrom().getTranslation().getPkColumns()[i];
                            fromPk.add(pkName, cols.getColumnByName(colName).getValue());
                        }
                        fromPks.add(fromPk);
                    }

                    return removeValuesWithNullColumn(fromPks);
View Full Code Here

            ResultSet rs = st.executeQuery();

            ResultSetMetaData rsmd = rs.getMetaData();

            while (rs.next()) {
                ColumnValues vals = new ColumnValues();

                for (int i = 1; i <= rsmd.getColumnCount(); ++i) {
                    String columnName = rsmd.getColumnName(i);
                    Object value = rs.getObject(i);
                    vals.add(columnName, value);
                }

                ret.add(vals);
            }
        } finally {
View Full Code Here

TOP

Related Classes of org.rhq.helpers.perftest.support.jpa.ColumnValues$Column

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.