public class SQLImplementedMethodsDao
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.util.Map<java.lang.String,java.lang.String> |
csNamespaceToName_
The cs namespace to name_.
|
Constructor and Description |
---|
SQLImplementedMethodsDao() |
Modifier and Type | Method and Description |
---|---|
Entity |
buildCodedEntry(java.lang.String internalCodingSchemeName,
java.lang.String internalVersionString,
java.lang.String code,
java.lang.String namespace,
LocalNameList restrictToProperties,
CodedNodeSet.PropertyType[] restrictToPropertyTypes)
Builds the coded entry.
|
CodingScheme |
buildCodingScheme(java.lang.String internalCodingSchemeName,
java.lang.String internalVersionString)
Builds the coding scheme.
|
EntityDescription |
buildConceptEntityDescription(java.lang.String internalCodingSchemeName,
java.lang.String internalVersionString,
java.lang.String conceptCode)
Deprecated.
|
protected static java.lang.String |
createUniqueKeyForSource(java.lang.String value,
java.lang.String val1)
Generate a unique key for a Source object.
|
ConceptReference |
getAssociationReference(java.lang.String associationName,
java.lang.String internalCodingSchemeName,
java.lang.String internalVersionString)
Gets the association reference.
|
java.lang.String |
getCodingSchemeCopyright(java.lang.String internalCodingSchemeName,
java.lang.String internalVersionString)
Gets the coding scheme copyright.
|
LgLoggerIF |
getLogger()
Gets the logger.
|
java.lang.String[] |
getNativeRelations(java.lang.String internalCodingScheme,
java.lang.String internalVersionString)
Gets the native relations.
|
java.lang.String |
getRelationshipCodingSchemeNameForURN(java.lang.String urn,
java.lang.String internalCodingSchemeName,
java.lang.String internalVersionString)
Get a the urn (registered name) for a coding scheme label used in the
relationship tables.
|
ResourceManager |
getResourceManager()
Gets the resource manager.
|
java.lang.String |
getURNForAssociationName(java.lang.String associationName,
java.lang.String internalCodingSchemeName,
java.lang.String internalVersionString)
Get a the urn (registered name) for an association label used in the
relationship tables.
|
java.lang.String |
getURNForInternalCodingSchemeName(java.lang.String internalCodingSchemeName,
java.lang.String internalVersionString)
Get the urn (registered name) for a code systems internal coding scheme
name.
|
java.lang.String |
getURNForRelationshipCodingSchemeName(java.lang.String supportedCodingScheme,
java.lang.String internalCodingSchemeName,
java.lang.String internalVersionString,
boolean throwError)
Get a the urn (registered name) for a coding scheme label used in the
relationship tables.
|
boolean |
isAssociationSymmetric(java.lang.String internalCodingSchemeName,
java.lang.String internalVersionString,
java.lang.String relationName,
java.lang.String association)
Checks if is association symmetric.
|
protected static boolean |
isEntityAssnsToEQualsIndexPresent(SQLInterface si)
Checks if the EntityAssnsToEQuals multiAttributesKey column index is present.
|
protected static boolean |
isEntryStateIdInAssociationTable(SQLInterface si)
Checks if the current Association Table contains the EntryStateId column.
|
protected static float |
parseFloatFromTableVersion(SQLInterface si)
Returns the float representation of the current table version.
|
void |
setLogger(LgLoggerIF logger)
Sets the logger.
|
void |
setResourceManager(ResourceManager resourceManager)
Sets the resource manager.
|
boolean |
validateContext(java.lang.String internalCodingSchemeName,
java.lang.String internalVersionString,
java.lang.String context)
Validate context.
|
boolean |
validateLanguage(java.lang.String internalCodingSchemeName,
java.lang.String internalVersionString,
java.lang.String language)
Validate language.
|
boolean |
validateProperty(java.lang.String internalCodingSchemeName,
java.lang.String internalVersionString,
java.lang.String property)
Validate property.
|
boolean |
validatePropertyQualifier(java.lang.String internalCodingSchemeName,
java.lang.String internalVersionString,
java.lang.String propertyQualifier)
Validate property qualifier.
|
boolean |
validateSource(java.lang.String internalCodingSchemeName,
java.lang.String internalVersionString,
java.lang.String source)
Validate source.
|
protected static java.util.Map<java.lang.String,java.lang.String> csNamespaceToName_
@Transactional public CodingScheme buildCodingScheme(java.lang.String internalCodingSchemeName, java.lang.String internalVersionString) throws MissingResourceException, UnexpectedInternalError
internalCodingSchemeName
- the internal coding scheme nameinternalVersionString
- the internal version stringMissingResourceException
- the missing resource exceptionUnexpectedInternalError
- the unexpected internal errorpublic Entity buildCodedEntry(java.lang.String internalCodingSchemeName, java.lang.String internalVersionString, java.lang.String code, java.lang.String namespace, LocalNameList restrictToProperties, CodedNodeSet.PropertyType[] restrictToPropertyTypes) throws UnexpectedInternalError, MissingResourceException
internalCodingSchemeName
- the internal coding scheme nameinternalVersionString
- the internal version stringcode
- the codenamespace
- the namespacerestrictToProperties
- the restrict to propertiesrestrictToPropertyTypes
- the restrict to property typesUnexpectedInternalError
- the unexpected internal errorMissingResourceException
- the missing resource exception@Deprecated public EntityDescription buildConceptEntityDescription(java.lang.String internalCodingSchemeName, java.lang.String internalVersionString, java.lang.String conceptCode) throws MissingResourceException, UnexpectedInternalError
internalCodingSchemeName
- the internal coding scheme nameinternalVersionString
- the internal version stringconceptCode
- the concept codeMissingResourceException
- the missing resource exceptionUnexpectedInternalError
- the unexpected internal errorpublic java.lang.String getCodingSchemeCopyright(java.lang.String internalCodingSchemeName, java.lang.String internalVersionString) throws MissingResourceException, UnexpectedInternalError
internalCodingSchemeName
- the internal coding scheme nameinternalVersionString
- the internal version stringMissingResourceException
- the missing resource exceptionUnexpectedInternalError
- the unexpected internal errorpublic boolean validateLanguage(java.lang.String internalCodingSchemeName, java.lang.String internalVersionString, java.lang.String language) throws UnexpectedInternalError, MissingResourceException, LBParameterException
internalCodingSchemeName
- the internal coding scheme nameinternalVersionString
- the internal version stringlanguage
- the languageUnexpectedInternalError
- the unexpected internal errorMissingResourceException
- the missing resource exceptionLBParameterException
- the LB parameter exceptionpublic boolean validateSource(java.lang.String internalCodingSchemeName, java.lang.String internalVersionString, java.lang.String source) throws UnexpectedInternalError, MissingResourceException, LBParameterException
internalCodingSchemeName
- the internal coding scheme nameinternalVersionString
- the internal version stringsource
- the sourceUnexpectedInternalError
- the unexpected internal errorMissingResourceException
- the missing resource exceptionLBParameterException
- the LB parameter exceptionpublic boolean validateContext(java.lang.String internalCodingSchemeName, java.lang.String internalVersionString, java.lang.String context) throws UnexpectedInternalError, MissingResourceException, LBParameterException
internalCodingSchemeName
- the internal coding scheme nameinternalVersionString
- the internal version stringcontext
- the contextUnexpectedInternalError
- the unexpected internal errorMissingResourceException
- the missing resource exceptionLBParameterException
- the LB parameter exceptionpublic boolean validatePropertyQualifier(java.lang.String internalCodingSchemeName, java.lang.String internalVersionString, java.lang.String propertyQualifier) throws UnexpectedInternalError, MissingResourceException, LBParameterException
internalCodingSchemeName
- the internal coding scheme nameinternalVersionString
- the internal version stringpropertyQualifier
- the property qualifierUnexpectedInternalError
- the unexpected internal errorMissingResourceException
- the missing resource exceptionLBParameterException
- the LB parameter exceptionpublic boolean validateProperty(java.lang.String internalCodingSchemeName, java.lang.String internalVersionString, java.lang.String property) throws UnexpectedInternalError, MissingResourceException, LBParameterException
internalCodingSchemeName
- the internal coding scheme nameinternalVersionString
- the internal version stringproperty
- the propertyUnexpectedInternalError
- the unexpected internal errorMissingResourceException
- the missing resource exceptionLBParameterException
- the LB parameter exceptionpublic java.lang.String[] getNativeRelations(java.lang.String internalCodingScheme, java.lang.String internalVersionString) throws MissingResourceException, UnexpectedInternalError, LBParameterException
internalCodingScheme
- the internal coding schemeinternalVersionString
- the internal version stringMissingResourceException
- the missing resource exceptionUnexpectedInternalError
- the unexpected internal errorLBParameterException
- the LB parameter exceptionpublic java.lang.String getURNForInternalCodingSchemeName(java.lang.String internalCodingSchemeName, java.lang.String internalVersionString) throws UnexpectedInternalError, MissingResourceException
internalCodingSchemeName
- the internal coding scheme nameinternalVersionString
- the internal version stringUnexpectedInternalError
- the unexpected internal errorMissingResourceException
- the missing resource exceptionpublic java.lang.String getURNForRelationshipCodingSchemeName(java.lang.String supportedCodingScheme, java.lang.String internalCodingSchemeName, java.lang.String internalVersionString, boolean throwError) throws MissingResourceException, UnexpectedInternalError
supportedCodingScheme
- the supported coding schemeinternalCodingSchemeName
- the internal coding scheme nameinternalVersionString
- the internal version stringthrowError
- the throw errorMissingResourceException
- the missing resource exceptionUnexpectedInternalError
- the unexpected internal errorpublic java.lang.String getURNForAssociationName(java.lang.String associationName, java.lang.String internalCodingSchemeName, java.lang.String internalVersionString) throws MissingResourceException, UnexpectedInternalError
associationName
- the association nameinternalCodingSchemeName
- the internal coding scheme nameinternalVersionString
- the internal version stringMissingResourceException
- the missing resource exceptionUnexpectedInternalError
- the unexpected internal errorpublic java.lang.String getRelationshipCodingSchemeNameForURN(java.lang.String urn, java.lang.String internalCodingSchemeName, java.lang.String internalVersionString) throws MissingResourceException, UnexpectedInternalError
urn
- the urninternalCodingSchemeName
- the internal coding scheme nameinternalVersionString
- the internal version stringMissingResourceException
- the missing resource exceptionUnexpectedInternalError
- the unexpected internal errorpublic ConceptReference getAssociationReference(java.lang.String associationName, java.lang.String internalCodingSchemeName, java.lang.String internalVersionString) throws MissingResourceException, UnexpectedInternalError
associationName
- the association nameinternalCodingSchemeName
- the internal coding scheme nameinternalVersionString
- the internal version stringMissingResourceException
- the missing resource exceptionUnexpectedInternalError
- the unexpected internal errorpublic boolean isAssociationSymmetric(java.lang.String internalCodingSchemeName, java.lang.String internalVersionString, java.lang.String relationName, java.lang.String association) throws UnexpectedInternalError, MissingResourceException, LBParameterException
internalCodingSchemeName
- the internal coding scheme nameinternalVersionString
- the internal version stringrelationName
- the relation nameassociation
- the associationUnexpectedInternalError
- the unexpected internal errorMissingResourceException
- the missing resource exceptionLBParameterException
- the LB parameter exceptionprotected static boolean isEntityAssnsToEQualsIndexPresent(SQLInterface si)
si
- the siprotected static boolean isEntryStateIdInAssociationTable(SQLInterface si)
si
- the siprotected static float parseFloatFromTableVersion(SQLInterface si)
si
- the siprotected static java.lang.String createUniqueKeyForSource(java.lang.String value, java.lang.String val1)
value
- the valueval1
- the val1public void setResourceManager(ResourceManager resourceManager)
resourceManager
- the new resource managerpublic ResourceManager getResourceManager()
public void setLogger(LgLoggerIF logger)
logger
- the new loggerpublic LgLoggerIF getLogger()