com.fatwire.cs.ui.model.bo.asset
Class RatingData

java.lang.Object
  extended by com.fatwire.cs.ui.model.bo.asset.RatingData

public class RatingData
extends java.lang.Object

Created by IntelliJ IDEA. User: cdai Date: Oct 20, 2006 Time: 2:09:21 PM To change this template use File | Settings | File Templates.


Field Summary
static java.lang.String INSEGMENTRATING
           
static java.lang.String NOSEGMENTRATING
           
static java.lang.String OUTSEGMENTRATING
           
static java.lang.String SEGID
           
 
Constructor Summary
protected RatingData(RatingDef def)
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.Object> getDataAsMap()
          method is called to retrieve the data for save
 RatingDef getDef()
           
 java.lang.Integer getInSegmentRating()
           
 java.lang.Integer getNoSegmentRating()
           
 java.lang.Integer getOutSegmentRating()
           
 boolean isEmpty()
          Test if this RatingData is empty
 void setDataFromMap(java.util.Map<java.lang.String,java.lang.Object> data)
          method should only be called on create
 void setInSegmentRating(java.lang.Integer inSegmentRating)
           
 void setNoSegmentRating(java.lang.Integer noSegmentRating)
           
 void setOutSegmentRating(java.lang.Integer outSegmentRating)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOSEGMENTRATING

public static java.lang.String NOSEGMENTRATING

INSEGMENTRATING

public static java.lang.String INSEGMENTRATING

OUTSEGMENTRATING

public static java.lang.String OUTSEGMENTRATING

SEGID

public static java.lang.String SEGID
Constructor Detail

RatingData

protected RatingData(RatingDef def)
Method Detail

setInSegmentRating

public void setInSegmentRating(java.lang.Integer inSegmentRating)
                        throws java.lang.Exception
Throws:
java.lang.Exception

setOutSegmentRating

public void setOutSegmentRating(java.lang.Integer outSegmentRating)
                         throws java.lang.Exception
Throws:
java.lang.Exception

setNoSegmentRating

public void setNoSegmentRating(java.lang.Integer noSegmentRating)
                        throws java.lang.Exception
Throws:
java.lang.Exception

getOutSegmentRating

public java.lang.Integer getOutSegmentRating()
                                      throws java.lang.Exception
Throws:
java.lang.Exception

getInSegmentRating

public java.lang.Integer getInSegmentRating()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

getNoSegmentRating

public java.lang.Integer getNoSegmentRating()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

getDef

public RatingDef getDef()

setDataFromMap

public void setDataFromMap(java.util.Map<java.lang.String,java.lang.Object> data)
method should only be called on create

Parameters:
data -

getDataAsMap

public java.util.Map<java.lang.String,java.lang.Object> getDataAsMap()
method is called to retrieve the data for save

Returns:

isEmpty

public boolean isEmpty()
Test if this RatingData is empty

Returns:
Returns true if in, out and no segment are null