Examples of longValue()


Examples of com.sun.messaging.jmq.jmsserver.data.TransactionUID.longValue()

                        } else if (type == AutoRollbackType.ALL) {
                            // rollback
                            String args[] = {
                                 tracker.getBrokerID(),
                                 String.valueOf(tid.longValue()),
                                 ts.toString(ts.getState()) };
                            logger.log(Logger.INFO,
                                BrokerResources.I_TAKEOVER_TXN_A_ROLLBACK,
                                args);
                            ts.setState(TransactionState.ROLLEDBACK);
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.service.ConnectionUID.longValue()

  if (cxnId == null)  {
      return (null);
  }

  return (Long.toString(cxnId.longValue()));
    }

    public Boolean isCreatedByAdmin()  {
  boolean b = !(d.isAutoCreated() || d.isInternal() || d.isDMQ() || d.isAdmin());
View Full Code Here

Examples of com.sun.messaging.jmq.util.UID.longValue()

        status = Status.UNAVAILABLE;
          }
         
          UID brokerSessionID = Globals.getBrokerSessionID();
          if (brokerSessionID!=null){
            hash.put("JMQBrokerSessionID",new Long(brokerSessionID.longValue()));
          }
         
          // OK, handle the HA properties HERE

          String clusterID = null;
View Full Code Here

Examples of edu.uci.ics.hyracks.data.std.primitive.DoublePointable.longValue()

                    tvp.getValue(doublep);
                    abvsRound.reset();
                    round.operateDouble(doublep, abvsRound.getDataOutput());
                    doublep.set(abvsRound.getByteArray(), abvsRound.getStartOffset() + 1,
                            DoublePointable.TYPE_TRAITS.getFixedLength());
                    return doublep.longValue();
                } else if (tvp.getTag() == ValueTag.XS_INTEGER_TAG) {
                    tvp.getValue(longp);
                    return longp.longValue();
                } else if (tvp.getTag() == ValueTag.XS_DECIMAL_TAG) {
                    tvp.getValue(decp);
View Full Code Here

Examples of edu.uci.ics.hyracks.data.std.primitive.LongPointable.longValue()

                    doublep.set(abvsRound.getByteArray(), abvsRound.getStartOffset() + 1,
                            DoublePointable.TYPE_TRAITS.getFixedLength());
                    return doublep.longValue();
                } else if (tvp.getTag() == ValueTag.XS_INTEGER_TAG) {
                    tvp.getValue(longp);
                    return longp.longValue();
                } else if (tvp.getTag() == ValueTag.XS_DECIMAL_TAG) {
                    tvp.getValue(decp);
                    return decp.longValue();
                } else {
                    throw new SystemException(ErrorCode.FORG0006);
View Full Code Here

Examples of erjang.EInteger.longValue()

  @BIF
  static ENumber crc32(EObject num, EObject io_list) {
    EInteger init;
    long val;
    if (((init=num.testInteger()) == null)
        || (val = init.longValue()) != (val & 0xffffffffL)) {
      throw ERT.badarg(num, io_list);
    }
   
    CRC32 crc = new CRC32();
    try {
View Full Code Here

Examples of flexjson.JsonNumber.longValue()

*/
public class JsonNumberObjectFactory implements ObjectFactory {
    public Object instantiate(ObjectBinder context, Object value, Type targetType, Class targetClass) {
        JsonNumber number = (JsonNumber) value;
        if( number.isLong() ) {
            return number.longValue();
        } else {
            return number.doubleValue();
        }
    }
}
View Full Code Here

Examples of java.lang.Number.longValue()

            if (s.endsWith("d")) {
                n = n.doubleValue();
            } else if (s.endsWith("f")) {
                n = n.floatValue();
            } else if (s.endsWith("l")) {
                n = n.longValue();
            } else if (s.endsWith("i")) {
                n = n.intValue();
            }
        } else {
            n = matchNumber(s);
View Full Code Here

Examples of java.math.BigDecimal.longValue()

                        }

                        if (num.scale() > 0) {
                            return new Double(num.doubleValue());
                        } else {
                            return new Long(num.longValue());
                        }

                    case Types.VARBINARY:
                    case Types.BINARY:
                        return resultSet.getString(index);
View Full Code Here

Examples of java.math.BigDecimal.longValue()

      }

      File oFile = oDBF.getFile();
      MboxFile oMBox = new MboxFile(oFile, MboxFile.READ_ONLY);

      InputStream oInStrm = oMBox.getMessageAsStream(oPos.longValue(), iLen);
      StreamPipe oPipe = new StreamPipe();
      oPipe.between(oInStrm, oOutStrm);
      oInStrm.close();
      oMBox.close();
    }
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.