@Override public void operateDTDurationDecimal(LongPointable longp, XSDecimalPointable decp, DataOutput dOut) throws SystemException, IOException { long value = longp.longValue(); value -= decp.longValue(); dOut.write(ValueTag.XS_DAY_TIME_DURATION_TAG); dOut.writeLong(value); }
@Override public void operateDTDurationDouble(LongPointable longp, DoublePointable doublep, DataOutput dOut) throws SystemException, IOException { long value = longp.longValue(); value += doublep.longValue(); dOut.write(ValueTag.XS_DAY_TIME_DURATION_TAG); dOut.writeLong(value); }
@Override public void operateDTDurationInteger(LongPointable longp1, LongPointable longp2, DataOutput dOut) throws SystemException, IOException { if (longp2.getLong() == 0) { throw new SystemException(ErrorCode.FODT0002); } long value = longp1.longValue(); value /= longp2.longValue(); dOut.write(ValueTag.XS_DAY_TIME_DURATION_TAG); dOut.writeLong(value); }
@Override public void operateDecimalDTDuration(XSDecimalPointable decp, LongPointable longp, DataOutput dOut) throws SystemException, IOException { long value = operateLongDecimal(longp.longValue(), decp); dOut.write(ValueTag.XS_DAY_TIME_DURATION_TAG); dOut.writeLong(value); }
@Override public void operateDTDurationFloat(LongPointable longp, FloatPointable floatp, DataOutput dOut) throws SystemException, IOException { long value = longp.longValue(); value *= floatp.longValue(); dOut.write(ValueTag.XS_DAY_TIME_DURATION_TAG); dOut.writeLong(value); }
@Override public void operateDecimalDTDuration(XSDecimalPointable decp, LongPointable longp, DataOutput dOut) throws SystemException, IOException { long value = operateLongDecimal(longp.longValue(), decp); dOut.write(ValueTag.XS_DAY_TIME_DURATION_TAG); dOut.writeLong(value); }
@Override public void operateDTDurationFloat(LongPointable longp1, FloatPointable floatp2, DataOutput dOut) throws SystemException, IOException { long value = longp1.longValue(); value += floatp2.longValue(); dOut.write(ValueTag.XS_DAY_TIME_DURATION_TAG); dOut.writeLong(value); }
public void convertNegativeInteger(LongPointable longp, DataOutput dOut) throws SystemException, IOException { abvsInner.reset(); FunctionHelper.writeNumberWithPadding(longp.longValue(), 1, dOutInner); sendStringDataOutput(dOut); }
public void convertNonNegativeInteger(LongPointable longp, DataOutput dOut) throws SystemException, IOException { abvsInner.reset(); FunctionHelper.writeNumberWithPadding(longp.longValue(), 1, dOutInner); sendStringDataOutput(dOut); }
public void convertUnsignedInt(LongPointable longp, DataOutput dOut) throws SystemException, IOException { abvsInner.reset(); FunctionHelper.writeNumberWithPadding(longp.longValue(), 1, dOutInner); sendStringDataOutput(dOut); }
public void convertPositiveInteger(LongPointable longp, DataOutput dOut) throws SystemException, IOException { abvsInner.reset(); FunctionHelper.writeNumberWithPadding(longp.longValue(), 1, dOutInner); sendStringDataOutput(dOut); }
public void convertUnsignedLong(LongPointable longp, DataOutput dOut) throws SystemException, IOException { abvsInner.reset(); FunctionHelper.writeNumberWithPadding(longp.longValue(), 1, dOutInner); sendStringDataOutput(dOut); }
@Override public void operateDTDurationDTDuration(LongPointable longp1, LongPointable longp2, DataOutput dOut) throws SystemException, IOException { double value = longp1.longValue(); value /= longp2.longValue(); abvsInner.reset(); doublep.set(abvsInner.getByteArray(), abvsInner.getStartOffset(), DoublePointable.TYPE_TRAITS.getFixedLength()); doublep.setDouble(value); CastToDecimalOperation castToDecmial = new CastToDecimalOperation(); castToDecmial.convertDouble(doublep, dOut); }
@Override public void operateDecimalInteger(XSDecimalPointable decp1, LongPointable longp2, DataOutput dOut) throws SystemException, IOException { abvsInner.reset(); decp2.set(abvsInner.getByteArray(), abvsInner.getStartOffset(), XSDecimalPointable.TYPE_TRAITS.getFixedLength()); decp2.setDecimal(longp2.longValue(), (byte) 0); operateDecimalDecimal(decp1, decp2, dOut); }
@Override public void operateDecimalInteger(XSDecimalPointable decp1, LongPointable longp2, DataOutput dOut) throws SystemException, IOException { abvsInner.reset(); decp2.set(abvsInner.getByteArray(), abvsInner.getStartOffset(), XSDecimalPointable.TYPE_TRAITS.getFixedLength()); decp2.setDecimal(longp2.longValue(), (byte) 0); operateDecimalDecimal(decp1, decp2, dOut); }
@Override public void operateIntegerDecimal(LongPointable longp1, XSDecimalPointable decp2, DataOutput dOut) throws SystemException, IOException { abvsInner.reset(); decp1.set(abvsInner.getByteArray(), abvsInner.getStartOffset(), XSDecimalPointable.TYPE_TRAITS.getFixedLength()); decp1.setDecimal(longp1.longValue(), (byte) 0); operateDecimalDecimal(decp1, decp2, dOut); }
@Override public void operateDecimalInteger(XSDecimalPointable decp1, LongPointable longp2, DataOutput dOut) throws SystemException, IOException { abvsInner1.reset(); decp2.set(abvsInner1.getByteArray(), abvsInner1.getStartOffset(), XSDecimalPointable.TYPE_TRAITS.getFixedLength()); decp2.setDecimal(longp2.longValue(), (byte) 0); operateDecimalDecimal(decp1, decp2, dOut); }
@Override public void operateDecimalInteger(XSDecimalPointable decp1, LongPointable longp2, DataOutput dOut) throws SystemException, IOException { if (longp2.getLong() == 0) { throw new SystemException(ErrorCode.FOAR0001); } // Convert abvsInner.reset(); decp2.set(abvsInner.getByteArray(), abvsInner.getStartOffset(), XSDecimalPointable.TYPE_TRAITS.getFixedLength()); decp2.setDecimal(longp2.longValue(), (byte) 0); operateDecimalDecimal(decp1, decp2, dOut); }
@Override public void operateIntegerDecimal(LongPointable longp1, XSDecimalPointable decp2, DataOutput dOut) throws SystemException, IOException { if (decp2.getDecimalValue() == 0) { throw new SystemException(ErrorCode.FOAR0001); } abvsInner.reset(); decp1.set(abvsInner.getByteArray(), abvsInner.getStartOffset(), XSDecimalPointable.TYPE_TRAITS.getFixedLength()); decp1.setDecimal(longp1.longValue(), (byte) 0); operateDecimalDecimal(decp1, decp2, dOut); }