Package org.gbif.api.model.collections
Class OccurrenceMapping
- java.lang.Object
-
- org.gbif.api.model.collections.OccurrenceMapping
-
- All Implemented Interfaces:
Serializable,LenientEquals<OccurrenceMapping>
public class OccurrenceMapping extends Object implements Serializable, LenientEquals<OccurrenceMapping>
Models the mapping of a GRSciColl institution or collection to an occurrence record.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OccurrenceMapping()OccurrenceMapping(String code, String identifier, UUID datasetKey)OccurrenceMapping(String code, String identifier, UUID datasetKey, String parentCode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)@Size(min=1) StringgetCode()DategetCreated()StringgetCreatedBy()@NotNull UUIDgetDatasetKey()@Size(min=1) StringgetIdentifier()@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) IntegergetKey()Unique identifier, assigned by the persistence store.@Size(min=1) StringgetParentCode()inthashCode()booleanlenientEquals(OccurrenceMapping other)Leniently tests if the objects are the same.voidsetCode(String code)voidsetCreated(Date created)voidsetCreatedBy(String createdBy)voidsetDatasetKey(UUID datasetKey)voidsetIdentifier(String identifier)voidsetKey(Integer key)voidsetParentCode(String parentCode)StringtoString()
-
-
-
Constructor Detail
-
OccurrenceMapping
public OccurrenceMapping()
-
OccurrenceMapping
public OccurrenceMapping(String code, String identifier, UUID datasetKey)
-
OccurrenceMapping
public OccurrenceMapping(String code, String identifier, UUID datasetKey, String parentCode)
-
-
Method Detail
-
getKey
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) public @Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Integer getKey()
Unique identifier, assigned by the persistence store.
-
getParentCode
@Nullable @Size(min=1) public @Size(min=1) String getParentCode()
-
setParentCode
public void setParentCode(String parentCode)
-
getIdentifier
@Nullable @Size(min=1) public @Size(min=1) String getIdentifier()
-
setIdentifier
public void setIdentifier(String identifier)
-
getDatasetKey
@NotNull public @NotNull UUID getDatasetKey()
-
setDatasetKey
public void setDatasetKey(UUID datasetKey)
-
getCreatedBy
public String getCreatedBy()
-
setCreatedBy
public void setCreatedBy(String createdBy)
-
getCreated
public Date getCreated()
-
setCreated
public void setCreated(Date created)
-
lenientEquals
public boolean lenientEquals(OccurrenceMapping other)
Description copied from interface:LenientEqualsLeniently tests if the objects are the same. Implementors should declare what this means in practice.- Specified by:
lenientEqualsin interfaceLenientEquals<OccurrenceMapping>- Parameters:
other- To compare against- Returns:
- true if...
-
-