public class SqlFactory extends ConfigReader
| Modifier and Type | Field and Description |
|---|---|
static String |
MYSQL_ENGINE_PROPERTY |
static String |
SQL_DATABASE_PROPERTY |
static String |
SQL_PASSWORD_PROPERTY |
static String |
SQL_PORT_PROPERTY
Name of the file assumed to hold the SQl configurations.
|
static String |
SQL_USER_PROPERTY |
static String |
TEST_SQL_DATABASE_PROPERTY |
static String |
TEST_SQL_PASSWORD_PROPERTY |
static String |
TEST_SQL_USER_PROPERTY |
CONFIG_FILE_NAME, CONFIG_FILE_PATH_PROPERTY, CONFIG_FILE_PATH_SOURCE_PROPERTY, LOCAL_FILE_NAME, LOG_PROPERTIES_FILE, loggerSetup, useTest| Constructor and Description |
|---|
SqlFactory() |
| Modifier and Type | Method and Description |
|---|---|
static String |
configs() |
static SQLAccess |
createASQLAccess(String database)
Create a wrapper around the live SQL Database,
using the database name, user name and password found in the config file.
|
static SQLAccess |
createTheSQLAccess()
Create a wrapper around the live SQL Database,
using the database name, user name and password found in the config file.
|
static String |
engineSetting() |
static void |
setUseMySQL(boolean forceMySQL) |
configureLogger, getInputStream, getProperties, getProperties, getProperty, inTestMode, logToConsole, useTestpublic static final String SQL_PORT_PROPERTY
public static final String SQL_USER_PROPERTY
public static final String SQL_PASSWORD_PROPERTY
public static final String SQL_DATABASE_PROPERTY
public static final String TEST_SQL_DATABASE_PROPERTY
public static final String TEST_SQL_USER_PROPERTY
public static final String TEST_SQL_PASSWORD_PROPERTY
public static final String MYSQL_ENGINE_PROPERTY
public static SQLAccess createTheSQLAccess() throws BridgeDBException
BridgeDBExceptionpublic static SQLAccess createASQLAccess(String database) throws BridgeDBException
BridgeDBExceptionpublic static void setUseMySQL(boolean forceMySQL)
public static String configs()
public static String engineSetting()
Copyright © 2006–2017 BridgeDb project. All rights reserved.