public class CdmPersistentRemoteSource extends CdmRemoteSourceBase implements eu.etaxonomy.cdm.config.ICdmPersistentSource
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REMOTESOURCE_BEAN_POSTFIX |
DEFAULT_CONTEXT_PATH, DEFAULT_NAME, DEFAULT_PORT, DEFAULT_SERVER
Modifier and Type | Method and Description |
---|---|
static boolean |
exists(java.lang.String strRemoteSourceName)
Tests existing of the datsource in the according config file.
|
static java.util.List<CdmPersistentRemoteSource> |
getAllRemoteSources()
Returns a list of all datasources stored in the datasource config file
|
java.lang.String |
getBeanName() |
java.lang.String |
getContextPath()
Gets the context path.
|
int |
getPort() |
java.lang.String |
getServer() |
static CdmPersistentRemoteSource |
NewInstance(java.lang.String remoteSource)
Creates a new instance of CdmPersistentRemoteSource
|
static CdmPersistentRemoteSource |
save(java.lang.String strRemoteSourceName,
ICdmRemoteSource remoteSource) |
java.lang.String |
toString() |
static CdmPersistentRemoteSource |
update(java.lang.String strRemoteSourceName,
ICdmRemoteSource remoteSource) |
checkConnection, getBaseUrl, getConnectionMessage, getDbSchemaVersion, getMetaDataMap, isDbEmpty, setBaseUrl, setContextPath
closeOpenConnections, getName, setName, setPort, setServer
public static final java.lang.String REMOTESOURCE_BEAN_POSTFIX
public static CdmPersistentRemoteSource NewInstance(java.lang.String remoteSource) throws CdmRemoteSourceException
name
- server
- port
- contextPath
- nomenclaturalCode
- CdmRemoteSourceException
public java.lang.String getBeanName()
getBeanName
in interface eu.etaxonomy.cdm.config.ICdmPersistentSource
public java.lang.String getServer()
getServer
in interface eu.etaxonomy.cdm.config.ICdmSource
getServer
in class eu.etaxonomy.cdm.config.CdmSource
public int getPort()
getPort
in interface eu.etaxonomy.cdm.config.ICdmSource
getPort
in class eu.etaxonomy.cdm.config.CdmSource
public java.lang.String getContextPath()
ICdmRemoteSource
getContextPath
in interface ICdmRemoteSource
getContextPath
in class CdmRemoteSourceBase
public static CdmPersistentRemoteSource save(java.lang.String strRemoteSourceName, ICdmRemoteSource remoteSource) throws CdmRemoteSourceException
CdmRemoteSourceException
public static CdmPersistentRemoteSource update(java.lang.String strRemoteSourceName, ICdmRemoteSource remoteSource) throws CdmRemoteSourceException
strDataSourceName
- dataSource
- code
- CdmRemoteSourceException
public static boolean exists(java.lang.String strRemoteSourceName)
public static java.util.List<CdmPersistentRemoteSource> getAllRemoteSources() throws CdmRemoteSourceException
CdmRemoteSourceException
public java.lang.String toString()
toString
in class CdmRemoteSourceBase
Copyright © 2007-2018. All Rights Reserved.