Package ubic.gemma.model
Class IdentifiableValueObject<O extends Identifiable>
- java.lang.Object
-
- ubic.gemma.model.IdentifiableValueObject<O>
-
- All Implemented Interfaces:
Serializable
,Identifiable
- Direct Known Subclasses:
AbstractCuratableValueObject
,AnalysisResultSetValueObject
,AnalysisResultValueObject
,AnalysisValueObject
,AnnotationValueObject
,AuditEventValueObject
,BibliographicReferenceValueObject
,BioAssayDimensionValueObject
,BioAssayValueObject
,BioMaterialValueObject
,BioSequenceValueObject
,BlacklistedValueObject
,BlatResultValueObject
,CharacteristicBasicValueObject
,CharacteristicValueObject
,CompositeSequenceValueObject
,ContrastResultValueObject
,DatabaseEntryValueObject
,DataVectorValueObject
,EvidenceValueObject
,ExperimentalFactorValueObject
,ExpressionExperimentSetValueObject
,ExternalDatabaseValueObject
,FactorValueBasicValueObject
,FactorValueValueObject
,GeeqValueObject
,GeneProductValueObject
,GeneSetValueObject
,GeneValueObject
,MeasurementValueObject
,PhysicalLocationValueObject
,QuantitationTypeValueObject
,TaxonValueObject
@ValueObject public abstract class IdentifiableValueObject<O extends Identifiable> extends Object implements Identifiable, Serializable
Base implementations for value objects representing persistent objectsCreated by tesarst on 31/05/17.
- Author:
- tesarst, poirigui
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
IdentifiableValueObject()
Default empty constructor for bean-style initialization.protected
IdentifiableValueObject(Long id)
Constructor that sets the common property of all identifiable objects, the ID.protected
IdentifiableValueObject(O identifiable)
Constructor for a given entity.protected
IdentifiableValueObject(IdentifiableValueObject<O> vo)
Copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
getId()
void
setId(Long id)
Only used by the spring java-beans in jsp files.
-
-
-
Field Detail
-
id
protected Long id
-
-
Constructor Detail
-
IdentifiableValueObject
protected IdentifiableValueObject()
Default empty constructor for bean-style initialization.
-
IdentifiableValueObject
protected IdentifiableValueObject(Long id)
Constructor that sets the common property of all identifiable objects, the ID.- Parameters:
id
- the id of the original object.
-
IdentifiableValueObject
protected IdentifiableValueObject(O identifiable)
Constructor for a given entity.
-
IdentifiableValueObject
protected IdentifiableValueObject(IdentifiableValueObject<O> vo)
Copy constructor.
-
-
Method Detail
-
getId
public final Long getId()
- Specified by:
getId
in interfaceIdentifiable
-
setId
public final void setId(Long id)
Only used by the spring java-beans in jsp files. Should be called immediately after the no-arg constructor.- Parameters:
id
- the id of this object.
-
-