Package edu.ucsb.nceas.metacat.index
Class IndexEventDAO
java.lang.Object
edu.ucsb.nceas.metacat.index.IndexEventDAO
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(edu.ucsb.nceas.metacat.common.index.event.IndexEvent event) List<edu.ucsb.nceas.metacat.common.index.event.IndexEvent>
Get the list of the index events which have the specified event action and are younger than the specified oldest age.edu.ucsb.nceas.metacat.common.index.event.IndexEvent
get
(org.dataone.service.types.v1.Identifier identifier) Set<org.dataone.service.types.v1.Identifier>
static IndexEventDAO
void
remove
(org.dataone.service.types.v1.Identifier identifier)
-
Method Details
-
getInstance
-
add
- Throws:
SQLException
-
remove
- Throws:
SQLException
-
get
public edu.ucsb.nceas.metacat.common.index.event.IndexEvent get(org.dataone.service.types.v1.Identifier identifier) throws SQLException - Throws:
SQLException
-
getAllIdentifiers
- Throws:
SQLException
-
get
public List<edu.ucsb.nceas.metacat.common.index.event.IndexEvent> get(String eventAction, Date oldestAge) throws SQLException Get the list of the index events which have the specified event action and are younger than the specified oldest age. 2023-02-01 is younger than 2000-01-01.- Parameters:
eventAction
- the action which the events should containoldestAge
- the oldest age which the events can be. If it is null, we don't have the age limit.- Returns:
- list of the index events contains the action
- Throws:
SQLException
-