Package mc.core.model.generic
Class CollectionToEntity
java.lang.Object
mc.core.model.generic.CollectionToEntity
- All Implemented Interfaces:
Serializable,IBaseEntity,ICoreEntity,IObjectAssignment,ISortableEntity
Class to represent the association of a ComplexEntity with a more as one collections the primary collection still
collection in BaseEntity Currently be implemented only for Asset
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface mc.core.model.base.IObjectAssignment
IObjectAssignment.ObjectAssignmentBase -
Constructor Summary
ConstructorsConstructorDescriptiondefault constructorCollectionToEntity(Collection collection, ComplexEntity entity, int prio) constructor for building a valid CollectionToEntity object -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonggetId()intgetPrio()inthashCode()voidsetCollection(Collection collection) voidsetEntity(ComplexEntity entity) voidsetId(long id) voidsetPrio(int prio) toString()
-
Constructor Details
-
CollectionToEntity
public CollectionToEntity()default constructor -
CollectionToEntity
constructor for building a valid CollectionToEntity object- Parameters:
collection-entity-prio-
-
-
Method Details
-
getId
public long getId()- Specified by:
getIdin interfaceIBaseEntity
-
setId
public void setId(long id) - Specified by:
setIdin interfaceIBaseEntity
-
getEntity
-
setEntity
-
getCollection
-
setCollection
-
getPrio
public int getPrio()- Specified by:
getPrioin interfaceISortableEntity
-
setPrio
public void setPrio(int prio) - Specified by:
setPrioin interfaceISortableEntity
-
getAssignedObject
- Specified by:
getAssignedObjectin interfaceIObjectAssignment- Returns:
- the object that holds the list of assigned entities
-
equals
-
hashCode
public int hashCode() -
toString
-