Examples of FieldResult


Examples of javax.persistence.FieldResult

      }

      Set uniqueReturnProperty = new HashSet();
      Iterator iterator = properties.iterator();
      while ( iterator.hasNext() ) {
        FieldResult propertyresult = (FieldResult) iterator.next();
        String name = propertyresult.name();
        if ( "class".equals( name ) ) {
          throw new MappingException(
              "class is not a valid property name to use in a @FieldResult, use @Entity(discriminatorColumn) instead"
          );
        }
        ArrayList allResultColumns = new ArrayList();
        allResultColumns.add( propertyresult.column() );

        if ( uniqueReturnProperty.contains( name ) ) {
          throw new MappingException(
              "duplicate @FieldResult for property " + name +
                  " on @Entity " + entity.entityClass().getName() + " in " + ann.name()
View Full Code Here

Examples of javax.persistence.FieldResult

      }

      Set uniqueReturnProperty = new HashSet();
      Iterator iterator = properties.iterator();
      while ( iterator.hasNext() ) {
        FieldResult propertyresult = (FieldResult) iterator.next();
        String name = propertyresult.name();
        if ( "class".equals( name ) ) {
          throw new MappingException(
              "class is not a valid property name to use in a @FieldResult, use @Entity(discriminatorColumn) instead"
          );
        }
        ArrayList allResultColumns = new ArrayList();
        allResultColumns.add( propertyresult.column() );

        if ( uniqueReturnProperty.contains( name ) ) {
          throw new MappingException(
              "duplicate @FieldResult for property " + name +
                  " on @Entity " + entity.entityClass().getName() + " in " + ann.name()
View Full Code Here

Examples of javax.persistence.FieldResult

      }

      Set<String> uniqueReturnProperty = new HashSet<String>();
      Map<String, ArrayList<String>> propertyResultsTmp = new HashMap<String, ArrayList<String>>();
      for ( Object property : properties ) {
        final FieldResult propertyresult = ( FieldResult ) property;
        final String name = propertyresult.name();
        if ( "class".equals( name ) ) {
          throw new MappingException(
              "class is not a valid property name to use in a @FieldResult, use @Entity(discriminatorColumn) instead"
          );
        }

        if ( uniqueReturnProperty.contains( name ) ) {
          throw new MappingException(
              "duplicate @FieldResult for property " + name +
                  " on @Entity " + entity.entityClass().getName() + " in " + ann.name()
          );
        }
        uniqueReturnProperty.add( name );

        final String quotingNormalizedColumnName = mappings.getObjectNameNormalizer()
            .normalizeIdentifierQuoting( propertyresult.column() );

        String key = StringHelper.root( name );
        ArrayList<String> intermediateResults = propertyResultsTmp.get( key );
        if ( intermediateResults == null ) {
          intermediateResults = new ArrayList<String>();
View Full Code Here

Examples of javax.persistence.FieldResult

      }

      Set<String> uniqueReturnProperty = new HashSet<String>();
      Map<String, ArrayList<String>> propertyResultsTmp = new HashMap<String, ArrayList<String>>();
      for ( Object property : properties ) {
        final FieldResult propertyresult = ( FieldResult ) property;
        final String name = propertyresult.name();
        if ( "class".equals( name ) ) {
          throw new MappingException(
              "class is not a valid property name to use in a @FieldResult, use @Entity(discriminatorColumn) instead"
          );
        }

        if ( uniqueReturnProperty.contains( name ) ) {
          throw new MappingException(
              "duplicate @FieldResult for property " + name +
                  " on @Entity " + entity.entityClass().getName() + " in " + ann.name()
          );
        }
        uniqueReturnProperty.add( name );

        final String quotingNormalizedColumnName = mappings.getObjectNameNormalizer()
            .normalizeIdentifierQuoting( propertyresult.column() );

        String key = StringHelper.root( name );
        ArrayList<String> intermediateResults = propertyResultsTmp.get( key );
        if ( intermediateResults == null ) {
          intermediateResults = new ArrayList<String>();
View Full Code Here

Examples of javax.persistence.FieldResult

      }

      Set uniqueReturnProperty = new HashSet();
      Iterator iterator = properties.iterator();
      while ( iterator.hasNext() ) {
        FieldResult propertyresult = (FieldResult) iterator.next();
        String name = propertyresult.name();
        if ( "class".equals( name ) ) {
          throw new MappingException(
              "class is not a valid property name to use in a @FieldResult, use @Entity(discriminatorColumn) instead"
          );
        }
        ArrayList allResultColumns = new ArrayList();
        allResultColumns.add( propertyresult.column() );

        if ( uniqueReturnProperty.contains( name ) ) {
          throw new MappingException(
              "duplicate @FieldResult for property " + name +
                  " on @Entity " + entity.entityClass().getName() + " in " + ann.name()
View Full Code Here

Examples of oracle.toplink.essentials.queryframework.FieldResult

        for (MetadataEntityResult eResult : sqlResultSetMapping.getEntityResults()) {
            EntityResult entityResult = new EntityResult(eResult.getEntityClass().getName());
       
            // Process the field results.
            for (MetadataFieldResult fResult : eResult.getFieldResults()) {
                entityResult.addFieldResult(new FieldResult(fResult.getName(), fResult.getColumn()));
            }
       
            // Process the discriminator value;
            entityResult.setDiscriminatorColumn(eResult.getDiscriminatorColumn());
       
View Full Code Here

Examples of org.eclipse.persistence.queries.FieldResult

            EntityResult entityResult = new EntityResult(MetadataHelper.getClassForName(eResult.getEntityClass().getName(), loader));
       
            // Process the field results.
            if (eResult.hasFieldResults()) {
                for (FieldResultMetadata fResult : eResult.getFieldResults()) {
                    entityResult.addFieldResult(new FieldResult(fResult.getName(), fResult.getColumn()));
                }
            }
       
            // Process the discriminator value;
            entityResult.setDiscriminatorColumn(eResult.getDiscriminatorColumn());
View Full Code Here

Examples of org.eclipse.persistence.queries.FieldResult

       
        // Process the name (taking into consideration delimiters etc.)
        setFieldName(field, getColumn());
       
        // Return a new field result to the entity result.
        return new FieldResult(getName(), field);
    }
View Full Code Here

Examples of org.eclipse.persistence.queries.FieldResult

            EntityResult entityResult = new EntityResult(MetadataHelper.getClassForName(eResult.getEntityClass().getName(), loader));
       
            // Process the field results.
            if (eResult.hasFieldResults()) {
                for (FieldResultMetadata fResult : eResult.getFieldResults()) {
                    FieldResult fieldResult = new FieldResult(fResult.getName(), fResult.getColumn());
                    if (project.useDelimitedIdentifier()) {
                        fieldResult.getColumn().setUseDelimiters(true);
                    } else if (project.getShouldForceFieldNamesToUpperCase() && !fieldResult.getColumn().shouldUseDelimiters()) {
                        fieldResult.getColumn().useUpperCaseForComparisons(true);
                    }
                    entityResult.addFieldResult(fieldResult);
                }
            }
       
View Full Code Here

Examples of org.eclipse.persistence.queries.FieldResult

            EntityResult entityResult = new EntityResult(MetadataHelper.getClassForName(eResult.getEntityClass().getName(), loader));
       
            // Process the field results.
            if (eResult.hasFieldResults()) {
                for (FieldResultMetadata fResult : eResult.getFieldResults()) {
                    entityResult.addFieldResult(new FieldResult(fResult.getName(), fResult.getColumn()));
                }
            }
       
            // Process the discriminator value;
            entityResult.setDiscriminatorColumn(eResult.getDiscriminatorColumn());
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.