org.lexevs.dao.database.hibernate.registry
Class HibernateRegistryDao

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by org.lexevs.dao.database.hibernate.registry.HibernateRegistryDao
All Implemented Interfaces:
RegistryDao, org.springframework.beans.factory.InitializingBean

public class HibernateRegistryDao
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements RegistryDao

The Class HibernateRegistryDao.

Author:
Kevin Peterson

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
HibernateRegistryDao()
           
 
Method Summary
 void deleteRegistryEntry(RegistryEntry entry)
          Delete registry entry.
 java.util.List<RegistryEntry> getAllRegistryEntries()
          Gets the all registry entries.
 java.util.List<RegistryEntry> getAllRegistryEntriesOfType(Registry.ResourceType type)
          Gets the all registry entries of type.
 java.util.List<RegistryEntry> getAllRegistryEntriesOfTypeAndURI(Registry.ResourceType type, java.lang.String uri)
          Gets the all registry entries of type and URI.
 java.util.List<RegistryEntry> getAllRegistryEntriesOfTypeURIAndVersion(Registry.ResourceType type, java.lang.String uri, java.lang.String version)
          Gets the all registry entries of type, URI and version.
 java.util.List<RegistryEntry> getAllRegistryEntriesOfUriAndTypes(java.lang.String uri, Registry.ResourceType... types)
           
 java.lang.String getDefaultCodingSchemePrefix()
          Gets the default coding scheme prefix.
 java.lang.String getDefaultHistoryPrefix()
          Gets the default history prefix.
 java.util.Date getLastUpdateTime()
          Gets the last update time.
 java.lang.String getLastUsedDbIdentifier()
          Gets the last used db identifier.
 java.lang.String getLastUsedHistoryIdentifier()
          Gets the last used history identifier.
 java.util.List<RegistryEntry> getRegistryEntriesForUri(java.lang.String uri)
          Gets the registry entries for uri.
 RegistryEntry getRegistryEntryForUriAndVersion(java.lang.String uri, java.lang.String version)
          Gets the registry entry for uri and version.
protected  Registry getRegistryMetadataEntry()
          Gets the registry metadata entry.
 void initRegistryMetadata()
          Inits the registry metadata.
 void insertRegistryEntry(RegistryEntry entry)
          Insert registry entry.
 void setDefaultCodingSchemePrefix(java.lang.String defaultCodingSchemePrefix)
          Sets the default coding scheme prefix.
 void setDefaultHistoryPrefix(java.lang.String defaultHistoryPrefix)
          Sets the default history prefix.
 void updateLastUpdateTime(java.util.Date lastUpdateTime)
          Update last update time.
 void updateLastUsedDbIdentifier(java.lang.String databaseIdentifier)
          Update last used db identifier.
 void updateRegistryEntry(RegistryEntry entry)
          Update registry entry.
 
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateRegistryDao

public HibernateRegistryDao()
Method Detail

updateLastUpdateTime

public void updateLastUpdateTime(java.util.Date lastUpdateTime)
Description copied from interface: RegistryDao
Update last update time.

Specified by:
updateLastUpdateTime in interface RegistryDao
Parameters:
lastUpdateTime - the last update time

getLastUpdateTime

public java.util.Date getLastUpdateTime()
Description copied from interface: RegistryDao
Gets the last update time.

Specified by:
getLastUpdateTime in interface RegistryDao
Returns:
the last update time

getRegistryMetadataEntry

protected Registry getRegistryMetadataEntry()
Gets the registry metadata entry.

Returns:
the registry metadata entry

deleteRegistryEntry

public void deleteRegistryEntry(RegistryEntry entry)
Description copied from interface: RegistryDao
Delete registry entry.

Specified by:
deleteRegistryEntry in interface RegistryDao
Parameters:
entry - the entry

getLastUsedDbIdentifier

public java.lang.String getLastUsedDbIdentifier()
Description copied from interface: RegistryDao
Gets the last used db identifier.

Specified by:
getLastUsedDbIdentifier in interface RegistryDao
Returns:
the last used db identifier

getLastUsedHistoryIdentifier

public java.lang.String getLastUsedHistoryIdentifier()
Description copied from interface: RegistryDao
Gets the last used history identifier.

Specified by:
getLastUsedHistoryIdentifier in interface RegistryDao
Returns:
the last used history identifier

insertRegistryEntry

public void insertRegistryEntry(RegistryEntry entry)
Description copied from interface: RegistryDao
Insert registry entry.

Specified by:
insertRegistryEntry in interface RegistryDao
Parameters:
entry - the entry

getRegistryEntryForUriAndVersion

public RegistryEntry getRegistryEntryForUriAndVersion(java.lang.String uri,
                                                      java.lang.String version)
                                               throws LBParameterException
Description copied from interface: RegistryDao
Gets the registry entry for uri and version.

Specified by:
getRegistryEntryForUriAndVersion in interface RegistryDao
Parameters:
uri - the uri
version - the version
Returns:
the registry entry for uri and version
Throws:
LBParameterException - the LB parameter exception

getAllRegistryEntriesOfUriAndTypes

public java.util.List<RegistryEntry> getAllRegistryEntriesOfUriAndTypes(java.lang.String uri,
                                                                        Registry.ResourceType... types)
Specified by:
getAllRegistryEntriesOfUriAndTypes in interface RegistryDao

updateRegistryEntry

public void updateRegistryEntry(RegistryEntry entry)
Description copied from interface: RegistryDao
Update registry entry.

Specified by:
updateRegistryEntry in interface RegistryDao
Parameters:
entry - the entry

updateLastUsedDbIdentifier

public void updateLastUsedDbIdentifier(java.lang.String databaseIdentifier)
Description copied from interface: RegistryDao
Update last used db identifier.

Specified by:
updateLastUsedDbIdentifier in interface RegistryDao
Parameters:
databaseIdentifier - the database identifier

getAllRegistryEntriesOfType

public java.util.List<RegistryEntry> getAllRegistryEntriesOfType(Registry.ResourceType type)
Description copied from interface: RegistryDao
Gets the all registry entries of type.

Specified by:
getAllRegistryEntriesOfType in interface RegistryDao
Parameters:
type - the type
Returns:
the all registry entries of type

getAllRegistryEntriesOfTypeAndURI

public java.util.List<RegistryEntry> getAllRegistryEntriesOfTypeAndURI(Registry.ResourceType type,
                                                                       java.lang.String uri)
Description copied from interface: RegistryDao
Gets the all registry entries of type and URI.

Specified by:
getAllRegistryEntriesOfTypeAndURI in interface RegistryDao
Parameters:
type - the resource type
Returns:
the all registry entries of type and URI

getAllRegistryEntriesOfTypeURIAndVersion

public java.util.List<RegistryEntry> getAllRegistryEntriesOfTypeURIAndVersion(Registry.ResourceType type,
                                                                              java.lang.String uri,
                                                                              java.lang.String version)
Description copied from interface: RegistryDao
Gets the all registry entries of type, URI and version.

Specified by:
getAllRegistryEntriesOfTypeURIAndVersion in interface RegistryDao
Parameters:
type - the resource type
version - of resource
Returns:
the all registry entries of type and URI

getAllRegistryEntries

public java.util.List<RegistryEntry> getAllRegistryEntries()
Description copied from interface: RegistryDao
Gets the all registry entries.

Specified by:
getAllRegistryEntries in interface RegistryDao
Returns:
the all registry entries

getRegistryEntriesForUri

public java.util.List<RegistryEntry> getRegistryEntriesForUri(java.lang.String uri)
Description copied from interface: RegistryDao
Gets the registry entries for uri.

Specified by:
getRegistryEntriesForUri in interface RegistryDao
Parameters:
uri - the uri
Returns:
the registry entries for uri

initRegistryMetadata

public void initRegistryMetadata()
Description copied from interface: RegistryDao
Inits the registry metadata.

Specified by:
initRegistryMetadata in interface RegistryDao

getDefaultHistoryPrefix

public java.lang.String getDefaultHistoryPrefix()
Gets the default history prefix.

Returns:
the default history prefix

setDefaultHistoryPrefix

public void setDefaultHistoryPrefix(java.lang.String defaultHistoryPrefix)
Sets the default history prefix.

Parameters:
defaultHistoryPrefix - the new default history prefix

getDefaultCodingSchemePrefix

public java.lang.String getDefaultCodingSchemePrefix()
Gets the default coding scheme prefix.

Returns:
the default coding scheme prefix

setDefaultCodingSchemePrefix

public void setDefaultCodingSchemePrefix(java.lang.String defaultCodingSchemePrefix)
Sets the default coding scheme prefix.

Parameters:
defaultCodingSchemePrefix - the new default coding scheme prefix

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.