org.mycore.backend.hibernate
Class MCRHIBResumptionTokenStore

java.lang.Object
  extended by org.mycore.backend.hibernate.MCRHIBResumptionTokenStore
All Implemented Interfaces:
MCROAIResumptionTokenStore

public class MCRHIBResumptionTokenStore
extends Object
implements MCROAIResumptionTokenStore

This class implements the MCRHIBResumptionTokenStore


Field Summary
(package private) static MCRConfiguration config
           
(package private) static Logger logger
           
 
Constructor Summary
MCRHIBResumptionTokenStore()
          The constructor for the class MCRSQLClassificationStore.
 
Method Summary
 void createResumptionToken(String id, String prefix, String instance, List<?> resultList)
          The method create a new MCRResumptionToken in the datastore.
 void deleteOutdatedTokens()
           
 String getPrefix(String token)
           
 List<String[]> getResumptionTokenHits(String resumptionTokenID, int requestedSize, int maxResults)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

static Logger logger

config

static MCRConfiguration config
Constructor Detail

MCRHIBResumptionTokenStore

public MCRHIBResumptionTokenStore()
The constructor for the class MCRSQLClassificationStore. It reads the classification configuration and checks the table names.

Method Detail

deleteOutdatedTokens

public void deleteOutdatedTokens()
Specified by:
deleteOutdatedTokens in interface MCROAIResumptionTokenStore

getResumptionTokenHits

public final List<String[]> getResumptionTokenHits(String resumptionTokenID,
                                                   int requestedSize,
                                                   int maxResults)
Specified by:
getResumptionTokenHits in interface MCROAIResumptionTokenStore

getPrefix

public String getPrefix(String token)
Specified by:
getPrefix in interface MCROAIResumptionTokenStore

createResumptionToken

public final void createResumptionToken(String id,
                                        String prefix,
                                        String instance,
                                        List<?> resultList)
The method create a new MCRResumptionToken in the datastore.

Specified by:
createResumptionToken in interface MCROAIResumptionTokenStore
Parameters:
id: - the id of an ResumptionToken
prefix: - prefix of resumptionToken type, fg. "set"
instance: - String of OAI-instance
resultList: - List delivered of OAIQueryService for the new resumptionToken