|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.LexGrid.LexBIG.caCore.connection.orm.utils.DBConnector
public class DBConnector
The junction point between the LexEVSAPI and the local LexBIG installation. Used to obtain information about the loaded vocabularies and their Database Connection information.
Field Summary | |
---|---|
private org.LexGrid.LexBIG.Impl.helpers.SQLConnectionInfo[] |
codingSchemeConnections
|
private org.LexGrid.LexBIG.DataModel.InterfaceElements.CodingSchemeRendering[] |
csr
|
private org.LexGrid.LexBIG.Impl.helpers.SQLConnectionInfo[] |
historyConnections
|
private static String |
LEXBIG_SYSPROPERTY
The Constant LEXBIG_SYSPROPERTY. |
private static org.apache.log4j.Logger |
log
|
private org.LexGrid.LexBIG.Impl.dataAccess.ResourceManager |
rm
|
Constructor Summary | |
---|---|
DBConnector(org.LexGrid.LexBIG.caCore.security.properties.LexEVSProperties properties)
Create a connection to a local LexBIG installation, given a set of properties. |
Method Summary | |
---|---|
org.LexGrid.LexBIG.Impl.helpers.SQLConnectionInfo[] |
getCodingSchemeConnections()
|
org.LexGrid.LexBIG.DataModel.InterfaceElements.CodingSchemeRendering |
getCodingSchemeRenderingForURIAndVersion(String uri,
String version)
Gets the Complete CodingSchemeRendering of a CodingScheme. |
org.LexGrid.LexBIG.DataModel.InterfaceElements.CodingSchemeRendering[] |
getCodingSchemeRenderings()
|
private org.LexGrid.LexBIG.Impl.helpers.SQLConnectionInfo[] |
getDBCodingSchemeConnectionInfoFromLexBIG(org.LexGrid.LexBIG.DataModel.InterfaceElements.CodingSchemeRendering[] csr)
|
private org.LexGrid.LexBIG.Impl.helpers.SQLConnectionInfo[] |
getDBHistoryConnectionInfoFromLexBIG(org.LexGrid.LexBIG.DataModel.InterfaceElements.CodingSchemeRendering[] csr)
|
org.LexGrid.LexBIG.Impl.helpers.SQLConnectionInfo[] |
getHistoryConnections()
|
private String |
getInternalVersionString(String codingSchemeName,
org.LexGrid.LexBIG.DataModel.Core.CodingSchemeVersionOrTag tagOrVersion)
|
String |
getLocalDBNameForURIAndVersion(String uri,
String version)
Gets the local DB name (in other words, the name that this Coding Scheme uses to identify itself in the database). |
org.LexGrid.LexBIG.DataModel.Collections.CodingSchemeTagList |
getTagList(String uri,
String version)
Returns the list of Tags associated with this Coding Scheme |
private HashSet<String> |
getUniqueURIs(org.LexGrid.LexBIG.DataModel.InterfaceElements.CodingSchemeRendering[] csr)
|
String |
getURIFromCodingSchemeName(String codingSchemeName,
org.LexGrid.LexBIG.DataModel.Core.CodingSchemeVersionOrTag tagOrVersion)
Returns the URI of the CodingScheme given a local name. |
boolean |
isCodingSchemeActive(String name,
org.LexGrid.LexBIG.DataModel.Core.CodingSchemeVersionOrTag csvt)
Determines whether or not the requested Coding Scheme is active in the system. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static org.apache.log4j.Logger log
private static final String LEXBIG_SYSPROPERTY
private org.LexGrid.LexBIG.Impl.helpers.SQLConnectionInfo[] codingSchemeConnections
private org.LexGrid.LexBIG.Impl.helpers.SQLConnectionInfo[] historyConnections
private org.LexGrid.LexBIG.Impl.dataAccess.ResourceManager rm
private org.LexGrid.LexBIG.DataModel.InterfaceElements.CodingSchemeRendering[] csr
Constructor Detail |
---|
public DBConnector(org.LexGrid.LexBIG.caCore.security.properties.LexEVSProperties properties)
properties
- LexEVSProperties used to establish a connection to the local LexBIG installationMethod Detail |
---|
public boolean isCodingSchemeActive(String name, org.LexGrid.LexBIG.DataModel.Core.CodingSchemeVersionOrTag csvt) throws org.LexGrid.LexBIG.Exceptions.LBParameterException
name
- Local Name of the Coding Schemecsvt
- Version or Tag information
org.LexGrid.LexBIG.Exceptions.LBParameterException
private org.LexGrid.LexBIG.Impl.helpers.SQLConnectionInfo[] getDBCodingSchemeConnectionInfoFromLexBIG(org.LexGrid.LexBIG.DataModel.InterfaceElements.CodingSchemeRendering[] csr) throws org.LexGrid.LexBIG.Exceptions.LBInvocationException
org.LexGrid.LexBIG.Exceptions.LBInvocationException
private org.LexGrid.LexBIG.Impl.helpers.SQLConnectionInfo[] getDBHistoryConnectionInfoFromLexBIG(org.LexGrid.LexBIG.DataModel.InterfaceElements.CodingSchemeRendering[] csr) throws org.LexGrid.LexBIG.Exceptions.LBInvocationException
org.LexGrid.LexBIG.Exceptions.LBInvocationException
private HashSet<String> getUniqueURIs(org.LexGrid.LexBIG.DataModel.InterfaceElements.CodingSchemeRendering[] csr)
public org.LexGrid.LexBIG.DataModel.Collections.CodingSchemeTagList getTagList(String uri, String version) throws Exception
uri
- URI of the Coding Schemeversion
- Version of the Coding Scheme
Exception
public String getURIFromCodingSchemeName(String codingSchemeName, org.LexGrid.LexBIG.DataModel.Core.CodingSchemeVersionOrTag tagOrVersion) throws org.LexGrid.LexBIG.Exceptions.LBParameterException
codingSchemeName
- Local Name of the Coding SchemetagOrVersion
- Version or Tag information
org.LexGrid.LexBIG.Exceptions.LBParameterException
private String getInternalVersionString(String codingSchemeName, org.LexGrid.LexBIG.DataModel.Core.CodingSchemeVersionOrTag tagOrVersion) throws org.LexGrid.LexBIG.Exceptions.LBParameterException
org.LexGrid.LexBIG.Exceptions.LBParameterException
public org.LexGrid.LexBIG.DataModel.InterfaceElements.CodingSchemeRendering getCodingSchemeRenderingForURIAndVersion(String uri, String version) throws org.LexGrid.LexBIG.Exceptions.LBParameterException
uri
- URI of the Coding Schemeversion
- Version of the Coding Scheme
org.LexGrid.LexBIG.Exceptions.LBParameterException
public String getLocalDBNameForURIAndVersion(String uri, String version) throws org.LexGrid.LexBIG.Exceptions.LBParameterException
uri
- URI of the Coding Schemeversion
- Version of the Coding Scheme
org.LexGrid.LexBIG.Exceptions.LBParameterException
public org.LexGrid.LexBIG.DataModel.InterfaceElements.CodingSchemeRendering[] getCodingSchemeRenderings()
public org.LexGrid.LexBIG.Impl.helpers.SQLConnectionInfo[] getCodingSchemeConnections()
public org.LexGrid.LexBIG.Impl.helpers.SQLConnectionInfo[] getHistoryConnections()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |