View Javadoc
1 /* 2 * Created on 2003-6-11 14:59:06 by joel guo 3 * 4 * vTradEx Information Technology Inc. 5 */ 6 package com.cyclops.dbdigger.idbroker; 7 import java.math.BigDecimal; 8 /*** Add description <font color="red">HERE</font>! 9 * 10 * @author <a href="mailto:joeblack.guo@vtradex.com">joel guo</a> 11 * @since 2003-6-11 14:59:06 12 */ 13 public class NumberKey extends PrimaryKey { 14 /*** Constructor method for class NumberKey 15 * @param bd BigDecimal object 16 */ 17 public NumberKey(BigDecimal bd) { 18 super(bd); 19 } 20 /*** Constructor of class NumberKey 21 * @param value long value 22 */ 23 public NumberKey(long value) { 24 super(new BigDecimal(value)); 25 } 26 /*** Method getBigDecimal() in class NumberKey 27 * @return BigDecimal object 28 */ 29 public BigDecimal getBigDecimal() { 30 return (BigDecimal) getObject(); 31 } 32 /*** Method getLong() in class NumberKey 33 * @return Long value 34 */ 35 public long getLong() { 36 return getBigDecimal().longValue(); 37 } 38 }

This page was automatically generated by Maven