SRJRCFrames
v0.1.296

de.schwarzrot.data.support
Class AbstractWeightedEntityReference<A extends Entity,B extends Entity,T>

java.lang.Object
  extended by com.jgoodies.binding.beans.Model
      extended by de.schwarzrot.data.support.AbstractEntity
          extended by de.schwarzrot.data.support.AbstractEntityReference<A,B>
              extended by de.schwarzrot.data.support.AbstractWeightedEntityReference<A,B,T>
Type Parameters:
A - the master Entity
B - the related Entity
T - the type of the property, that determines the sort order of the relations
All Implemented Interfaces:
com.jgoodies.binding.beans.Observable, Entity, EntityReference<A,B>, WeightedEntityReference<A,B,T>, Serializable, Comparable<Entity>
Direct Known Subclasses:
IdxSegmentInfo

public abstract class AbstractWeightedEntityReference<A extends Entity,B extends Entity,T>
extends AbstractEntityReference<A,B>
implements WeightedEntityReference<A,B,T>

implements a base class for anonymous references, that should be sorted/weighted.

Author:
Reinhard Mantey
See Also:
Serialized Form

Constructor Summary
AbstractWeightedEntityReference(A refA, B refB)
           
AbstractWeightedEntityReference(A refA, B refB, T weight)
           
 
Method Summary
 List<SortInfo> getDefaultOrder()
          returns a list of SortInfo, that build the order for default list-queries.
 T getWeight()
           
 void setWeight(T weight)
           
 
Methods inherited from class de.schwarzrot.data.support.AbstractEntityReference
getReferenceA, getReferenceB, getUniqColumnNames, setReferenceA, setReferenceB
 
Methods inherited from class de.schwarzrot.data.support.AbstractEntity
adoptChildren, adoptChildren, adoptGroupedChildren, compareTo, equals, getCModified, getCode, getDtCreated, getDtModified, getId, getLogger, getMappings, getPersistenceName, getSchemaName, getSkipList, getSystemClass, getUCreated, getUModified, getUserAttributes, getVariantColumnName, getVariantTypeMap, hashCode, isDirty, isUserType, isVirtual, setCModified, setDirty, setDtCreated, setDtModified, setId, setSchemaName, setUCreated, setUModified, toString, validate
 
Methods inherited from class com.jgoodies.binding.beans.Model
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, equals, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.schwarzrot.data.WeightedEntityReference
getWeightType
 
Methods inherited from interface de.schwarzrot.data.EntityReference
getAType, getBType, getReferenceA, getReferenceB, setReferenceA, setReferenceB
 
Methods inherited from interface com.jgoodies.binding.beans.Observable
addPropertyChangeListener, removePropertyChangeListener
 

Constructor Detail

AbstractWeightedEntityReference

public AbstractWeightedEntityReference(A refA,
                                       B refB)

AbstractWeightedEntityReference

public AbstractWeightedEntityReference(A refA,
                                       B refB,
                                       T weight)
Method Detail

getDefaultOrder

public List<SortInfo> getDefaultOrder()
Description copied from interface: Entity
returns a list of SortInfo, that build the order for default list-queries.

Specified by:
getDefaultOrder in interface Entity
Overrides:
getDefaultOrder in class AbstractEntity
Returns:
a list of property names

getWeight

public final T getWeight()
Specified by:
getWeight in interface WeightedEntityReference<A extends Entity,B extends Entity,T>

setWeight

public final void setWeight(T weight)
Specified by:
setWeight in interface WeightedEntityReference<A extends Entity,B extends Entity,T>

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
Submit a bug or request a feature

SRJRCFrames is published according to the GNU General Public License
Copyright 2005-2012 Reinhard Mantey - some rights reserved.