public class DataIntegrityChecker
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
adminEngineClassname |
private static boolean |
attemptRepair |
private static boolean |
categoriesShared |
private static boolean |
customersShared |
private static java.lang.String |
customOption |
private static int |
dataArea |
private static KKAdminIf |
eng |
private static int |
engineMode |
static org.apache.commons.logging.Log |
log
logger
|
private static java.lang.String |
password |
private static boolean |
productsShared |
(package private) static java.lang.String |
propsFileName |
private static java.lang.String |
storeId |
(package private) static java.lang.String |
usage |
private static java.lang.String |
username |
Constructor and Description |
---|
DataIntegrityChecker() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkData()
Check the Integrity of the Data
|
static void |
checkData(java.lang.String[] args)
Check the Integrity of the KonaKart Data.
|
static java.lang.String |
getAdminEngineClassname() |
private static KKAdminIf |
getAnEng() |
static java.lang.String |
getCustomOption() |
static int |
getDataArea() |
static KKAdminIf |
getEng() |
static int |
getEngineMode() |
static java.lang.String |
getPassword() |
static java.lang.String |
getStoreId() |
static java.lang.String |
getUsername() |
static boolean |
isAttemptRepair() |
static boolean |
isCategoriesShared() |
static boolean |
isCustomersShared() |
static boolean |
isMultiStoreSingleDB() |
static boolean |
isProductsShared() |
static void |
main(java.lang.String[] args) |
static void |
setAdminEngineClassname(java.lang.String adminEngineClassname) |
static void |
setAttemptRepair(boolean attemptRepair) |
static void |
setCategoriesShared(boolean categoriesShared) |
static void |
setCustomersShared(boolean customersShared) |
static void |
setCustomOption(java.lang.String customOption) |
static void |
setDataArea(int dataArea) |
static void |
setEng(KKAdminIf eng) |
static void |
setEngineMode(int engineMode) |
static void |
setPassword(java.lang.String password) |
static void |
setProductsShared(boolean productsShared) |
static void |
setStoreId(java.lang.String storeId) |
static void |
setUsername(java.lang.String username) |
public static org.apache.commons.logging.Log log
static final java.lang.String usage
static java.lang.String propsFileName
private static java.lang.String storeId
private static java.lang.String username
private static java.lang.String password
private static java.lang.String adminEngineClassname
private static java.lang.String customOption
private static int dataArea
private static boolean attemptRepair
private static int engineMode
private static boolean customersShared
private static boolean productsShared
private static boolean categoriesShared
private static KKAdminIf eng
public static void main(java.lang.String[] args)
args
- the argspublic static void checkData(java.lang.String[] args)
args
- command line argumentspublic static boolean checkData() throws KKAdminException, org.apache.torque.TorqueException, java.lang.IllegalArgumentException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException, java.lang.reflect.InvocationTargetException
KKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)java.lang.reflect.InvocationTargetException
- an unexpected InvocationTargetException exceptionjava.lang.ClassNotFoundException
- an unexpected ClassNotFoundException exceptionjava.lang.IllegalAccessException
- an unexpected IllegalAccessException exceptionjava.lang.InstantiationException
- an unexpected InstantiationException exceptionjava.lang.IllegalArgumentException
- an unexpected IllegalArgumentException exceptionprivate static KKAdminIf getAnEng() throws KKAdminException, java.lang.IllegalArgumentException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException, java.lang.reflect.InvocationTargetException
KKAdminException
java.lang.IllegalArgumentException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
java.lang.reflect.InvocationTargetException
public static boolean isMultiStoreSingleDB()
public static boolean isCustomersShared()
public static void setCustomersShared(boolean customersShared)
customersShared
- the customersShared to setpublic static boolean isProductsShared()
public static void setProductsShared(boolean productsShared)
productsShared
- the productsShared to setpublic static java.lang.String getStoreId()
public static void setStoreId(java.lang.String storeId)
storeId
- the storeId to setpublic static java.lang.String getUsername()
public static void setUsername(java.lang.String username)
username
- the username to setpublic static java.lang.String getPassword()
public static void setPassword(java.lang.String password)
password
- the password to setpublic static int getDataArea()
public static void setDataArea(int dataArea)
dataArea
- the dataArea to setpublic static boolean isAttemptRepair()
public static void setAttemptRepair(boolean attemptRepair)
attemptRepair
- the attemptRepair to setpublic static int getEngineMode()
public static void setEngineMode(int engineMode)
engineMode
- the engineMode to setpublic static java.lang.String getAdminEngineClassname()
public static void setAdminEngineClassname(java.lang.String adminEngineClassname)
adminEngineClassname
- the adminEngineClassname to setpublic static KKAdminIf getEng()
public static void setEng(KKAdminIf eng)
eng
- the eng to setpublic static java.lang.String getCustomOption()
public static void setCustomOption(java.lang.String customOption)
customOption
- the customOption to setpublic static boolean isCategoriesShared()
public static void setCategoriesShared(boolean categoriesShared)
categoriesShared
- the categoriesShared to setCopyright © 2018 DS Data Systems UK Ltd.