public class JdbcUtils extends Object
| Constructor and Description |
|---|
JdbcUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.wso2.carbon.database.utils.jdbc.JdbcTemplate |
getNewTemplate()
Get a new Jdbc Template.
|
static boolean |
isDB2DB()
Check if the DB is DB2.
|
static boolean |
isH2MySqlOrPostgresDB()
Check if the DB is H2, MySQL or Postgres.
|
static boolean |
isInformixDB()
Check if the DB is Informix.
|
static boolean |
isMSSqlDB()
Check if the DB is MSSql.
|
public static org.wso2.carbon.database.utils.jdbc.JdbcTemplate getNewTemplate()
public static boolean isH2MySqlOrPostgresDB()
throws org.wso2.carbon.database.utils.jdbc.exceptions.DataAccessException
org.wso2.carbon.database.utils.jdbc.exceptions.DataAccessException - if error occurred while checking the DB metadata.public static boolean isDB2DB()
throws org.wso2.carbon.database.utils.jdbc.exceptions.DataAccessException
org.wso2.carbon.database.utils.jdbc.exceptions.DataAccessException - if error occurred while checking the DB metadata.public static boolean isMSSqlDB()
throws org.wso2.carbon.database.utils.jdbc.exceptions.DataAccessException
org.wso2.carbon.database.utils.jdbc.exceptions.DataAccessException - if error occurred while checking the DB metadata.public static boolean isInformixDB()
throws org.wso2.carbon.database.utils.jdbc.exceptions.DataAccessException
org.wso2.carbon.database.utils.jdbc.exceptions.DataAccessException - if error occurred while checking the DB metadata.Copyright © 2020 WSO2. All rights reserved.