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:
-
Constructor Summary
ConstructorsConstructorDescriptionOccurrenceMapping(String code, String identifier, UUID datasetKey) OccurrenceMapping(String code, String identifier, UUID datasetKey, String parentCode) -
Method Summary
Modifier and TypeMethodDescriptionboolean@Size(min=1) StringgetCode()@NotNull UUID@Size(min=1) String@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) IntegergetKey()Unique identifier, assigned by the persistence store.@Size(min=1) StringinthashCode()booleanlenientEquals(OccurrenceMapping other) Leniently tests if the objects are the same.voidvoidsetCreated(Date created) voidsetCreatedBy(String createdBy) voidsetDatasetKey(UUID datasetKey) voidsetIdentifier(String identifier) voidvoidsetParentCode(String parentCode) toString()
-
Constructor Details
-
OccurrenceMapping
public OccurrenceMapping() -
OccurrenceMapping
-
OccurrenceMapping
-
-
Method Details
-
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. -
setKey
-
getCode
-
setCode
-
getParentCode
-
setParentCode
-
getIdentifier
-
setIdentifier
-
getDatasetKey
-
setDatasetKey
-
getCreatedBy
-
setCreatedBy
-
getCreated
-
setCreated
-
equals
-
hashCode
-
toString
-
lenientEquals
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...
-