|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.lexevs.dao.database.sqlimplementedmethods.SQLImplementedMethodsDao
public class SQLImplementedMethodsDao
SQL Queries necessary for LexBIG operations.
Field Summary | |
---|---|
protected static java.util.Map<java.lang.String,java.lang.String> |
csNamespaceToName_
The cs namespace to name_. |
Constructor Summary | |
---|---|
SQLImplementedMethodsDao()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static java.util.Map<java.lang.String,java.lang.String> csNamespaceToName_
Constructor Detail |
---|
public SQLImplementedMethodsDao()
Method Detail |
---|
@Transactional public CodingScheme buildCodingScheme(java.lang.String internalCodingSchemeName, java.lang.String internalVersionString) throws MissingResourceException, UnexpectedInternalError
internalCodingSchemeName
- the internal coding scheme nameinternalVersionString
- the internal version string
MissingResourceException
- the missing resource exception
UnexpectedInternalError
- 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 types
UnexpectedInternalError
- the unexpected internal error
MissingResourceException
- 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 code
MissingResourceException
- the missing resource exception
UnexpectedInternalError
- 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 string
MissingResourceException
- the missing resource exception
UnexpectedInternalError
- 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 language
UnexpectedInternalError
- the unexpected internal error
MissingResourceException
- the missing resource exception
LBParameterException
- 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 source
UnexpectedInternalError
- the unexpected internal error
MissingResourceException
- the missing resource exception
LBParameterException
- 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 context
UnexpectedInternalError
- the unexpected internal error
MissingResourceException
- the missing resource exception
LBParameterException
- 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 qualifier
UnexpectedInternalError
- the unexpected internal error
MissingResourceException
- the missing resource exception
LBParameterException
- 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 property
UnexpectedInternalError
- the unexpected internal error
MissingResourceException
- the missing resource exception
LBParameterException
- 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 string
MissingResourceException
- the missing resource exception
UnexpectedInternalError
- the unexpected internal error
LBParameterException
- 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 string
UnexpectedInternalError
- the unexpected internal error
MissingResourceException
- 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 error
MissingResourceException
- the missing resource exception
UnexpectedInternalError
- 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 string
MissingResourceException
- the missing resource exception
UnexpectedInternalError
- 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 string
MissingResourceException
- the missing resource exception
UnexpectedInternalError
- 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 string
MissingResourceException
- the missing resource exception
UnexpectedInternalError
- 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 association
UnexpectedInternalError
- the unexpected internal error
MissingResourceException
- the missing resource exception
LBParameterException
- the LB parameter exceptionprotected static boolean isEntityAssnsToEQualsIndexPresent(SQLInterface si)
si
- the si
protected static boolean isEntryStateIdInAssociationTable(SQLInterface si)
si
- the si
protected static float parseFloatFromTableVersion(SQLInterface si)
si
- the si
protected static java.lang.String createUniqueKeyForSource(java.lang.String value, java.lang.String val1)
value
- the valueval1
- the val1
public void setResourceManager(ResourceManager resourceManager)
resourceManager
- the new resource managerpublic ResourceManager getResourceManager()
public void setLogger(LgLoggerIF logger)
logger
- the new loggerpublic LgLoggerIF getLogger()
|
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. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |