edu.nrao.sss.dao.source
Class HibernateSourceDao
java.lang.Object
edu.nrao.sss.dao.HibernateDao
edu.nrao.sss.dao.source.HibernateSourceDao
- All Implemented Interfaces:
- SourceCatalogProvider, SourceProvider
public class HibernateSourceDao
- extends HibernateDao
- implements SourceProvider, SourceCatalogProvider
A Hibernate
data access object for Source
s
and SourceCatalog
s.
Version Info:
$Revision: 2312 $ |
$Date: 2009-05-20 15:00:44 -0600 (Wed, 20 May 2009) $ |
$Author: btruitt $ |
- Since:
- 2006-06-29
Methods inherited from class edu.nrao.sss.dao.HibernateDao |
addDaoListener, beginTransaction, closeSession, commitTransaction, destroyAllFactories, destroyFactory, fireRollbackEvent, getConfigurationFileName, getInterceptor, getSession, getSessionFactory, removeDaoListeners, rollbackTransaction, setConfigurationFileName, setInterceptor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HibernateSourceDao
public HibernateSourceDao()
- empty no-arg constructor
- See Also:
HibernateDao
HibernateSourceDao
public HibernateSourceDao(String cfg,
org.hibernate.Interceptor i)
- See Also:
HibernateDao
findSourceById
public Source findSourceById(long id)
throws RepositoryException
- Specified by:
findSourceById
in interface SourceProvider
- Throws:
RepositoryException
findSourceByName
public List<Source> findSourceByName(String name)
throws RepositoryException
- Specified by:
findSourceByName
in interface SourceProvider
- Throws:
RepositoryException
getSources
public List<Source> getSources()
throws RepositoryException
- Specified by:
getSources
in interface SourceProvider
- Throws:
RepositoryException
findSourceTableById
public SourceLookupTable findSourceTableById(long id)
throws RepositoryException
- Specified by:
findSourceTableById
in interface SourceProvider
- Throws:
RepositoryException
findSourceTableByName
public List<SourceLookupTable> findSourceTableByName(String name)
throws RepositoryException
- Specified by:
findSourceTableByName
in interface SourceProvider
- Throws:
RepositoryException
getSourceTables
public List<SourceLookupTable> getSourceTables()
throws RepositoryException
- Specified by:
getSourceTables
in interface SourceProvider
- Throws:
RepositoryException
findGroupById
public SourceGroup findGroupById(long id)
throws RepositoryException
- Returns:
- All the Sources that belong to GroupId
id
- Throws:
RepositoryException
findCatalogById
public SourceCatalog findCatalogById(long id)
throws RepositoryException
- Specified by:
findCatalogById
in interface SourceCatalogProvider
- Throws:
RepositoryException
findCatalogByName
public List<SourceCatalog> findCatalogByName(String name)
throws RepositoryException
- Specified by:
findCatalogByName
in interface SourceCatalogProvider
- Throws:
RepositoryException
findCatalogsOwnedBy
public List<SourceCatalog> findCatalogsOwnedBy(long ownerId)
throws RepositoryException
- Specified by:
findCatalogsOwnedBy
in interface SourceCatalogProvider
- Throws:
RepositoryException
findPublicCatalogs
public List<SourceCatalog> findPublicCatalogs()
throws RepositoryException
- Specified by:
findPublicCatalogs
in interface SourceCatalogProvider
- Throws:
RepositoryException
getCatalogs
public List<SourceCatalog> getCatalogs()
throws RepositoryException
- Specified by:
getCatalogs
in interface SourceCatalogProvider
- Throws:
RepositoryException
save
public void save(Source source)
throws RepositoryException
- Throws:
RepositoryException
save
public void save(SourceCatalog catalog)
throws RepositoryException
- Throws:
RepositoryException
save
public void save(Set<Source> sources)
throws RepositoryException
- Throws:
RepositoryException
delete
public void delete(SourceCatalog catalog)
throws RepositoryException
- Throws:
RepositoryException
getSources
public List<Source> getSources(Filter<Source> filter)
throws RepositoryException
- Specified by:
getSources
in interface SourceProvider
- Throws:
RepositoryException
Copyright © 2009. All Rights Reserved.