public class KKDbMapMgr
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log
the log
|
| Constructor and Description |
|---|
KKDbMapMgr(DbPortabilityIf portRules)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.torque.adapter.Adapter |
getAdapter(java.lang.String db)
Get the Adapter for the specified database
|
static java.lang.String |
getDateString(java.util.Date date)
This method is used to format any date string.
|
org.apache.torque.map.DatabaseMap |
getDbMap() |
static java.util.HashMap<java.lang.String,java.lang.String> |
getDbObjectNamesReverseHash() |
static DbPortabilityIf |
getPortabilityRules() |
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.
|
public KKDbMapMgr(DbPortabilityIf portRules)
portRules - a class that implements the "portability rules" for the current databasepublic void standardiseNames()
throws com.konakart.app.KKException
com.konakart.app.KKException - an unexpected KKException exceptionpublic org.apache.torque.map.DatabaseMap getDbMap()
throws org.apache.torque.TorqueException
org.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)public static java.util.HashMap<java.lang.String,java.lang.String> getDbObjectNamesReverseHash()
public static DbPortabilityIf getPortabilityRules()
public static org.apache.torque.adapter.Adapter getAdapter(java.lang.String db)
throws org.apache.torque.TorqueException
db - the dborg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)public static java.lang.String getDateString(java.util.Date date)
throws org.apache.torque.TorqueException
date - the Date to formatorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)Copyright © 2018 DS Data Systems UK Ltd.