|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.sahits.codegen.java.wizards.DTPConnection
public class DTPConnection
This class provides basic functionality to access data through DTP
| Field Summary | |
|---|---|
protected IConnectionProfile |
profile
Connection profile |
| Constructor Summary | |
|---|---|
DTPConnection(java.lang.String connectionProfileName)
Constructor initializing the connection profile |
|
| Method Summary | |
|---|---|
IConnectionProfile |
getConnectionProfile()
Retrieve the connection-profile |
IConnectionProfile |
getConnectionProfile(java.lang.String selectedName)
Retrieve the connection profile by name. |
java.lang.String |
getConnectionURL()
Retrieve the connection URL for the specified profile |
java.lang.String |
getDatabase(IConnectionProfile profile)
Retrieve the database name of the profile. |
protected Database |
getDatabaseForProfile(IConnectionProfile profile)
Retrieve the managed database for the given connection profile |
java.lang.String |
getDriverClass()
Retrieve the connection driver class for the specified URL |
java.lang.String |
getHost(IConnectionProfile profile)
Retrieve the host name of the profile |
java.util.List<java.lang.String> |
getOwner(IConnectionProfile profile)
Retrieve all owner of the database |
java.lang.String |
getPortNumber(IConnectionProfile profile)
Retrieve the port number from the profile |
static IConnectionProfile |
getProfile(java.lang.String profileName)
Connection profile for the given profile name |
static java.util.List<java.lang.String> |
getRegisteredConnectionProfiles()
Retrieve the names of the resisted connections |
java.util.List<Table> |
getTable(IConnectionProfile profile,
java.lang.String schemaName)
Retrieve all tables of a Schema |
protected Table |
getTable(java.lang.String schemaName,
java.lang.String tableName)
Retrieve the table of the connection profile for a given schema and table name |
java.lang.String |
getVenorNameUpperCase(IConnectionProfile profile)
Retrieve the vendor of the database-product |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected IConnectionProfile profile
| Constructor Detail |
|---|
public DTPConnection(java.lang.String connectionProfileName)
connectionProfileName - | Method Detail |
|---|
public final IConnectionProfile getConnectionProfile()
public final IConnectionProfile getConnectionProfile(java.lang.String selectedName)
selectedName -
IConnectionProfileprotected final Database getDatabaseForProfile(IConnectionProfile profile)
profile - connection profile
protected final Table getTable(java.lang.String schemaName,
java.lang.String tableName)
schemaName - tableName -
public final java.util.List<Table> getTable(IConnectionProfile profile,
java.lang.String schemaName)
profile - Connection profileschemaName - name of the schema
public final java.util.List<java.lang.String> getOwner(IConnectionProfile profile)
profile - Connection profile of the database
public static java.util.List<java.lang.String> getRegisteredConnectionProfiles()
public static IConnectionProfile getProfile(java.lang.String profileName)
profileName -
public final java.lang.String getVenorNameUpperCase(IConnectionProfile profile)
profile - of the database
public final java.lang.String getPortNumber(IConnectionProfile profile)
profile - of the database
public final java.lang.String getHost(IConnectionProfile profile)
profile - of the database
public final java.lang.String getDatabase(IConnectionProfile profile)
profile - of the database
public final java.lang.String getConnectionURL()
public final java.lang.String getDriverClass()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||