@Override public void operateYMDurationInteger(IntegerPointable intp, LongPointable longp, DataOutput dOut) throws SystemException, IOException { int value = intp.intValue(); value -= longp.intValue(); dOut.write(ValueTag.XS_YEAR_MONTH_DURATION_TAG); dOut.writeInt(value); }
@Override public void operateIntegerYMDuration(LongPointable longp, IntegerPointable intp, DataOutput dOut) throws SystemException, IOException { int value = longp.intValue(); value += intp.intValue(); dOut.write(ValueTag.XS_YEAR_MONTH_DURATION_TAG); dOut.writeInt(value); }
@Override public void operateIntegerYMDuration(LongPointable longp, IntegerPointable intp, DataOutput dOut) throws SystemException, IOException { int value = longp.intValue(); value *= intp.intValue(); dOut.write(ValueTag.XS_YEAR_MONTH_DURATION_TAG); dOut.writeInt(value); }
@Override public void operateDoubleDTDuration(DoublePointable doublep, LongPointable longp, DataOutput dOut) throws SystemException, IOException { long value = doublep.intValue(); value -= longp.intValue(); dOut.write(ValueTag.XS_DAY_TIME_DURATION_TAG); dOut.writeLong(value); }
@Override public void operateIntegerYMDuration(LongPointable longp, IntegerPointable intp, DataOutput dOut) throws SystemException, IOException { int value = longp.intValue(); value -= intp.intValue(); dOut.write(ValueTag.XS_YEAR_MONTH_DURATION_TAG); dOut.writeInt(value); }
@Override public void operateYMDurationInteger(IntegerPointable intp, LongPointable longp, DataOutput dOut) throws SystemException, IOException { if (longp.getLong() == 0) { throw new SystemException(ErrorCode.FOAR0001); } int value = intp.intValue(); value /= longp.intValue(); dOut.write(ValueTag.XS_YEAR_MONTH_DURATION_TAG); dOut.writeInt(value); }
protected static int getIntParameter(final TaggedValuePointable tvp, final DoublePointable doublep, final LongPointable longp) throws SystemException { switch (tvp.getTag()) { case ValueTag.XS_INTEGER_TAG: tvp.getValue(longp); return longp.intValue(); case ValueTag.XS_DOUBLE_TAG: tvp.getValue(doublep); // TODO Double needs to be rounded return doublep.intValue(); default: throw new SystemException(ErrorCode.FORG0006); } }
tvp.set(p.getByteArray(), p.getStartOffset(), p.getLength()); tvp.getValue(longp); if (!Character.isDefined(longp.intValue())) { throw new SystemException(ErrorCode.FOCH0001); FunctionHelper.writeChar((char) longp.intValue(), out); if (!Character.isDefined(longp.intValue())) { throw new SystemException(ErrorCode.FOCH0001); FunctionHelper.writeChar((char) longp.intValue(), out); } else { throw new SystemException(ErrorCode.FORG0006);