public Connection | connect(String connectString) Connects to a database, using a connection string.
Possible cases:
connect | public Connection connect(String connectString) throws SQLException(Code) | | Connects to a database, using a connection string.
Possible cases:
"user/pass@ident" |
Connects to ident as user with password pass |
"user/@ident" |
Connects to ident connection as user with empty password |
"user@ident" |
Connects to ident connection as user, without specifying a password (will be prompted for pass) |
"@ident" |
Connects to ident connection, without specifying user or password. If default user is specified that will be used, if not: will be prompted for user/pass |
"user/pass" |
Connects to default connection as user, with password pass |
"user/" |
Connects to default connection as user, with empty password |
"user" |
Connects to default connection as user, without specifying a password (will be prompted for pass) |
"" |
Connects to default connection, without specifying user or password. If default user is specified that will be used, if not: will be prompted for user/pass |
Parameters: connectString - the connect string, following the conditions as specified above. the opened Connection throws: SQLException - if the connection could not be opened.
getDefaultIdentifier | public String getDefaultIdentifier()(Code) | | Returns the default identifier that is used when no identifier is passed as a connect string.
the default identifier that is used when no identifier is passed as a connect string. |
getPredefinedConnectionIdentifiers | public Set<String> getPredefinedConnectionIdentifiers()(Code) | | Return a set of identifier strings.
a set of identifier strings. |
getSchema | public String getSchema() throws SQLException(Code) | | Return the used schema.
NOTE: hack because Oracle uses as a schema the current username
the used schema. |
treatDateAsTimestamp | public boolean treatDateAsTimestamp()(Code) | | |
|
|