fr.ifremer.allegro.referential.gear
Class Gear

java.lang.Object
  extended by fr.ifremer.allegro.referential.gear.Gear
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
GearImpl

public abstract class Gear
extends java.lang.Object
implements java.io.Serializable

Défini un engin, non pas engin physique, mais au sens "classe d'engin".

Il est possible de définir un arboresence d'engin, au sein d'une meme

classification, via les liens d'engin parents/enfants.


Exemple, pour la classification 'Engin EU corpus' :

* 'corpus effort de pêche'
- PAL Palangre de surface (Longliner)

- EP1 Engins petits pélagiques - corpus réglementaire 685/95

* corpus 2 (...)
- ...


Exemple, pour la classification 'FAO/CISTEP' :
* 'chaluts' (code

'03.0.0')

- 'OTB' 'chalut de fond'

- chalut pélagique

- ...
* 'Filets'

See Also:
Serialized Form

Nested Class Summary
static class Gear.Factory
          Constructs new instances of Gear.
 
Constructor Summary
Gear()
           
 
Method Summary
 boolean equals(java.lang.Object object)
          This entity does not have any identifiers and is not extending any other entity, so this method will only return true if the argument reference and this refer to the same object.
 java.util.Collection getAssociatedGears()
          
 java.util.Collection getChildGears()
           
 java.lang.String getDescription()
           
 GearClassification getGearClassification()
           
 java.lang.Integer getId()
           
 java.lang.String getLabel()
           Mn??monique (ou code) de l'engin.
 java.lang.String getName()
           Libell?? de l'engin.
 Gear getParentGear()
          
 Status getStatus()
           
 java.sql.Timestamp getUpdateDate()
           
 int hashCode()
          Returns a hash code based on this entity's identifiers.
 void setAssociatedGears(java.util.Collection associatedGears)
           
 void setChildGears(java.util.Collection childGears)
           
 void setDescription(java.lang.String description)
           
 void setGearClassification(GearClassification gearClassification)
           
 void setId(java.lang.Integer id)
           
 void setLabel(java.lang.String label)
           
 void setName(java.lang.String name)
           
 void setParentGear(Gear parentGear)
           
 void setStatus(Status status)
           
 void setUpdateDate(java.sql.Timestamp updateDate)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Gear

public Gear()
Method Detail

getId

public java.lang.Integer getId()

setId

public void setId(java.lang.Integer id)

getLabel

public java.lang.String getLabel()

Mn??monique (ou code) de l'engin. Le mn??monique doit ??tre unique pour une meme classification d'engin.

Par exemple : - Pour la classification FAO/CSITEP : label='OTB'


setLabel

public void setLabel(java.lang.String label)

getName

public java.lang.String getName()

Libell?? de l'engin.

il s'agit du libell?? "officiel" de la classification.

note : ce libell?? peut etre r??gionalis?? via "GearLocation".


setName

public void setName(java.lang.String name)

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

getUpdateDate

public java.sql.Timestamp getUpdateDate()

setUpdateDate

public void setUpdateDate(java.sql.Timestamp updateDate)

getGearClassification

public GearClassification getGearClassification()

setGearClassification

public void setGearClassification(GearClassification gearClassification)

getChildGears

public java.util.Collection getChildGears()

setChildGears

public void setChildGears(java.util.Collection childGears)

getParentGear

public Gear getParentGear()

Défini l'engin parent, au sein de la meme classification

note : pour une association entre des classifications différents,

cf "synonymGears"


setParentGear

public void setParentGear(Gear parentGear)

getStatus

public Status getStatus()

setStatus

public void setStatus(Status status)

getAssociatedGears

public java.util.Collection getAssociatedGears()


setAssociatedGears

public void setAssociatedGears(java.util.Collection associatedGears)

equals

public boolean equals(java.lang.Object object)
This entity does not have any identifiers and is not extending any other entity, so this method will only return true if the argument reference and this refer to the same object.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Returns a hash code based on this entity's identifiers.

Overrides:
hashCode in class java.lang.Object


Copyright © 2008-2010 IFREMER. All Rights Reserved.