|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SourceProvider
A provider of astronomical sources.
CVS Info:
$Revision: 2313 $ |
$Date: 2009-05-20 15:00:52 -0600 (Wed, 20 May 2009) $ |
$Author: btruitt $ |
Method Summary | |
---|---|
Source |
findSourceById(long id)
Returns the Source with the given id , if any. |
List<Source> |
findSourceByName(String name)
Returns the Source (s) with the given name , if any. |
SourceLookupTable |
findSourceTableById(long id)
Returns the SourceLookupTable with the given id , if any. |
List<SourceLookupTable> |
findSourceTableByName(String name)
Returns the SourceLookupTable (s) with the given name ,
if any. |
List<Source> |
getSources()
Returns a list of all sources held by this provider. |
List<Source> |
getSources(Filter<Source> filter)
Returns a list of sources held this provider that can pass through filter . |
List<SourceLookupTable> |
getSourceTables()
Returns a list of all source lookup tables held by this provider. |
Method Detail |
---|
Source findSourceById(long id) throws RepositoryException
Source
with the given id
, if any.
If this provider holds no Source
with an ID of id
,
null is returned.
id
- the identifier (primary key) for a Source
in this
repository.
Source
with the given id
, or
null, if this provider holds no such Source
.
RepositoryException
- if anything goes wrong while trying to fetch
sources from this provider.List<Source> findSourceByName(String name) throws RepositoryException
Source
(s) with the given name
, if any.
Ideally, the returned list will contain only one source. However,
since the name is not usually used as a primary key to a source, it
is possible that the returned list may contain more than one source.
If this provider holds no Source
with a name of name
,
the returned list will be empty.
name
- the name of a Source
requested from this provider.
Source
s with the given name
, or
null, if this provider holds no such Source
.
RepositoryException
- if anything goes wrong while trying to fetch
sources from this provider.List<Source> getSources(Filter<Source> filter) throws RepositoryException
filter
. If filter
is null, it will be treated
as a wide-open filter, allowing all sources to pass.
filter
- the filter through which a source must pass in order
to be included in the returned set.
filter
.
RepositoryException
- if anything goes wrong while trying to fetch
sources from this provider.List<Source> getSources() throws RepositoryException
RepositoryException
- if anything goes wrong while trying to fetch
sources from this provider.SourceLookupTable findSourceTableById(long id) throws RepositoryException
SourceLookupTable
with the given id
, if any.
If this provider holds no SourceLookupTable
with an ID of
id
, null is returned.
id
- the identifier (primary key) for a SourceLookupTable
in
this repository.
SourceLookupTable
with the given id
, or
null, if this provider holds no such
SourceLookupTable
.
RepositoryException
- if anything goes wrong while trying to fetch
source tables from this provider.List<SourceLookupTable> findSourceTableByName(String name) throws RepositoryException
SourceLookupTable
(s) with the given name
,
if any.
Ideally, the returned list will contain only one table. However,
since the name is not usually used as a primary key to a table, it
is possible that the returned list may contain more than one table.
If this provider holds no SourceLookupTable
with a name of
name
, the returned list will be empty.
name
- the name of a SourceLookupTable
requested from
this provider.
SourceLookupTable
s with the given name
,
or null, if this provider holds no such table.
RepositoryException
- if anything goes wrong while trying to fetch
tables from this provider.List<SourceLookupTable> getSourceTables() throws RepositoryException
RepositoryException
- if anything goes wrong while trying to fetch
tables from this provider.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |