public Earning(final Integer value,final String sellerName,final boolean shouldReward){
  super();
  setRPClass(EARNING_RPCLASS_NAME);
  hide();
  put(VALUE_ATTRIBUTE,value);
  this.value=value;
  this.sellerName=sellerName;
  put(NAME_ATTRIBUTE,sellerName);
  put(REWARD_ATTRIBUTE,shouldReward ? 1 : 0);
  put(TIMESTAMP_ATTRIBUTE,Long.toString(System.currentTimeMillis()));
}

public Earning ( final Integer value , final String sellerName , final boolean shouldReward ) { super ( ) ; setRPClass ( EARNING_RPCLASS_NAME ) ; hide ( ) ; put ( VALUE_ATTRIBUTE , value ) ; this . value = value ; this . sellerName = sellerName ; put ( NAME_ATTRIBUTE , sellerName ) ; put ( REWARD_ATTRIBUTE , shouldReward ? 1 : 0 ) ; put ( TIMESTAMP_ATTRIBUTE , Long . toString ( System . currentTimeMillis ( ) ) ) ; }
constructs earning for sold price .
