public class BenthosBatchRowModel extends AbstractTuttiBeanUIModel<BenthosBatch,BenthosBatchRowModel> implements BenthosBatch, AttachmentModelAware, SampleCategoryAble<BenthosBatchRowModel>
id, modify, PROPERTY_MODIFY, PROPERTY_VALID, validPROPERTY_CHILD_BATCHS, PROPERTY_SAMPLE_CATEGORY_IDPROPERTY_COMMENT, PROPERTY_FISHING_OPERATION, PROPERTY_RANK_ORDERPROPERTY_IDPROPERTY_ATTACHMENT, PROPERTY_OBJECT_ID| Constructor and Description |
|---|
BenthosBatchRowModel(WeightUnit weightUnit,
SampleCategoryModel sampleCategoryModel) |
BenthosBatchRowModel(WeightUnit weightUnit,
SampleCategoryModel sampleCategoryModel,
BenthosBatch entity,
List<BenthosBatchFrequency> frequencies) |
firePropertyChanged, fromBean, getChild, getChild, getId, getIdAsInt, isCreate, isModify, isValid, setId, setId, setModify, setValid, toBeanaddPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListenerequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetId, getIdAsInt, setId, setIdpublic static final String PROPERTY_SPECIES_TO_CONFIRM
public static final String PROPERTY_SPECIES
public static final String PROPERTY_SAMPLE_CATEGORY
public static final String PROPERTY_SAMPLE_CATEGORY_VALUE
public static final String PROPERTY_SAMPLE_CATEGORY_WEIGHT
public static final String PROPERTY_SAMPLE_CATEGORY_COMPUTED_WEIGHT
public static final String PROPERTY_WEIGHT
public static final String PROPERTY_NUMBER
public static final String PROPERTY_FREQUENCY
public static final String PROPERTY_COMPUTED_NUMBER
public static final String PROPERTY_COMPUTED_WEIGHT
public static final String PROPERTY_PARENT_BATCH
public static final String PROPERTY_CHILD_BATCH
public static final String PROPERTY_BATCH_LEAF
public static final String PROPERTY_BATCH_ROOT
protected Species species
protected final SampleCategory<?>[] categories
protected boolean speciesToConfirm
protected TuttiComputedOrNotData<Float> computedOrNotWeight
protected TuttiComputedOrNotData<Integer> computedOrNotNumber
protected String comment
protected final List<Attachment> attachment
protected List<BenthosFrequencyRowModel> frequency
protected BenthosBatchRowModel parentBatch
isBatchRoot()protected List<BenthosBatchRowModel> childBatch
isBatchLeaf()protected final SampleCategoryModel sampleCategoryModel
protected final WeightUnit weightUnit
protected static final org.nuiton.util.beans.Binder<BenthosBatch,BenthosBatchRowModel> fromBeanBinder
protected static final org.nuiton.util.beans.Binder<BenthosBatchRowModel,BenthosBatch> toBeanBinder
public BenthosBatchRowModel(WeightUnit weightUnit, SampleCategoryModel sampleCategoryModel)
public BenthosBatchRowModel(WeightUnit weightUnit, SampleCategoryModel sampleCategoryModel, BenthosBatch entity, List<BenthosBatchFrequency> frequencies)
protected BenthosBatch newEntity()
newEntity in class AbstractTuttiBeanUIModel<BenthosBatch,BenthosBatchRowModel>public void fromEntity(BenthosBatch entity)
fromEntity in class AbstractTuttiBeanUIModel<BenthosBatch,BenthosBatchRowModel>public BenthosBatch toEntity()
toEntity in class AbstractTuttiBeanUIModel<BenthosBatch,BenthosBatchRowModel>public Integer getCategoryIndex(Integer id)
getCategoryIndex in interface SampleCategoryAble<BenthosBatchRowModel>public void setSampleCategory(SampleCategory sampleCategory)
setSampleCategory in interface SampleCategoryAble<BenthosBatchRowModel>public SampleCategory<?> getFirstSampleCategory()
getFirstSampleCategory in interface SampleCategoryAble<BenthosBatchRowModel>public SampleCategory getFinestCategory()
getFinestCategory in interface SampleCategoryAble<BenthosBatchRowModel>public SampleCategory<?> getSampleCategoryById(Integer sampleCategoryId)
getSampleCategoryById in interface SampleCategoryAble<BenthosBatchRowModel>public void setSampleCategoryWeight(Integer sampleCategoryId, Object value)
setSampleCategoryWeight in interface SampleCategoryAble<BenthosBatchRowModel>public BenthosBatchRowModel getFirstAncestor(SampleCategory<?> entrySampleCategory)
getFirstAncestor in interface SampleCategoryAble<BenthosBatchRowModel>public Iterator<SampleCategory<?>> iterator()
iterator in interface Iterable<SampleCategory<?>>public Species getSpecies()
getSpecies in interface BenthosBatchgetSpecies in interface SpeciesAbleBatchpublic void setSpecies(Species species)
setSpecies in interface BenthosBatchpublic BenthosBatchRowModel getParentBatch()
getParentBatch in interface BenthosBatchgetParentBatch in interface SpeciesAbleBatchpublic void setParentBatch(BenthosBatchRowModel parentBatch)
public List<BenthosBatchRowModel> getChildBatch()
public void setChildBatch(List<BenthosBatchRowModel> childBatch)
public boolean isBatchLeaf()
public boolean isBatchRoot()
public String getComment()
getComment in interface CommentAwaregetComment in interface TuttiBatchEntitypublic void setComment(String comment)
setComment in interface CommentAwaresetComment in interface TuttiBatchEntitypublic AttachementObjectTypeEnum getObjectType()
getObjectType in interface AttachmentModelAwarepublic Integer getObjectId()
getObjectId in interface AttachmentModelAwarepublic List<Attachment> getAttachment()
getAttachment in interface AttachmentModelAwarepublic void addAllAttachment(Collection<Attachment> attachments)
addAllAttachment in interface AttachmentModelAwarepublic void addAttachment(Attachment attachment)
addAttachment in interface AttachmentModelAwarepublic void removeAllAttachment(Collection<Attachment> attachments)
removeAllAttachment in interface AttachmentModelAwarepublic void removeAttachment(Attachment attachment)
removeAttachment in interface AttachmentModelAwarepublic boolean isSpeciesToConfirm()
isSpeciesToConfirm in interface BenthosBatchisSpeciesToConfirm in interface SpeciesAbleBatchpublic void setSpeciesToConfirm(boolean speciesToConfirm)
setSpeciesToConfirm in interface BenthosBatchsetSpeciesToConfirm in interface SpeciesAbleBatchpublic Float getWeight()
getWeight in interface TuttiBatchEntitypublic void setWeight(Float weight)
setWeight in interface TuttiBatchEntitypublic Integer getNumber()
getNumber in interface BenthosBatchgetNumber in interface SpeciesAbleBatchpublic void setNumber(Integer number)
setNumber in interface BenthosBatchsetNumber in interface SpeciesAbleBatchpublic List<BenthosFrequencyRowModel> getFrequency()
public void setFrequency(List<BenthosFrequencyRowModel> frequency)
public Integer getComputedNumber()
getComputedNumber in interface BenthosBatchgetComputedNumber in interface SpeciesAbleBatchpublic void setComputedNumber(Integer computedNumber)
setComputedNumber in interface BenthosBatchsetComputedNumber in interface SpeciesAbleBatchpublic Float getComputedWeight()
getComputedWeight in interface BenthosBatchgetComputedWeight in interface SpeciesAbleBatchpublic void setComputedWeight(Float computedWeight)
setComputedWeight in interface BenthosBatchsetComputedWeight in interface SpeciesAbleBatchpublic TuttiComputedOrNotData<Integer> getComputedOrNotNumber()
public void setComputedOrNotNumber(TuttiComputedOrNotData<Integer> computedOrNotNumber)
public TuttiComputedOrNotData<Float> getComputedOrNotWeight()
public void setComputedOrNotWeight(TuttiComputedOrNotData<Float> computedOrNotWeight)
public Integer getSampleCategoryId()
getSampleCategoryId in interface BenthosBatchgetSampleCategoryId in interface SpeciesAbleBatchpublic void setSampleCategoryId(Integer sampleCategoryId)
setSampleCategoryId in interface BenthosBatchsetSampleCategoryId in interface SpeciesAbleBatchpublic Serializable getSampleCategoryValue()
getSampleCategoryValue in interface BenthosBatchgetSampleCategoryValue in interface SpeciesAbleBatchpublic void setSampleCategoryValue(Serializable sampleCategoryValue)
setSampleCategoryValue in interface BenthosBatchsetSampleCategoryValue in interface SpeciesAbleBatchpublic Float getSampleCategoryWeight()
getSampleCategoryWeight in interface BenthosBatchgetSampleCategoryWeight in interface SpeciesAbleBatchpublic void setSampleCategoryWeight(Float sampleCategoryWeight)
setSampleCategoryWeight in interface BenthosBatchsetSampleCategoryWeight in interface SpeciesAbleBatchpublic Float getSampleCategoryComputedWeight()
getSampleCategoryComputedWeight in interface BenthosBatchgetSampleCategoryComputedWeight in interface SpeciesAbleBatchpublic void setSampleCategoryComputedWeight(Float sampleCategoryComputedWeight)
setSampleCategoryComputedWeight in interface BenthosBatchsetSampleCategoryComputedWeight in interface SpeciesAbleBatchpublic BenthosBatch getChildBatchs(int index)
getChildBatchs in interface BenthosBatchpublic boolean isChildBatchsEmpty()
isChildBatchsEmpty in interface BenthosBatchisChildBatchsEmpty in interface SpeciesAbleBatchpublic int sizeChildBatchs()
sizeChildBatchs in interface BenthosBatchpublic void addChildBatchs(BenthosBatch childBatchs)
addChildBatchs in interface BenthosBatchpublic void addAllChildBatchs(Collection<BenthosBatch> childBatchs)
addAllChildBatchs in interface BenthosBatchpublic boolean removeChildBatchs(BenthosBatch childBatchs)
removeChildBatchs in interface BenthosBatchpublic boolean removeAllChildBatchs(Collection<BenthosBatch> childBatchs)
removeAllChildBatchs in interface BenthosBatchpublic boolean containsChildBatchs(BenthosBatch childBatchs)
containsChildBatchs in interface BenthosBatchpublic boolean containsAllChildBatchs(Collection<BenthosBatch> childBatchs)
containsAllChildBatchs in interface BenthosBatchpublic List<BenthosBatch> getChildBatchs()
getChildBatchs in interface BenthosBatchgetChildBatchs in interface SpeciesAbleBatchpublic void setChildBatchs(List<BenthosBatch> childBatchs)
setChildBatchs in interface BenthosBatchpublic void setParentBatch(BenthosBatch parentBatch)
setParentBatch in interface BenthosBatchpublic FishingOperation getFishingOperation()
getFishingOperation in interface TuttiBatchEntitypublic void setFishingOperation(FishingOperation fishingOperation)
setFishingOperation in interface TuttiBatchEntitypublic void collectShell(Set<BenthosBatchRowModel> collectedRows)
public Integer getRankOrder()
getRankOrder in interface TuttiBatchEntitypublic void setRankOrder(Integer rankOrder)
setRankOrder in interface TuttiBatchEntityCopyright © 2012–2013 Ifremer. All rights reserved.