Package org.goplanit.service.routed
Class RoutedTripImpl
- java.lang.Object
-
- org.goplanit.utils.id.IdAbleImpl
-
- org.goplanit.utils.id.ExternalIdAbleImpl
-
- org.goplanit.service.routed.RoutedTripImpl
-
- All Implemented Interfaces:
Cloneable
,Comparable<IdAble>
,RoutedTrip
,ExternalIdAble
,IdAble
,ManagedId
- Direct Known Subclasses:
RoutedTripFrequencyImpl
,RoutedTripScheduleImpl
public abstract class RoutedTripImpl extends ExternalIdAbleImpl implements RoutedTrip
Implementation of a RoutedTrip interface. Acts as a base class for derived implementations that are not abstract- Author:
- markr
-
-
Field Summary
-
Fields inherited from interface org.goplanit.service.routed.RoutedTrip
ROUTED_TRIP_ID_CLASS
-
-
Constructor Summary
Constructors Constructor Description RoutedTripImpl(RoutedTripImpl routedTripImpl)
Copy constructorRoutedTripImpl(IdGroupingToken tokenId)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract RoutedTripImpl
clone()
Create a shallow copy of this entityprotected static long
generateId(IdGroupingToken tokenId)
Generate id for instances of this class based on the token and class identifierlong
recreateManagedIds(IdGroupingToken tokenId)
recreate the internal id(s) and set them including the Idable id-
Methods inherited from class org.goplanit.utils.id.ExternalIdAbleImpl
getExternalId, getXmlId, setExternalId, setXmlId
-
Methods inherited from class org.goplanit.utils.id.IdAbleImpl
equals, generateAndSetId, generateId, getId, hashCode, setId
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.goplanit.utils.id.ExternalIdAble
getExternalId, getXmlId, hasExternalId, hasXmlId, setExternalId, setXmlId
-
Methods inherited from interface org.goplanit.utils.id.IdAble
compareTo, getId, idEquals, idHashCode
-
Methods inherited from interface org.goplanit.utils.id.ManagedId
resetChildManagedIdEntities
-
Methods inherited from interface org.goplanit.service.routed.RoutedTrip
getIdClass
-
-
-
-
Constructor Detail
-
RoutedTripImpl
public RoutedTripImpl(IdGroupingToken tokenId)
Constructor- Parameters:
tokenId
- to use for id generation
-
RoutedTripImpl
public RoutedTripImpl(RoutedTripImpl routedTripImpl)
Copy constructor- Parameters:
routedTripImpl
- to copy
-
-
Method Detail
-
generateId
protected static long generateId(IdGroupingToken tokenId)
Generate id for instances of this class based on the token and class identifier- Parameters:
tokenId
- to use- Returns:
- generated id
-
recreateManagedIds
public long recreateManagedIds(IdGroupingToken tokenId)
recreate the internal id(s) and set them including the Idable id- Specified by:
recreateManagedIds
in interfaceManagedId
- Parameters:
tokenId
- to use- Returns:
- the updated internal id
-
clone
public abstract RoutedTripImpl clone()
Create a shallow copy of this entity- Specified by:
clone
in interfaceIdAble
- Overrides:
clone
in classExternalIdAbleImpl
- Returns:
- shallow copy of entity
-
-