Class PrimaryDataEntityVersionImplementation
- java.lang.Object
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityVersion
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.file.implementation.PrimaryDataEntityVersionImplementation
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PrimaryDataEntityVersion>
@Entity public class PrimaryDataEntityVersionImplementation extends PrimaryDataEntityVersion implements java.io.Serializable
Implementation ofPrimaryDataEntityVersion
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PrimaryDataEntityVersionImplementation()
Default constructor forPrimaryDataEntityVersionImplementation
is necessary for PojoInstantiator of HIBERNATE.
-
Method Summary
Modifier and Type Method Description void
addPublicReference(PublicReferenceImplementation publicReference)
java.util.Calendar
getCreationDate()
Getter for the fieldcreationDate
.boolean
getDeleted()
Getter forisDeleted
flag.PrimaryDataEntity
getEntity()
Getter for the fieldentity
.int
getId()
Getter for the fieldid
.java.util.List<PublicReferenceImplementation>
getInternReferences()
Getter for the fieldinternReferences
.MetaDataImplementation
getMetaData()
Getter for theMetaData
of thisPrimaryDataEntityVersion
.PrincipalImplementation
getOwner()
java.lang.String
getPrimaryEntityId()
Getter for the fieldprimaryEntityId
.java.util.List<PublicReference>
getPublicReferences()
long
getRevision()
Getter for the fieldrevision
.java.util.Calendar
getRevisionDate()
Getter for the fieldrevisionDate
.void
setAllReferencesPublic(javax.mail.internet.InternetAddress emailNotificationAddress, java.util.Calendar releaseDate)
Set allPublicReference
s of thisPrimaryDataEntityVersion
of thisPrimaryDataEntity
will be requested to set public.protected void
setCreationDate(java.util.Calendar creationDate)
Setter for the fieldcreationDate
.protected void
setDeleted(boolean isDeleted)
Setter for theisDeleted
flag.protected void
setId(int id)
Setter for the fieldid
.protected void
setInternReferences(java.util.List<PublicReferenceImplementation> internReferences)
Setter for the fieldinternReferences
.protected void
setMetaData(MetaDataImplementation metaData)
Setter for the fieldmetaData
.protected void
setOwner(PrincipalImplementation owner)
protected void
setPrimaryEntityId(java.lang.String primaryEntityId)
Setter for the fieldprimaryEntityId
.protected void
setRevision(long revision)
Setter for the fieldrevision
.protected void
setRevisionDate(java.util.Calendar revisionDate)
Setter for the fieldrevisionDate
.-
Methods inherited from class de.ipk_gatersleben.bit.bi.edal.primary_data.file.PrimaryDataEntityVersion
addPublicReference, compareTo, getName, getPublicReference, getURL, isDeleted, setAllReferencesPublic, setEntity, setMetaData, setOwner, setPublicReferences, toString
-
-
-
-
Constructor Detail
-
PrimaryDataEntityVersionImplementation
public PrimaryDataEntityVersionImplementation()
Default constructor forPrimaryDataEntityVersionImplementation
is necessary for PojoInstantiator of HIBERNATE.
-
-
Method Detail
-
addPublicReference
public void addPublicReference(PublicReferenceImplementation publicReference)
-
getCreationDate
public java.util.Calendar getCreationDate()
Getter for the fieldcreationDate
.- Overrides:
getCreationDate
in classPrimaryDataEntityVersion
- Returns:
- the creationDate.
-
getDeleted
public boolean getDeleted()
Getter forisDeleted
flag.- Returns:
- a boolean.
-
getEntity
public PrimaryDataEntity getEntity()
Getter for the fieldentity
.- Overrides:
getEntity
in classPrimaryDataEntityVersion
- Returns:
- entity.
-
getId
public int getId()
Getter for the fieldid
.- Returns:
- a int.
-
getInternReferences
public java.util.List<PublicReferenceImplementation> getInternReferences()
Getter for the fieldinternReferences
.- Returns:
- a
List
ofPublicReferenceImplementation
objects.
-
getMetaData
public MetaDataImplementation getMetaData()
Getter for theMetaData
of thisPrimaryDataEntityVersion
.- Overrides:
getMetaData
in classPrimaryDataEntityVersion
- Returns:
- the
MetaData
of thisPrimaryDataEntityVersion
.
-
getPrimaryEntityId
public java.lang.String getPrimaryEntityId()
Getter for the fieldprimaryEntityId
.- Returns:
- a
String
object.
-
getPublicReferences
public java.util.List<PublicReference> getPublicReferences()
- Overrides:
getPublicReferences
in classPrimaryDataEntityVersion
- Returns:
- read only
List
ofPublicReference
-
getRevision
public long getRevision()
Getter for the fieldrevision
.- Overrides:
getRevision
in classPrimaryDataEntityVersion
- Returns:
- the revision.
-
getRevisionDate
public java.util.Calendar getRevisionDate()
Getter for the fieldrevisionDate
.- Overrides:
getRevisionDate
in classPrimaryDataEntityVersion
- Returns:
- revisionDate.
-
setAllReferencesPublic
public void setAllReferencesPublic(javax.mail.internet.InternetAddress emailNotificationAddress, java.util.Calendar releaseDate) throws PublicReferenceException
Set allPublicReference
s of thisPrimaryDataEntityVersion
of thisPrimaryDataEntity
will be requested to set public.- Overrides:
setAllReferencesPublic
in classPrimaryDataEntityVersion
- Parameters:
emailNotificationAddress
- the eMail address of the requesting user.releaseDate
- the release date for thePublicReference
s.- Throws:
PublicReferenceException
- if unable to request thePublicReference
to set public.
-
setCreationDate
protected void setCreationDate(java.util.Calendar creationDate)
Setter for the fieldcreationDate
.- Overrides:
setCreationDate
in classPrimaryDataEntityVersion
- Parameters:
creationDate
- the creationDate to set.
-
setDeleted
protected void setDeleted(boolean isDeleted)
Setter for theisDeleted
flag.- Overrides:
setDeleted
in classPrimaryDataEntityVersion
- Parameters:
isDeleted
- the isDeleted to set.
-
setId
protected void setId(int id)
Setter for the fieldid
.- Parameters:
id
- a int.
-
setInternReferences
protected void setInternReferences(java.util.List<PublicReferenceImplementation> internReferences)
Setter for the fieldinternReferences
.- Parameters:
internReferences
- aList
ofPublicReferenceImplementation
objects.
-
setMetaData
protected void setMetaData(MetaDataImplementation metaData)
Setter for the fieldmetaData
.- Parameters:
metaData
- aMetaDataImplementation
object.
-
setPrimaryEntityId
protected void setPrimaryEntityId(java.lang.String primaryEntityId)
Setter for the fieldprimaryEntityId
.- Parameters:
primaryEntityId
- aString
object.
-
setRevision
protected void setRevision(long revision)
Setter for the fieldrevision
.- Overrides:
setRevision
in classPrimaryDataEntityVersion
- Parameters:
revision
- the revision to set
-
setRevisionDate
protected void setRevisionDate(java.util.Calendar revisionDate)
Setter for the fieldrevisionDate
.- Overrides:
setRevisionDate
in classPrimaryDataEntityVersion
- Parameters:
revisionDate
- the revisionDate to set.
-
getOwner
public PrincipalImplementation getOwner()
- Overrides:
getOwner
in classPrimaryDataEntityVersion
- Returns:
- the owner
-
setOwner
protected void setOwner(PrincipalImplementation owner)
- Parameters:
owner
- the owner to set
-
-