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 boolean
equals(Object o)
@Size(min=1) String
getCode()
Date
getCreated()
String
getCreatedBy()
@NotNull UUID
getDatasetKey()
@Size(min=1) String
getIdentifier()
@Null(groups=PrePersist.class) @NotNull(groups=PostPersist.class) Integer
getKey()
Unique identifier, assigned by the persistence store.@Size(min=1) String
getParentCode()
int
hashCode()
boolean
lenientEquals(OccurrenceMapping other)
Leniently tests if the objects are the same.void
setCode(String code)
void
setCreated(Date created)
void
setCreatedBy(String createdBy)
void
setDatasetKey(UUID datasetKey)
void
setIdentifier(String identifier)
void
setKey(Integer key)
void
setParentCode(String parentCode)
String
toString()
-
-
-
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:LenientEquals
Leniently tests if the objects are the same. Implementors should declare what this means in practice.- Specified by:
lenientEquals
in interfaceLenientEquals<OccurrenceMapping>
- Parameters:
other
- To compare against- Returns:
- true if...
-
-