Exemple #1
0
  public Any exec(Any a) throws AnyException {
    Transaction t = getTransaction();

    SessionI sess = (SessionI) EvalExpr.evalFunc(t, a, sess_, SessionI.class);

    if (sess == null) nullOperand(sess_);

    return sess.createMapMessage();
  }
Exemple #2
0
  public Any exec(Any a) throws AnyException {
    Transaction t = getTransaction();

    SessionI sess = (SessionI) EvalExpr.evalFunc(t, a, sess_, SessionI.class);

    if (sess == null) nullOperand(sess_);

    Any any = EvalExpr.evalFunc(t, a, any_);

    if (any == null && any_ != null) nullOperand(any_);

    if (any == null) return sess.createObjectMessage();
    else return sess.createObjectMessage(any);
  }
  public Any exec(Any a) throws AnyException {
    Transaction t = getTransaction();

    SessionI sess = (SessionI) EvalExpr.evalFunc(t, a, sess_, SessionI.class);

    if (sess == null) nullOperand(sess_);

    AnyByteArray bytes = (AnyByteArray) EvalExpr.evalFunc(t, a, bytes_, AnyByteArray.class);

    if (bytes == null && bytes_ != null) nullOperand(bytes_);

    StreamMessageI m = sess.createStreamMessage();

    if (bytes != null) m.write(bytes);

    return m;
  }