|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sibvisions.rad.server.config.DBObjects
public final class DBObjects
The DBObjects
class declares global accessible names
for database objects.
Method Summary | |
---|---|
static java.lang.String |
getColumnName(IConfiguration pConfig,
java.lang.String pTable,
java.lang.String pColumn)
Gets the name of a column, as it is in the database. |
static java.lang.String |
getTableName(IConfiguration pConfig,
java.lang.String pTable)
Gets the name of a table, as it is in the database. |
static java.lang.String |
getYesValue(IConfiguration pConfig)
Gets the yes value for yes/no fields. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String getTableName(IConfiguration pConfig, java.lang.String pTable) throws java.lang.Exception
<application>
<databaseobjects>
<TABLENAME>newname</TABLENAME>
</databaseobjects>
</application>
pConfig
- the application configurationpTable
- the table alias
java.lang.Exception
- if the application configuration is invalidpublic static java.lang.String getColumnName(IConfiguration pConfig, java.lang.String pTable, java.lang.String pColumn) throws java.lang.Exception
<application>
<databaseobjects>
<TABLENAME_COLUMNNAME>newname</TABLENAME_COLUMNNAME>
</databaseobjects>
</application>
pConfig
- the application configurationpTable
- the table aliaspColumn
- the column alias
java.lang.Exception
- if the application configuration is invalidpublic static java.lang.String getYesValue(IConfiguration pConfig) throws java.lang.Exception
<application>
<databaseobjects>
<yesvalue>X</yesvalue>
</databaseobjects>
</application>
pConfig
- the application configuration
DEFAULT_YESVALUE
value if
the value is not configured.
java.lang.Exception
- if the application configuration is invalid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |