Examples of ColumnValues


Examples of org.hibernate.metamodel.source.annotations.attribute.ColumnValues

  private String comment;
  private Set<String> uniqueKeys = new HashSet<String>();


  public ColumnRelationalStateImpl(SimpleAttribute attribute, MetadataImplementor meta) {
    ColumnValues columnValues = attribute.getColumnValues();
    namingStrategy = meta.getOptions().getNamingStrategy();
        globallyQuotedIdentifiers = meta.isGloballyQuotedIdentifiers();
    columnName = columnValues.getName().isEmpty() ? attribute.getName() : columnValues.getName();
    unique = columnValues.isUnique();
    nullable = columnValues.isNullable();
    size = createSize( columnValues.getLength(), columnValues.getScale(), columnValues.getPrecision() );
    checkCondition = parseCheckAnnotation( attribute );
    indexes = parseIndexAnnotation( attribute );

    String[] readWrite;
    List<AnnotationInstance> columnTransformerAnnotations = getAllColumnTransformerAnnotations( attribute );
View Full Code Here

Examples of org.hibernate.metamodel.source.annotations.entity.ColumnValues

  private String comment;
  private Set<String> uniqueKeys = new HashSet<String>();


  public ColumnRelationalStateImpl(SimpleAttribute attribute, MetadataImplementor meta) {
    ColumnValues columnValues = attribute.getColumnValues();
    namingStrategy = meta.getOptions().getNamingStrategy();
    columnName = columnValues.getName().isEmpty() ? attribute.getName() : columnValues.getName();
    unique = columnValues.isUnique();
    nullable = columnValues.isNullable();
    size = createSize( columnValues.getLength(), columnValues.getScale(), columnValues.getPrecision() );
    checkCondition = parseCheckAnnotation( attribute );
    indexes = parseIndexAnnotation( attribute );

    String[] readWrite;
    List<AnnotationInstance> columnTransformerAnnotations = getAllColumnTransformerAnnotations( attribute );
View Full Code Here

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

        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

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

                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

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

                    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

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

            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
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.