public final class ServiceUtil extends Object
Constructor and Description |
---|
ServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
getDatasourceId()
It retrieves the data source Id client/server.
|
static String |
getDBCreation()
It retrieves the current database schema creation methodology.
|
static String |
getDBDialect()
It retrieves the current database SQL dialect name.
|
static String |
getDBDriver()
It retrieves the current database driver name.
|
static String |
getDBLog()
It retrieves the current database logging flag.
|
static String |
getDBPassword()
It retrieves the current database user's password.
|
static String |
getDBSessionContext()
It retrieves the current database session context scope.
|
static String |
getDBUrl()
It retrieves the current database access URL.
|
static String |
getDBUser()
It retrieves the current database user name.
|
static String |
getDefaultDBDriver()
It retrieves the default database driver.
|
static List<String> |
getInstalledDrivers()
It retrieves the list of the available drivers.
|
static Object |
getService(Class<?> classType)
It retrieves the entity's service implementation by the service class.
|
static String |
getTablePrefix()
It retrieves the table prefix for database.
|
static void |
switchDriver(String driverName)
It switches between drivers.
|
public static List<String> getInstalledDrivers()
public static void switchDriver(String driverName)
driverName
- Name of the driver what is defined in SystemConstant
.public static Object getService(Class<?> classType)
classType
- Any class type what is a service class. Service classes should be defined as a Bean.public static String getDefaultDBDriver()
public static String getTablePrefix()
public static String getDatasourceId()
public static String getDBDriver()
Configuration
.public static String getDBUrl()
public static String getDBUser()
public static String getDBPassword()
public static String getDBDialect()
public static String getDBCreation()
public static String getDBSessionContext()
public static String getDBLog()
Copyright © 2015. All rights reserved.