Package fr.ifremer.isisfish.entities
Class VesselTypeAbstract
java.lang.Object
org.nuiton.topia.persistence.TopiaEntityAbstract
fr.ifremer.isisfish.entities.VesselTypeAbstract
- All Implemented Interfaces:
VesselType
,Serializable
,org.nuiton.topia.persistence.TopiaEntity
,org.nuiton.topia.persistence.TopiaEntityContextable
- Direct Known Subclasses:
VesselTypeImpl
public abstract class VesselTypeAbstract
extends org.nuiton.topia.persistence.TopiaEntityAbstract
implements VesselType
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected double
Nom de l'attribut en BD : activityRangeprotected String
Nom de l'attribut en BD : commentprotected int
Nom de l'attribut en BD : lengthprotected TimeUnit
Nom de l'attribut en BD : maxTripDurationprotected int
Taille minimum de l'équipage sur ce style de bateauprotected String
Nom de l'attribut en BD : nameprotected double
Nom de l'attribut en BD : speedprotected Collection<TripType>
Nom de l'attribut en BD : tripTypeprotected double
Coût d'un heure de carburantFields inherited from class org.nuiton.topia.persistence.TopiaEntityAbstract
readListeners, readVetoables, topiaContext, topiaCreateDate, topiaId, topiaVersion, writeListeners, writeVetoables
Fields inherited from interface org.nuiton.topia.persistence.TopiaEntity
AGGREGATE, COMPOSITE, TOPIA_CREATE_DATE, TOPIA_ID, TOPIA_VERSION
Fields inherited from interface org.nuiton.topia.persistence.TopiaEntityContextable
TOPIA_CONTEXT
Fields inherited from interface fr.ifremer.isisfish.entities.VesselType
PROPERTY_ACTIVITY_RANGE, PROPERTY_COMMENT, PROPERTY_LENGTH, PROPERTY_MAX_TRIP_DURATION, PROPERTY_MIN_CREW_SIZE, PROPERTY_NAME, PROPERTY_SPEED, PROPERTY_TRIP_TYPE, PROPERTY_UNIT_FUEL_COST_OF_TRAVEL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(org.nuiton.topia.persistence.EntityVisitor visitor) protected void
accept0
(org.nuiton.topia.persistence.EntityVisitor visitor) void
addAllTripType
(Collection<TripType> tripType) void
addTripType
(TripType tripType) void
void
delete()
double
List<org.nuiton.topia.persistence.TopiaEntity>
List<org.nuiton.topia.persistence.TopiaEntity>
int
int
getName()
double
getSpeed()
getTripTypeByTopiaId
(String topiaId) double
boolean
void
removeTripType
(TripType tripType) void
setActivityRange
(double activityRange) void
setComment
(String comment) void
setLength
(int length) void
setMaxTripDuration
(TimeUnit maxTripDuration) void
setMinCrewSize
(int minCrewSize) void
void
setSpeed
(double speed) void
setTripType
(Collection<TripType> tripType) void
setUnitFuelCostOfTravel
(double unitFuelCostOfTravel) int
toString()
void
update()
Methods inherited from class org.nuiton.topia.persistence.TopiaEntityAbstract
addPropertyChangeListener, addPropertyChangeListener, addPropertyListener, addPropertyListener, addVetoableChangeListener, addVetoableChangeListener, addVetoableListener, addVetoableListener, equals, fireOnPostRead, fireOnPostRead, fireOnPostWrite, fireOnPostWrite, fireOnPreRead, fireOnPreWrite, getReadPropertyChangeSupport, getReadVetoableChangeSupport, getTopiaContext, getTopiaCreateDate, getTopiaId, getTopiaVersion, getWritePropertyChangeSupport, getWriteVetoableChangeSupport, hashCode, removePropertyChangeListener, removePropertyChangeListener, removePropertyListener, removePropertyListener, removeVetoableChangeListener, removeVetoableChangeListener, removeVetoableListener, removeVetoableListener, setTopiaContext, setTopiaCreateDate, setTopiaId, setTopiaVersion
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.nuiton.topia.persistence.TopiaEntity
addPropertyChangeListener, addPropertyChangeListener, addPropertyListener, addPropertyListener, addVetoableChangeListener, addVetoableChangeListener, addVetoableListener, addVetoableListener, getTopiaCreateDate, getTopiaId, getTopiaVersion, removePropertyChangeListener, removePropertyChangeListener, removePropertyListener, removePropertyListener, removeVetoableChangeListener, removeVetoableChangeListener, removeVetoableListener, removeVetoableListener, setTopiaCreateDate, setTopiaId, setTopiaVersion
Methods inherited from interface org.nuiton.topia.persistence.TopiaEntityContextable
getTopiaContext, setTopiaContext
Methods inherited from interface fr.ifremer.isisfish.entities.VesselType
getFisheryRegion
-
Field Details
-
name
Nom de l'attribut en BD : name -
length
protected int lengthNom de l'attribut en BD : length -
speed
protected double speedNom de l'attribut en BD : speed -
maxTripDuration
Nom de l'attribut en BD : maxTripDuration -
activityRange
protected double activityRangeNom de l'attribut en BD : activityRange -
minCrewSize
protected int minCrewSizeTaille minimum de l'équipage sur ce style de bateau
Nom de l'attribut en BD : minCrewSize -
unitFuelCostOfTravel
protected double unitFuelCostOfTravelCoût d'un heure de carburant
Nom de l'attribut en BD : unitFuelCostOfTravel -
comment
Nom de l'attribut en BD : comment -
tripType
Nom de l'attribut en BD : tripType
-
-
Constructor Details
-
VesselTypeAbstract
public VesselTypeAbstract()
-
-
Method Details
-
update
public void update() throws org.nuiton.topia.TopiaException- Specified by:
update
in interfaceorg.nuiton.topia.persistence.TopiaEntityContextable
- Throws:
org.nuiton.topia.TopiaException
-
delete
public void delete() throws org.nuiton.topia.TopiaException- Specified by:
delete
in interfaceorg.nuiton.topia.persistence.TopiaEntityContextable
- Throws:
org.nuiton.topia.TopiaException
-
accept
public void accept(org.nuiton.topia.persistence.EntityVisitor visitor) throws org.nuiton.topia.TopiaException - Specified by:
accept
in interfaceorg.nuiton.topia.persistence.TopiaEntity
- Throws:
org.nuiton.topia.TopiaException
-
accept0
protected void accept0(org.nuiton.topia.persistence.EntityVisitor visitor) throws org.nuiton.topia.TopiaException - Throws:
org.nuiton.topia.TopiaException
-
setName
- Specified by:
setName
in interfaceVesselType
-
getName
- Specified by:
getName
in interfaceVesselType
-
setLength
public void setLength(int length) - Specified by:
setLength
in interfaceVesselType
-
getLength
public int getLength()- Specified by:
getLength
in interfaceVesselType
-
setSpeed
public void setSpeed(double speed) - Specified by:
setSpeed
in interfaceVesselType
-
getSpeed
public double getSpeed()- Specified by:
getSpeed
in interfaceVesselType
-
setMaxTripDuration
- Specified by:
setMaxTripDuration
in interfaceVesselType
-
getMaxTripDuration
- Specified by:
getMaxTripDuration
in interfaceVesselType
-
setActivityRange
public void setActivityRange(double activityRange) - Specified by:
setActivityRange
in interfaceVesselType
-
getActivityRange
public double getActivityRange()- Specified by:
getActivityRange
in interfaceVesselType
-
setMinCrewSize
public void setMinCrewSize(int minCrewSize) - Specified by:
setMinCrewSize
in interfaceVesselType
-
getMinCrewSize
public int getMinCrewSize()- Specified by:
getMinCrewSize
in interfaceVesselType
-
setUnitFuelCostOfTravel
public void setUnitFuelCostOfTravel(double unitFuelCostOfTravel) - Specified by:
setUnitFuelCostOfTravel
in interfaceVesselType
-
getUnitFuelCostOfTravel
public double getUnitFuelCostOfTravel()- Specified by:
getUnitFuelCostOfTravel
in interfaceVesselType
-
setComment
- Specified by:
setComment
in interfaceVesselType
-
getComment
- Specified by:
getComment
in interfaceVesselType
-
addTripType
- Specified by:
addTripType
in interfaceVesselType
-
addAllTripType
- Specified by:
addAllTripType
in interfaceVesselType
-
setTripType
- Specified by:
setTripType
in interfaceVesselType
-
removeTripType
- Specified by:
removeTripType
in interfaceVesselType
-
clearTripType
public void clearTripType()- Specified by:
clearTripType
in interfaceVesselType
-
getTripType
- Specified by:
getTripType
in interfaceVesselType
-
getTripTypeByTopiaId
- Specified by:
getTripTypeByTopiaId
in interfaceVesselType
-
sizeTripType
public int sizeTripType()- Specified by:
sizeTripType
in interfaceVesselType
-
isTripTypeEmpty
public boolean isTripTypeEmpty()- Specified by:
isTripTypeEmpty
in interfaceVesselType
-
getAggregate
public List<org.nuiton.topia.persistence.TopiaEntity> getAggregate() throws org.nuiton.topia.TopiaException- Specified by:
getAggregate
in interfaceorg.nuiton.topia.persistence.TopiaEntity
- Overrides:
getAggregate
in classorg.nuiton.topia.persistence.TopiaEntityAbstract
- Throws:
org.nuiton.topia.TopiaException
-
getComposite
public List<org.nuiton.topia.persistence.TopiaEntity> getComposite() throws org.nuiton.topia.TopiaException- Specified by:
getComposite
in interfaceorg.nuiton.topia.persistence.TopiaEntity
- Overrides:
getComposite
in classorg.nuiton.topia.persistence.TopiaEntityAbstract
- Throws:
org.nuiton.topia.TopiaException
-
toString
-