|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwareag.tamino.db.api.connection.TConnectionFactory
public class TConnectionFactory
TConnectionFactory is the factory class for the instantiation of TConnection instances. It is responsible for configuration and instantiation of TConnection instances. This class implements the singleton pattern, i.e. there is always only one instance of this class available.
With Tamino 4.2 it is also possible to retrieve the list of available databases for a
given Tamino server.
Please note that this may require web server athentication.
Constructor Summary | |
---|---|
protected |
TConnectionFactory()
Default Constructor. |
Method Summary | |
---|---|
java.util.Set<TDatabase> |
getDatabases(java.lang.String taminoHostUri)
Retrieve the list of all available Tamino database URIs from the specified Tamino without authentication. |
java.util.Set<TDatabase> |
getDatabases(java.lang.String taminoHostUri,
java.lang.String userId,
java.lang.String password)
Retrieve the list of all available Tamino database URIs from the specified Tamino with the authentication parameters userId and password. |
java.util.Set<TDatabase> |
getDatabases(java.lang.String taminoHostUri,
java.lang.String domain,
java.lang.String userId,
java.lang.String password)
Retrieve the list of all available Tamino database URIs from the specified Tamino with the authentication parameters domain, userId and password. |
static TConnectionFactory |
getInstance()
Gets the singleton TConnectionFactory instance. |
TConnection |
newConnection(java.lang.String databaseUri)
Creates a TConnection instance for the given database without authentication parameters. |
TConnection |
newConnection(java.lang.String databaseUri,
java.util.Locale locale)
Creates a TConnection instance for the given database without authentication parameters and specified locale. |
TConnection |
newConnection(java.lang.String databaseUri,
SecurityToken token)
|
TConnection |
newConnection(java.lang.String databaseUri,
SecurityToken token,
java.util.Locale locale)
Create a TConnection instance with the give database URI, security token, and the specified locale |
TConnection |
newConnection(java.lang.String databaseUri,
SecurityToken token,
java.util.Locale locale,
java.util.Properties sslProperties)
Create a TConnection instance with the give database URI, security token, and SSL properties for https. This method is designed for internal use only! |
TConnection |
newConnection(java.lang.String databaseUri,
java.lang.String userId,
java.lang.String password)
Creates a TConnection instance for the given database with the specified authentication parameters userId and password. |
TConnection |
newConnection(java.lang.String databaseUri,
java.lang.String userId,
java.lang.String password,
java.util.Locale locale)
Creates a TConnection instance for the given database with the specified authentication parameters userId and password and specified locale. |
TConnection |
newConnection(java.lang.String databaseUri,
java.lang.String userId,
java.lang.String password,
java.util.Locale locale,
java.util.Properties sslProperties)
Creates a https TConnection instance for the given database with the specified authentication parameters userId, password and ssl properties. This method is designed for internal use only! |
TConnection |
newConnection(java.lang.String databaseUri,
java.lang.String userId,
java.lang.String password,
java.util.Properties sslProperties)
Creates a https TConnection instance for the given database with the specified authentication parameters userId, password and ssl properties. This method is designed for internal use only! |
TConnection |
newConnection(java.lang.String databaseUri,
java.lang.String domain,
java.lang.String userId,
java.lang.String password)
Creates a TConnection instance for the given database with the specified authentication parameters domain, userId and password. |
TConnection |
newConnection(java.lang.String databaseUri,
java.lang.String domain,
java.lang.String userId,
java.lang.String password,
java.util.Locale locale)
Creates a TConnection instance for the given database with the specified authentication parameters domain, userId and password and specified locale. |
TConnection |
newConnection(java.lang.String databaseUri,
java.lang.String domain,
java.lang.String userId,
java.lang.String password,
java.util.Properties sslProperties)
Creates a TConnection instance for the given database with the specified authentication parameters domain, userId and password. |
TConnection |
newConnection(TDatabase database)
Creates a TConnection instance for the given database without authentication parameters. |
TConnection |
newConnection(TDatabase database,
java.util.Locale locale)
Creates a TConnection instance for the given database without authentication parameters and specified locale. |
TConnection |
newConnection(TDatabase database,
SecurityToken token)
Creates a TConnection instance with the give Database and security Token |
TConnection |
newConnection(TDatabase database,
SecurityToken token,
java.util.Locale locale)
Create the TConnection instance with the given database, security token and the specified locale. |
TConnection |
newConnection(TDatabase database,
java.lang.String userId,
java.lang.String password)
Creates a TConnection instance for the given database with the specified authentication parameters userId and password. |
TConnection |
newConnection(TDatabase database,
java.lang.String userId,
java.lang.String password,
java.util.Locale locale)
Creates a TConnection instance for the given database with the specified authentication parameters userId and password and specified locale. |
TConnection |
newConnection(TDatabase database,
java.lang.String domain,
java.lang.String userId,
java.lang.String password)
Creates a TConnection instance for the given database with the specified authentication parameters domain, userId and password. |
TConnection |
newConnection(TDatabase database,
java.lang.String domain,
java.lang.String userId,
java.lang.String password,
java.util.Locale locale)
Creates a TConnection instance for the given database with the specified authentication parameters domain, userId and password and specified locale. |
TConnection |
newConnection(TDatabase database,
java.lang.String domain,
java.lang.String userId,
java.lang.String password,
java.util.Properties sslProperties)
Creates a TConnection instance for the given database with the specified authentication parameters domain, userId and password. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected TConnectionFactory()
Method Detail |
---|
public static TConnectionFactory getInstance()
public TConnection newConnection(java.lang.String databaseUri) throws TServerNotAvailableException
databaseURI
- the URI of the Tamino database.
TServerNotAvailableException
- signals that the Tamino database is not available.public TConnection newConnection(java.lang.String databaseUri, java.lang.String userId, java.lang.String password) throws TServerNotAvailableException
databaseUri
- the uri of the Tamino database.userId
- the user id to be used for authentication.password
- the password to be used for authentication.
TServerNotAvailableException
- signals that the Tamino database is not available.public TConnection newConnection(java.lang.String databaseUri, java.lang.String userId, java.lang.String password, java.util.Properties sslProperties) throws TServerNotAvailableException
databaseUri
- the uri of the Tamino database.userId
- the user id to be used for authentication.password
- the password to be used for authentication.sslProperties
- properties class with custom ssl properties (internal use)
TServerNotAvailableException
public TConnection newConnection(java.lang.String databaseUri, java.lang.String userId, java.lang.String password, java.util.Locale locale, java.util.Properties sslProperties) throws TServerNotAvailableException
databaseUri
- the uri of the Tamino database.userId
- the user id to be used for authentication.password
- the password to be used for authentication.locale
- given localesslProperties
- properties class with custom ssl properties (internal use)
TServerNotAvailableException
public TConnection newConnection(java.lang.String databaseUri, java.lang.String domain, java.lang.String userId, java.lang.String password) throws TServerNotAvailableException
databaseUri
- the uri of the Tamino database.domain
- the domain to be used for authenticationuserId
- the user id to be used for authentication.password
- the password to be used for authentication.
TServerNotAvailableException
- signals that the Tamino database is not available.public TConnection newConnection(java.lang.String databaseUri, java.lang.String domain, java.lang.String userId, java.lang.String password, java.util.Properties sslProperties) throws TServerNotAvailableException
databaseUri
- the uri of the Tamino database.domain
- the domain to be used for authenticationuserId
- the user id to be used for authentication.password
- the password to be used for authentication.sslProperties
- properties class with custom ssl properties (internal use)
TServerNotAvailableException
- signals that the Tamino database is not available.public TConnection newConnection(TDatabase database) throws TServerNotAvailableException
database
- the Tamino database.
TServerNotAvailableException
- signals that the Tamino database is not available.public TConnection newConnection(TDatabase database, java.lang.String userId, java.lang.String password) throws TServerNotAvailableException
database
- the Tamino database.userId
- the user id to be used for authentication.password
- the password to be used for authentication.
TServerNotAvailableException
- signals that the Tamino database is not available.public TConnection newConnection(TDatabase database, java.lang.String domain, java.lang.String userId, java.lang.String password) throws TServerNotAvailableException
database
- the Tamino database.domain
- the domain to be used for authenticationuserId
- the user id to be used for authentication.password
- the password to be used for authentication.
TServerNotAvailableException
- signals that the Tamino database is not available.public TConnection newConnection(TDatabase database, java.lang.String domain, java.lang.String userId, java.lang.String password, java.util.Properties sslProperties) throws TServerNotAvailableException
database
- the Tamino database.domain
- the domain to be used for authenticationuserId
- the user id to be used for authentication.password
- the password to be used for authentication.
TServerNotAvailableException
- signals that the Tamino database is not available.public TConnection newConnection(java.lang.String databaseUri, java.util.Locale locale) throws TServerNotAvailableException
databaseURI
- the URI of the Tamino database.locale
- the locale
TServerNotAvailableException
- signals that the Tamino database is not available.public TConnection newConnection(java.lang.String databaseUri, java.lang.String userId, java.lang.String password, java.util.Locale locale) throws TServerNotAvailableException
databaseUri
- the uri of the Tamino database.userId
- the user id to be used for authentication.password
- the password to be used for authentication.locale
- the locale
TServerNotAvailableException
- signals that the Tamino database is not available.public TConnection newConnection(java.lang.String databaseUri, java.lang.String domain, java.lang.String userId, java.lang.String password, java.util.Locale locale) throws TServerNotAvailableException
databaseUri
- the uri of the Tamino database.domain
- the domain to be used for authenticationuserId
- the user id to be used for authentication.password
- the password to be used for authentication.locale
- the locale.
TServerNotAvailableException
- signals that the Tamino database is not available.public TConnection newConnection(TDatabase database, java.util.Locale locale) throws TServerNotAvailableException
database
- the Tamino database.locale
- the locale.
TServerNotAvailableException
- signals that the Tamino database is not available.public TConnection newConnection(TDatabase database, java.lang.String userId, java.lang.String password, java.util.Locale locale) throws TServerNotAvailableException
database
- the Tamino database.userId
- the user id to be used for authentication.password
- the password to be used for authentication.locale
- the locale.
TServerNotAvailableException
- signals that the Tamino database is not available.public TConnection newConnection(TDatabase database, java.lang.String domain, java.lang.String userId, java.lang.String password, java.util.Locale locale) throws TServerNotAvailableException
database
- the Tamino database.domain
- the domain to be used for authenticationuserId
- the user id to be used for authentication.password
- the password to be used for authentication.locale
- the locale.
TServerNotAvailableException
- signals that the Tamino database is not available.public TConnection newConnection(java.lang.String databaseUri, SecurityToken token) throws TServerNotAvailableException
TServerNotAvailableException
public TConnection newConnection(TDatabase database, SecurityToken token) throws TServerNotAvailableException
database
- the database objecttoken
- the security token object
TServerNotAvailableException
public TConnection newConnection(java.lang.String databaseUri, SecurityToken token, java.util.Locale locale) throws TServerNotAvailableException
databaseUri
- the database URItoken
- the security token objectlocale
- the locale.
TServerNotAvailableException
public TConnection newConnection(java.lang.String databaseUri, SecurityToken token, java.util.Locale locale, java.util.Properties sslProperties) throws TServerNotAvailableException
databaseUri
- the database URItoken
- the security token objectlocale
- the locale.sslProperties
- the ssl properties (internal use)
TServerNotAvailableException
public TConnection newConnection(TDatabase database, SecurityToken token, java.util.Locale locale) throws TServerNotAvailableException
database
- the TDatabase objecttoken
- the security token objectlocale
- the locale.
TServerNotAvailableException
public java.util.Set<TDatabase> getDatabases(java.lang.String taminoHostUri) throws TServerNotAvailableException
This feature requires Tamino 4.2
taminoHostUri
- the uri of the Tamino host, e.g. "http://myserver/tamino".
TServerNotAvailableException
- signals problems retrieving the list.public java.util.Set<TDatabase> getDatabases(java.lang.String taminoHostUri, java.lang.String userId, java.lang.String password) throws TServerNotAvailableException
This feature requires Tamino 4.2
taminoHostUri
- the uri of the Tamino host, e.g. "http://myserver/tamino".userId
- the user id to be used for authentication.password
- the password to be used for authentication.
TServerNotAvailableException
- signals problems retrieving the list.public java.util.Set<TDatabase> getDatabases(java.lang.String taminoHostUri, java.lang.String domain, java.lang.String userId, java.lang.String password) throws TServerNotAvailableException
This feature requires Tamino 4.2
taminoHostUri
- the uri of the Tamino host, e.g. "http://myserver/tamino".domain
- the domain to be used for authenticationuserId
- the user id to be used for authentication.password
- the password to be used for authentication.
TServerNotAvailableException
- signals problems retrieving the list.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |