public class DatabaseRegistry extends RegistryEventSupport implements Registry
Registry.KnownTags, Registry.ResourceType
Constructor and Description |
---|
DatabaseRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
activate(AbsoluteCodingSchemeVersionReference codingScheme)
Activate.
|
void |
addNewItem(RegistryEntry entry)
Adds the new item.
|
boolean |
containsCodingSchemeEntry(AbsoluteCodingSchemeVersionReference codingScheme)
Contains coding scheme entry.
|
boolean |
containsNonCodingSchemeEntry(java.lang.String uri)
Contains non coding scheme 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.
|
RegistryEntry |
getCodingSchemeEntry(AbsoluteCodingSchemeVersionReference codingScheme)
Gets the coding scheme entry.
|
java.util.List<RegistryEntry> |
getEntriesForUri(java.lang.String uri)
Gets the entries for uri.
|
java.util.Date |
getLastUpdateTime()
Gets the last update time.
|
NextDatabasePrefixGenerator |
getNextDatabasePrefixGenerator()
Gets the next database prefix generator.
|
java.lang.String |
getNextDBIdentifier()
Gets the next db identifier.
|
java.lang.String |
getNextHistoryIdentifier()
Gets the next history identifier.
|
RegistryEntry |
getNonCodingSchemeEntry(java.lang.String uri)
Gets the non coding scheme entry.
|
protected Registry.ResourceType[] |
getNonCodingSchemeResourceTypes() |
RegistryDao |
getRegistryDao()
Gets the registry dao.
|
void |
removeEntry(RegistryEntry entry)
Removes the entry.
|
void |
setNextDatabasePrefixGenerator(NextDatabasePrefixGenerator nextDatabasePrefixGenerator)
Sets the next database prefix generator.
|
void |
setRegistryDao(RegistryDao registryDao)
Sets the registry dao.
|
void |
updateEntry(RegistryEntry entry)
Update entry.
|
addRegistryListener, fireTagUpdateEvent, getRegistryListeners, setRegistryListeners
@Transactional public void activate(AbsoluteCodingSchemeVersionReference codingScheme) throws LBInvocationException, LBParameterException
codingScheme
- the coding schemeLBInvocationException
- the LB invocation exceptionLBParameterException
- the LB parameter exception@Transactional public void addNewItem(RegistryEntry entry) throws java.lang.Exception
Registry
addNewItem
in interface Registry
entry
- the entryjava.lang.Exception
- the exception@Transactional public java.util.List<RegistryEntry> getAllRegistryEntries()
Registry
getAllRegistryEntries
in interface Registry
@Transactional public java.util.List<RegistryEntry> getAllRegistryEntriesOfType(Registry.ResourceType type)
Registry
getAllRegistryEntriesOfType
in interface Registry
type
- the type@Transactional public java.util.List<RegistryEntry> getAllRegistryEntriesOfTypeAndURI(Registry.ResourceType type, java.lang.String uri)
Registry
getAllRegistryEntriesOfTypeAndURI
in interface Registry
type
- the resource typeuri
- the resource uri@Transactional public java.util.List<RegistryEntry> getAllRegistryEntriesOfTypeURIAndVersion(Registry.ResourceType type, java.lang.String uri, java.lang.String version)
Registry
getAllRegistryEntriesOfTypeURIAndVersion
in interface Registry
type
- the resource typeuri
- the resource uriversion
- the verion@Transactional public java.util.List<RegistryEntry> getEntriesForUri(java.lang.String uri) throws LBParameterException
Registry
getEntriesForUri
in interface Registry
uri
- the uriLBParameterException
- the LB parameter exception@Transactional public java.util.Date getLastUpdateTime()
Registry
getLastUpdateTime
in interface Registry
@Transactional public java.lang.String getNextDBIdentifier() throws LBInvocationException
Registry
getNextDBIdentifier
in interface Registry
LBInvocationException
- the LB invocation exceptionpublic java.lang.String getNextHistoryIdentifier() throws LBInvocationException
Registry
getNextHistoryIdentifier
in interface Registry
LBInvocationException
- the LB invocation exception@Transactional public boolean containsCodingSchemeEntry(AbsoluteCodingSchemeVersionReference codingScheme)
Registry
containsCodingSchemeEntry
in interface Registry
codingScheme
- the coding scheme@Transactional public void updateEntry(RegistryEntry entry)
Registry
updateEntry
in interface Registry
entry
- the entry@Transactional public RegistryEntry getCodingSchemeEntry(AbsoluteCodingSchemeVersionReference codingScheme) throws LBParameterException
Registry
getCodingSchemeEntry
in interface Registry
codingScheme
- the coding schemeLBParameterException
- the LB parameter exceptionpublic RegistryEntry getNonCodingSchemeEntry(java.lang.String uri) throws LBParameterException
Registry
getNonCodingSchemeEntry
in interface Registry
uri
- the uriLBParameterException
- the LB parameter exception@Transactional public void removeEntry(RegistryEntry entry) throws LBParameterException
Registry
removeEntry
in interface Registry
entry
- the entryLBParameterException
- the LB parameter exception@Transactional public boolean containsNonCodingSchemeEntry(java.lang.String uri)
Registry
containsNonCodingSchemeEntry
in interface Registry
uri
- the uriprotected Registry.ResourceType[] getNonCodingSchemeResourceTypes()
public void setRegistryDao(RegistryDao registryDao)
registryDao
- the new registry daopublic RegistryDao getRegistryDao()
public NextDatabasePrefixGenerator getNextDatabasePrefixGenerator()
public void setNextDatabasePrefixGenerator(NextDatabasePrefixGenerator nextDatabasePrefixGenerator)
nextDatabasePrefixGenerator
- the new next database prefix generator