Examples of TypedValue


Examples of ca.carleton.gcrc.dbSec.impl.TypedValue

    List<TypedValue> values = new Vector<TypedValue>();

    if( comparison.requiresValue() ) {
      String value = expression.getValue(variables);
      ColumnData columnData = tableSchema.getColumnFromName(columnName);
      values.add( new TypedValue(columnData.getColumnType(), value) );
    }
   
    return values;
  }
View Full Code Here

Examples of ch.epfl.labos.iu.orm.queryll2.symbolic.TypedValue

            SQLFragment newWhere = new SQLFragment();
            if (analysis.paths.size() > 1)
            {
               for (PathAnalysis path: analysis.paths)
               {
                  TypedValue pathReturn = path.getSimplifiedIsTrueReturnValue();
                  if (pathReturn instanceof ConstantValue.IntegerConstant
                        && ((ConstantValue.IntegerConstant)pathReturn).val == 0)
                     continue;
                  SQLFragment pathWhere = new SQLFragment();
                  if (pathReturn instanceof ConstantValue.IntegerConstant
View Full Code Here

Examples of com.bergerkiller.bukkit.common.TypedValue

      this.nextTickTasks.add(runnable);
    }
  }

  public <T> TypedValue<T> getDebugVariable(String name, Class<T> type, T value) {
    TypedValue typed = debugVariables.get(name);
    if (typed == null || typed.type != type) {
      typed = new TypedValue(type, value);
      debugVariables.put(name, typed);
    }
    return typed;
  }
View Full Code Here

Examples of org.apache.ws.jaxme.js.TypedValue

          continue;
        }
       
        jm.addIf(firstInNamespace, JavaSource.getQuoted(attr.getName().getLocalName()), ".equals(", pLocalName, ")");
        firstInNamespace = false;
        TypedValue v = createSimpleTypeConversion(jm, myAttributes[i].getTypeSG(), pValue, "@" + myAttributes[i].getName());
        attr.getPropertySG().setValue(jm, result, v, null);
        jm.addLine("return;");
      }
      if (!firstInNamespace) {
        jm.addEndIf();
View Full Code Here

Examples of org.camunda.bpm.engine.variable.value.TypedValue

    // set the variable to null via untyped Api
    runtimeService.setVariable(instance.getId(), "varName", null);

    // variable is now untyped null
    TypedValue nullValue = runtimeService.getVariableTyped(instance.getId(), "varName");
    assertUntypedNullValue(nullValue);

  }
View Full Code Here

Examples of org.exquery.xquery.TypedValue

   
    @Override
    protected void serializeBinaryBody(final Sequence result, final HttpResponse response) throws RestXqServiceException {
        final Iterator<TypedValue> itResult = result.iterator();
        while(itResult.hasNext()) {
            final TypedValue typedValue = itResult.next();
            if(typedValue.getType() == Type.BASE64_BINARY || typedValue.getType() == Type.HEX_BINARY) {
               
                final BinaryValue binaryValue = (BinaryValue)typedValue.getValue();
                OutputStream os = null;
                try {
                    os = response.getOutputStream();
                    binaryValue.streamBinaryTo(os);
                } catch(final IOException ioe) {
                    throw new RestXqServiceException("Error while serializing binary: " + ioe.toString(), ioe);
                } finally {
                    if(os != null) {
                        try {
                            os.close();
                        } catch (final IOException ioe) {
                            LOG.warn(ioe);
                        }
                    }
                }
               
                return; //TODO support more than one binary result -- multipart?
            } else {
                throw new RestXqServiceException("Expected binary value, but found: " + typedValue.getType().name());
            }
        }
    }
View Full Code Here

Examples of org.hibernate.engine.TypedValue

  public String toString(Map namedTypedValues) throws HibernateException {
    Map result = new HashMap();
    Iterator iter = namedTypedValues.entrySet().iterator();
    while ( iter.hasNext() ) {
      Map.Entry me = (Map.Entry) iter.next();
      TypedValue tv = (TypedValue) me.getValue();
      result.put( me.getKey(), tv.getType().toLoggableString( tv.getValue(), factory ) );
    }
    return result.toString();
  }
View Full Code Here

Examples of org.hibernate.engine.TypedValue

    java.util.Set currentIds = new HashSet();
    for ( Iterator it=currentElements.iterator(); it.hasNext(); ) {
      Object current = it.next();
      if ( current!=null && ForeignKeys.isNotTransient(entityName, current, null, session) ) {
        Serializable currentId = ForeignKeys.getEntityIdentifierIfNotUnsaved(entityName, current, session);
        currentIds.add( new TypedValue( idType, currentId, session.getEntityMode() ) );
      }
    }

    // iterate over the *old* list
    for ( Iterator it=oldElements.iterator(); it.hasNext(); ) {
      Object old = it.next();
      Serializable oldId = ForeignKeys.getEntityIdentifierIfNotUnsaved(entityName, old, session);
      if ( !currentIds.contains( new TypedValue( idType, oldId, session.getEntityMode() ) ) ) {
        res.add(old);
      }
    }

    return res;
View Full Code Here

Examples of org.hibernate.engine.TypedValue

    return ( ( Loadable ) getPropertyMapping( getEntityName( subcriteria ) ) ).getIdentifierType();
  }

  public TypedValue getTypedIdentifierValue(Criteria subcriteria, Object value) {
    final Loadable loadable = ( Loadable ) getPropertyMapping( getEntityName( subcriteria ) );
    return new TypedValue(
        loadable.getIdentifierType(),
            value,
            EntityMode.POJO
    );
  }
View Full Code Here

Examples of org.hibernate.engine.TypedValue

          value = nullableType.fromStringValue( stringValue );
        }
        else {
          throw new QueryException( "Unsupported discriminator type " + type );
        }
        return new TypedValue(
            type,
                value,
                EntityMode.POJO
        );
      }
    }
    // Otherwise, this is an ordinary value.
    return new TypedValue(
        getTypeUsingProjection( subcriteria, propertyName ),
            value,
            EntityMode.POJO
    );
  }
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.