public void insert_fixed(java.math.BigDecimal value) { typeCode = TypeCodeImpl.convertToNative( orb, orb.create_fixed_tc(TypeCodeImpl.digits(value), TypeCodeImpl.scale(value))); object = value; isInitialized = true; }
/* */ public void insert_fixed(BigDecimal paramBigDecimal) { /* 1175 */ this.typeCode = TypeCodeImpl.convertToNative( this.orb, this.orb.create_fixed_tc( TypeCodeImpl.digits(paramBigDecimal), TypeCodeImpl.scale(paramBigDecimal))); /* */ /* 1177 */ this.object = paramBigDecimal; /* 1178 */ this.isInitialized = true; /* */ }
public void insert_fixed(java.math.BigDecimal value, org.omg.CORBA.TypeCode type) { try { if (TypeCodeImpl.digits(value) > type.fixed_digits() || TypeCodeImpl.scale(value) > type.fixed_scale()) { throw wrapper.fixedNotMatch(); } } catch (org.omg.CORBA.TypeCodePackage.BadKind bk) { // type isn't even of kind fixed throw wrapper.fixedBadTypecode(bk); } typeCode = TypeCodeImpl.convertToNative(orb, type); object = value; isInitialized = true; }
/* */ public void insert_fixed(BigDecimal paramBigDecimal, TypeCode paramTypeCode) /* */ { /* */ try { /* 1184 */ if ((TypeCodeImpl.digits(paramBigDecimal) > paramTypeCode.fixed_digits()) || (TypeCodeImpl.scale(paramBigDecimal) > paramTypeCode.fixed_scale())) /* */ { /* 1187 */ throw this.wrapper.fixedNotMatch(); /* */ } /* */ } /* */ catch (BadKind localBadKind) { /* 1191 */ throw this.wrapper.fixedBadTypecode(localBadKind); /* */ } /* 1193 */ this.typeCode = TypeCodeImpl.convertToNative(this.orb, paramTypeCode); /* 1194 */ this.object = paramBigDecimal; /* 1195 */ this.isInitialized = true; /* */ }