public abstract class CdmSource extends java.lang.Object implements ICdmSource
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_ENTRY |
static int |
NULL_PORT |
protected java.lang.String |
server |
Constructor and Description |
---|
CdmSource() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
checkConnection()
Tests, if a database connection can be established.
|
void |
closeOpenConnections()
Closes any open connections to this CDM Source
|
abstract java.lang.String |
getConnectionMessage()
Returns the message to display when connecting to this CDM Source
|
abstract java.lang.String |
getDbSchemaVersion()
Returns the CDM schema version of this CDM Source
|
java.lang.String |
getName()
Returns the name representation of this CDM Source
|
int |
getPort()
Returns the port on which this CDM Source is listening
|
java.lang.String |
getServer()
Returns the server (string representation) where this CDM Source resides
|
abstract boolean |
isDbEmpty()
Checks whether the underlying database is empty
|
void |
setName(java.lang.String name)
Sets the CDM Source name
|
void |
setPort(int port)
Sets the CDM Source port
|
void |
setServer(java.lang.String server)
Sets the CDM Source server
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMetaDataMap
protected java.lang.String server
public static final int NULL_PORT
public static final java.lang.String DEFAULT_ENTRY
public void setName(java.lang.String name)
setName
in interface ICdmSource
name
- public void setServer(java.lang.String server)
setServer
in interface ICdmSource
server
- public void setPort(int port)
setPort
in interface ICdmSource
port
- public java.lang.String getName()
ICdmSource
getName
in interface ICdmSource
public java.lang.String getServer()
ICdmSource
getServer
in interface ICdmSource
public int getPort()
ICdmSource
getPort
in interface ICdmSource
public abstract java.lang.String getDbSchemaVersion() throws CdmSourceException
ICdmSource
getDbSchemaVersion
in interface ICdmSource
CdmSourceException
- if any underlying errorpublic abstract boolean isDbEmpty() throws CdmSourceException
ICdmSource
isDbEmpty
in interface ICdmSource
CdmSourceException
public abstract boolean checkConnection() throws CdmSourceException
ICdmSource
checkConnection
in interface ICdmSource
CdmSourceException
- if any underlying errorpublic abstract java.lang.String getConnectionMessage()
ICdmSource
getConnectionMessage
in interface ICdmSource
public void closeOpenConnections()
ICdmSource
closeOpenConnections
in interface ICdmSource
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2007-2020 EDIT. All Rights Reserved.