|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.sahits.codegen.sql.model.ModelDataProvider
public class ModelDataProvider
This class provides the model interface toward DTP
| Constructor Summary | |
|---|---|
ModelDataProvider()
Default constructor initializing the connection profiles |
|
| Method Summary | |
|---|---|
IConnectionProfile |
getConnectionProfile(java.lang.String selectedName)
Retrieve the connection profile by name. |
protected Database |
getDatabaseForProfile(IConnectionProfile profile)
Retrieve the managed database for the given connection profile |
java.util.List<java.lang.String> |
getFieldNames(Table t)
Retrieve a list of all field names |
java.util.List<java.lang.String> |
getOwner(IConnectionProfile profile)
Retrieve all owner of the database |
IConnectionProfile |
getProfileByDatabase(Database db)
Retrieve a connection profile based on a database |
java.util.List<java.lang.String> |
getRegisteredConnectionProfiles()
Retrieve the names of the connection files |
Table |
getTable(IConnectionProfile profile,
java.lang.String schemaName,
java.lang.String tableName)
Retrieve a table by its name |
java.util.List<java.lang.String> |
getTables(IConnectionProfile profile,
java.lang.String schemaName)
Retrieve the tables of a schema |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModelDataProvider()
| Method Detail |
|---|
public final java.util.List<java.lang.String> getRegisteredConnectionProfiles()
public final IConnectionProfile getConnectionProfile(java.lang.String selectedName)
selectedName -
IConnectionProfilepublic final java.util.List<java.lang.String> getOwner(IConnectionProfile profile)
profile - Connection profile of the database
protected final Database getDatabaseForProfile(IConnectionProfile profile)
profile - connection profile
public final java.util.List<java.lang.String> getTables(IConnectionProfile profile,
java.lang.String schemaName)
profile - Connection profileschemaName - name of the schema
public final Table getTable(IConnectionProfile profile,
java.lang.String schemaName,
java.lang.String tableName)
profile - Connection profileschemaName - name of the schematableName - name of the table
public final java.util.List<java.lang.String> getFieldNames(Table t)
t - Table
public IConnectionProfile getProfileByDatabase(Database db)
db - database to retrieve the connection profile for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||