@Entity @Configurable public class Collection extends IdentifiableMediaEntity<IIdentifiableEntityCacheStrategy<Collection>> implements java.lang.Cloneable
cacheStrategy, NOT_PROTECTED, PROTECTED, protectedTitleCache, titleCache
annotations, markers
CLOB_LENGTH, uuid
Modifier | Constructor and Description |
---|---|
protected |
Collection()
Constructor
|
Modifier and Type | Method and Description |
---|---|
Collection |
clone()
Clones this collection.
|
java.lang.String |
getCode()
The code for this collection.
|
java.lang.String |
getCodeStandard()
The standard used for the given
collection code |
Institution |
getInstitute()
The
institution this collection belongs to. |
java.lang.String |
getName()
The name of this collection
|
Collection |
getSuperCollection()
The collection
this collection is part of. |
java.lang.String |
getTownOrLocation()
The town or location where this collection is to be found.
|
static Collection |
NewInstance()
Factory method
|
void |
setCode(java.lang.String code) |
void |
setCodeStandard(java.lang.String codeStandard) |
void |
setInstitute(Institution institute) |
void |
setName(java.lang.String name) |
void |
setSuperCollection(Collection superCollection) |
void |
setTownOrLocation(java.lang.String townOrLocation) |
java.lang.String |
toString()
Overrides
Object.toString() . |
addMedia, getMedia, removeMedia
addCredit, addCredit, addExtension, addExtension, addIdentifier, addIdentifier, addIdentifier, addRights, addSource, addSources, createNewSource, generateTitle, getCacheStrategy, getCredits, getCredits, getData, getExtensions, getExtensions, getExtensions, getExtensionsConcat, getExtensionsConcat, getFilteredExtensions, getIdentifiers, getIdentifiers, getIdentifiers, getLsid, getRights, getTitleCache, getTruncatedCache, hasEmptyTitleCache, hasExtension, hasExtension, initListener, isProtectedTitleCache, removeCredit, removeCredit, removeExtension, removeIdentifier, removeIdentifier, removeRights, replaceCredit, replaceIdentifier, resetTitleCache, setCacheStrategy, setLsid, setProtectedTitleCache, setTitleCache, setTitleCache, updateCaches, updateCaches
addAggregationSource, addImportSource, addPrimaryTaxonomicSource, addPrimaryTaxonomicSource, addSource, addSource, getSources, removeSource, removeSources
addAnnotation, addMarker, addMarker, getAnnotations, getAnnotations, getMarkers, getMarkers, hasMarker, hasMarker, markerValue, removeAnnotation, removeMarker, removeMarker, setAnnotations
cloneLanguageString, equals, getUpdated, getUpdatedBy, setUpdated, setUpdatedBy
addPropertyChangeListener, addPropertyChangeListener, addToSetWithChangeEvent, deproxy, deproxy, fireOnCreateEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCreated, getCreatedBy, getId, getUserFriendlyDescription, getUserFriendlyFieldName, getUserFriendlyTypeName, getUuid, hashCode, hasListeners, instanceToString, invokeSetMethod, invokeSetMethodWithNull, isBlank, isInstanceOf, isNotBlank, isPersited, removeFromSetWithChangeEvent, removePropertyChangeListener, removePropertyChangeListener, replaceInList, setCreated, setCreatedBy, setId, setNewEntityListener, setUuid
finalize, getClass, notify, notifyAll, wait, wait, wait
removeSources
addAggregationSource, addImportSource, addPrimaryTaxonomicSource, addPrimaryTaxonomicSource, addSource, addSource, getSources, removeSource
addAnnotation, addMarker, getAnnotations, getMarkers, getMarkers, hasMarker, hasMarker, markerValue, removeAnnotation, removeMarker, removeMarker
getUpdated, getUpdatedBy, setUpdated, setUpdatedBy
getCreated, getCreatedBy, getId, getUuid, isInstanceOf, isPersited, setCreated, setCreatedBy, setId, setUuid
public static Collection NewInstance()
public Institution getInstitute()
institution
this collection belongs to.getSuperCollection()
public void setInstitute(Institution institute)
institute
- institutegetInstitute()
public java.lang.String getCode()
code standard
.
The code is NOT the #getName()name
of the collection.getCodeStandard()
,
getName()
public void setCode(java.lang.String code)
code
- the codegetCode()
public java.lang.String getCodeStandard()
collection code
public void setCodeStandard(java.lang.String codeStandard)
codeStandard
- codeStandardgetCodeStandard()
,
getCode()
public java.lang.String getName()
public void setName(java.lang.String name)
name
- namegetName()
public java.lang.String getTownOrLocation()
public void setTownOrLocation(java.lang.String townOrLocation)
townOrLocation
- townOrLocationgetTownOrLocation()
public Collection getSuperCollection()
this
collection is part of.public void setSuperCollection(Collection superCollection)
superCollection
- getSuperCollection()
public Collection clone()
IdentifiableMediaEntity
.clone
in class IdentifiableMediaEntity<IIdentifiableEntityCacheStrategy<Collection>>
IdentifiableMediaEntity.clone()
,
Object.clone()
public java.lang.String toString()
CdmBase
Object.toString()
.
This returns an String that identifies the object well without being necessarily unique. Internally the method is delegating the
call to {link CdmBase.instanceToString()
.Note: If overriding this method's javadoc always copy or link the above requirement. If not overwritten by a subclass method returns the class, id and uuid as a string for any CDM object.
For example: Taxon#13<b5938a98-c1de-4dda-b040-d5cc5bfb3bc0>
toString
in interface IIdentifiableEntity
toString
in class IdentifiableEntity<IIdentifiableEntityCacheStrategy<Collection>>
Object.toString()
Copyright © 2007-2020 EDIT. All Rights Reserved.