public class NewDetailRecord extends DetailRecord
Transaction| Constructor and Description |
|---|
NewDetailRecord()
Builds an empty detail record.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(com.highdeal.pnr.domain.RatingContextData data,
DetailCategory category) |
void |
addDetail(com.highdeal.pnr.domain.PropertyGlobalContext.GlobalPropertyDescription detail,
java.lang.Object value) |
void |
addDetail(java.lang.String detail,
java.math.BigDecimal value)
Adds a number detail to the details record.
|
void |
addDetail(java.lang.String detail,
java.util.Date value)
Adds a date detail to the details record.
|
void |
addDetail(java.lang.String detail,
java.lang.Object value)
Adds a detail to the details record.
|
void |
addDetail(java.lang.String detail,
java.lang.String value)
Adds a string detail to the details record.
|
NewDetailRecord |
duplicate() |
boolean |
equals(java.lang.Object other)
Compares this DetailRecord with an other.
|
java.lang.Object |
getDetail(DetailCategory category,
int globalNameId)
Retrieves the value of a detail.
|
java.lang.Object |
getDetail(java.lang.String detail)
Retrieves the value of a detail.
|
java.util.Collection<java.lang.String> |
getDetails()
Returns a collection of the detail names in this detail record.
|
com.highdeal.pnr.domain.RatingContextData |
getDetails(DetailCategory category) |
com.highdeal.pnr.domain.RatingContextData[] |
getDetailsByCategory() |
java.util.Map<java.lang.String,java.lang.Object> |
getNoCatalogList() |
int |
hashCode() |
void |
keepCategories(DetailCategory... cats) |
int |
size()
Returns the number of details.
|
public void addDetail(java.lang.String detail,
java.lang.Object value)
DetailRecordaddDetail in class DetailRecorddetail - The name of the detailvalue - The value of the detailpublic void addDetail(java.lang.String detail,
java.lang.String value)
DetailRecordaddDetail in class DetailRecorddetail - The name of the detailvalue - The value of the detailpublic void addDetail(java.lang.String detail,
java.math.BigDecimal value)
DetailRecordaddDetail in class DetailRecorddetail - The name of the detailvalue - The value of the detailpublic void addDetail(java.lang.String detail,
java.util.Date value)
DetailRecordaddDetail in class DetailRecorddetail - The name of the detailvalue - The value of the detailpublic boolean equals(java.lang.Object other)
DetailRecordequals in class DetailRecordother - The object to compare withpublic int hashCode()
hashCode in class DetailRecordpublic final NewDetailRecord duplicate()
duplicate in class DetailRecordpublic java.lang.Object getDetail(java.lang.String detail)
DetailRecordgetDetail in class DetailRecorddetail - The name of the detail to retrievepublic java.lang.Object getDetail(DetailCategory category, int globalNameId)
category - The category of the detail to retrieveglobalNameId - The global identifier of the detail to retrievepublic java.util.Collection<java.lang.String> getDetails()
DetailRecordgetDetails in class DetailRecordpublic int size()
DetailRecordsize in class DetailRecordpublic com.highdeal.pnr.domain.RatingContextData getDetails(DetailCategory category)
public void add(com.highdeal.pnr.domain.RatingContextData data,
DetailCategory category)
public com.highdeal.pnr.domain.RatingContextData[] getDetailsByCategory()
public java.util.Map<java.lang.String,java.lang.Object> getNoCatalogList()
public void addDetail(com.highdeal.pnr.domain.PropertyGlobalContext.GlobalPropertyDescription detail,
java.lang.Object value)
public void keepCategories(DetailCategory... cats)