|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.konakart.app.KKDbMapMgr
public class KKDbMapMgr
This is a manager for manipulating the Torque dbMaps
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
log
the log |
| Constructor Summary | |
|---|---|
KKDbMapMgr(DbPortabilityIf portRules)
Constructor |
|
| Method Summary | |
|---|---|
org.apache.torque.map.DatabaseMap |
getDbMap()
|
static java.util.HashMap<java.lang.String,java.lang.String> |
getDbObjectNamesReverseHash()
|
static java.lang.String |
getOriginalColumn(java.lang.String standardCol)
Return a "non-standardised" column name. |
static java.lang.String |
getStandardColumn(java.lang.String oldCol)
Return a "standardised" column name. |
void |
standardiseNames()
Runs through the internal Torque structures and ensures that the database table, column and sequence names are "standardised" according to the rules of the database that is currently being used. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public KKDbMapMgr(DbPortabilityIf portRules)
portRules - a class that implements the "portability rules" for the current database| Method Detail |
|---|
public void standardiseNames()
throws KKException
KKExceptionpublic static java.lang.String getStandardColumn(java.lang.String oldCol)
oldCol -
public static java.lang.String getOriginalColumn(java.lang.String standardCol)
standardCol -
public org.apache.torque.map.DatabaseMap getDbMap()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueExceptionpublic static java.util.HashMap<java.lang.String,java.lang.String> getDbObjectNamesReverseHash()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||