|
||||||||||
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 String |
getColumnName(IConfiguration pConfig,
String pTable,
String pColumn)
Gets the name of a column, as it is in the database. |
static String |
getTableName(IConfiguration pConfig,
String pTable)
Gets the name of a table, as it is in the database. |
static 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 String getTableName(IConfiguration pConfig, String pTable) throws Exception
<application>
<databaseobjects>
<TABLENAME>newname</TABLENAME>
</databaseobjects>
</application>
pConfig
- the application configurationpTable
- the table alias
Exception
- if the application configuration is invalidpublic static String getColumnName(IConfiguration pConfig, String pTable, String pColumn) throws Exception
<application>
<databaseobjects>
<TABLENAME_COLUMNNAME>newname</TABLENAME_COLUMNNAME>
</databaseobjects>
</application>
pConfig
- the application configurationpTable
- the table aliaspColumn
- the column alias
Exception
- if the application configuration is invalidpublic static String getYesValue(IConfiguration pConfig) throws Exception
<application>
<databaseobjects>
<yesvalue>X</yesvalue>
</databaseobjects>
</application>
pConfig
- the application configuration
DEFAULT_YESVALUE
value if
the value is not configured.
Exception
- if the application configuration is invalid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |