Package com.appliedolap.essbase.impl
Class EssConnectionImpl
java.lang.Object
com.appliedolap.essbase.AbstractEssObject
com.appliedolap.essbase.impl.EssConnectionImpl
- All Implemented Interfaces:
EssConnection,EssObject
A global connection on the server.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.appliedolap.essbase.EssConnection
EssConnection.ConnectionTypeNested classes/interfaces inherited from interface com.appliedolap.essbase.EssObject
EssObject.Type -
Field Summary
Fields inherited from class com.appliedolap.essbase.AbstractEssObject
api -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()getHost()The host a database connection points at, or null for a file connection.getName()Gets the name of this object.getPath()For a file connection, the catalogue path of the file -/gallery/Technical/Filters/UserDetails.csv.Everything the server said about this connection, for a caller wanting more than the accessors.getType()Gets the type of this object.test()Tests the saved connection.toString()
-
Method Details
-
getName
Description copied from interface:EssObjectGets the name of this object. This will generally be the "nice" and "unique" name of this object, such as the application name, cube, member, variable, or whatever. -
getType
Description copied from interface:EssObjectGets the type of this object. -
getConnectionType
- Specified by:
getConnectionTypein interfaceEssConnection
-
getDescription
- Specified by:
getDescriptionin interfaceEssConnection
-
getPath
Description copied from interface:EssConnectionFor a file connection, the catalogue path of the file -/gallery/Technical/Filters/UserDetails.csv. Null for a connection that isn't file-based.- Specified by:
getPathin interfaceEssConnection- Returns:
- the path, or null
-
getHost
Description copied from interface:EssConnectionThe host a database connection points at, or null for a file connection.- Specified by:
getHostin interfaceEssConnection
-
test
Tests the saved connection.A failure is an answer rather than an error - the caller asked whether it works - so the server's reason comes back instead of an exception. For a database connection on a server without the right driver that reason is an
ORA-code from Oracle's driver, whatever type the connection claims to be.- Specified by:
testin interfaceEssConnection- Returns:
- empty when it connects, otherwise the server's reason
-
delete
public void delete()- Specified by:
deletein interfaceEssConnection
-
getProperties
Everything the server said about this connection, for a caller wanting more than the accessors. -
toString
-