Examples of addValue()


Examples of org.hibernate.metamodel.domain.MetaAttribute.addValue()

      MetaAttribute metaAttribute = extractedMetas.get( name );
      if ( metaAttribute == null || metaAttribute == inheritedMetaAttribute ) {
        metaAttribute = new MetaAttribute( name );
        extractedMetas.put( name, metaAttribute );
      }
      metaAttribute.addValue( meta.getValue() );
    }
    return extractedMetas;
  }

  public static String extractEntityName( XMLClass entityClazz, String unqualifiedPackageName) {
View Full Code Here

Examples of org.hibernate.metamodel.relational.Tuple.addValue()

      this.value = values.get( 0 );
    }
    else {
      final Tuple tuple = values.get( 0 ).getTable().createTuple( getRole() );
      for ( SimpleValue value : values ) {
        tuple.addValue( value );
      }
      this.value = tuple;
    }
  }
View Full Code Here

Examples of org.hibernate.sql.InFragment.addValue()

      }

      String[] subclasses = getSubclassClosure();
      for ( int i=0; i<subclasses.length; i++ ) {
        final Queryable queryable = (Queryable) getFactory().getEntityPersister( subclasses[i] );
        if ( !queryable.isAbstract() ) frag.addValue( queryable.getDiscriminatorSQLValue() );
      }

      StringBuffer buf = new StringBuffer(50)
        .append(" and ")
        .append( frag.toFragmentString() );
View Full Code Here

Examples of org.infinispan.schematic.document.EditableArray.addValue()

        if (propValue == null) {
            // We have to create the property ...
            if (isMultiple || numValues > 1) {
                EditableArray array = Schematic.newArray(numValues);
                for (Object value : values) {
                    array.addValue(valueToDocument(value, unusedBinaryKeys, usedBinaryKeys));
                }
                urlProps.setArray(localName, array);
            } else {
                urlProps.set(localName, valueToDocument(values.iterator().next(), unusedBinaryKeys, usedBinaryKeys));
            }
View Full Code Here

Examples of org.infinispan.schematic.internal.document.BasicArray.addValue()

     * @return the editable array; never null
     */
    public static EditableArray newArray( Object... values ) {
        BasicArray array = new BasicArray();
        for (Object value : values) {
            array.addValue(value);
        }
        return new ArrayEditor(array, DEFAULT_FACTORY);
    }
}
View Full Code Here

Examples of org.infinispan.schematic.internal.document.MutableArray.addValue()

    @Override
    public void replay( MutableDocument delegate ) {
        MutableArray array = mutableParent(delegate);
        if (index == APPEND_INDEX) {
            actualIndex = array.addValue(value);
        } else {
            array.addValue(index, value);
            actualIndex = index;
        }
    }
View Full Code Here

Examples of org.jaudiotagger.tag.datatype.TextEncodedStringSizeTerminated.addValue()

     *
     * @param value at index
     */
    public void addTextValue(String value) {
        TextEncodedStringSizeTerminated text = (TextEncodedStringSizeTerminated) getObject(DataTypes.OBJ_TEXT);
        text.addValue(value);
    }

    /**
     * @return number of text values, usually one
     */
 
View Full Code Here

Examples of org.jboss.aesh.cl.internal.OptionInt.addValue()

            }
            else if(active != null) {
                if(active.hasMultipleValues()) {
                    if(parseLine.contains(String.valueOf(active.getValueSeparator()))) {
                        for(String value : parseLine.split(String.valueOf(active.getValueSeparator()))) {
                            active.addValue(value.trim());
                        }
                    }
                }
                else
                    active.addValue(parseLine);
View Full Code Here

Examples of org.jboss.aesh.cl.internal.ProcessedOption.addValue()

                                commandLine.setParserException(new ArgumentParserException("An argument was given to an option that do not support it."));
                        }
                    }
                }
                else if(active != null && (!active.hasValue() || active.getValue() != null)) {
                    active.addValue("true");
                    commandLine.addOption(active);
                    active = null;
                    if(addedArgument)
                        commandLine.setParserException(new ArgumentParserException("An argument was given to an option that do not support it."));
                }
View Full Code Here

Examples of org.jboss.ejb.DeclareRolesImpl.addValue()

                     {
                        RolesAllowedImpl annotation = new RolesAllowedImpl();
  
                        for (String roleName : permission.getRoles())
                        {
                           annotation.addValue(roleName);
                        }
                        addAnnotations(RolesAllowed.class, annotation, container, method);
                     }
                  }
               }
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.