Package tilda.db
Class ConnectionPool
- java.lang.Object
-
- tilda.db.ConnectionPool
-
public class ConnectionPool extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.Map<java.lang.String,org.apache.commons.dbcp2.BasicDataSource>
_DataSourcesById
protected static java.util.Map<java.lang.String,org.apache.commons.dbcp2.BasicDataSource>
_DataSourcesBySig
protected static java.lang.String[]
_DependencySchemas
protected static java.util.Map<java.lang.String,java.lang.String>
_EmailConfigDetails
protected static boolean
_InitDebug
protected static java.util.Map<java.lang.String,Schema>
_Schemas
protected static boolean
_SkipTildaLoading
protected static boolean
_SkipValidation
protected static java.util.Map<java.lang.String,java.lang.String>
_UniqueDataSourceIds
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
autoInit()
static Connection
get(java.lang.String Id)
static Connection
get(java.lang.String Id, java.lang.String userId, java.lang.String userPswd)
static java.util.Map<java.lang.String,java.lang.String>
getAllDataSourceIds()
static java.util.Map<java.lang.String,java.lang.String>
getAllTenantDataSourceIds()
static java.util.Iterator<java.lang.String>
getConnectionListFromParam(java.lang.String cmdLineParam)
returns a list of connection IDs based on a command-line type of parameter containing a comma-separated list of connextion IDs, of one (and only one) of the following values: - ALL: returns all the connections active in the system - ALL_TENANTS: returns the connections for all tenants in the systemstatic java.lang.String
getDBDetails(java.lang.String Id)
static DatabaseMeta
getDBMeta(java.lang.String string)
static java.util.Map<java.lang.String,java.lang.String>
getEmailConfig()
static java.lang.String
getSchemaPackage(java.lang.String schemaName)
static boolean
isMultiTenant()
static void
registerSchema(Schema S)
-
-
-
Field Detail
-
_UniqueDataSourceIds
protected static java.util.Map<java.lang.String,java.lang.String> _UniqueDataSourceIds
-
_DataSourcesById
protected static java.util.Map<java.lang.String,org.apache.commons.dbcp2.BasicDataSource> _DataSourcesById
-
_DataSourcesBySig
protected static java.util.Map<java.lang.String,org.apache.commons.dbcp2.BasicDataSource> _DataSourcesBySig
-
_Schemas
protected static java.util.Map<java.lang.String,Schema> _Schemas
-
_EmailConfigDetails
protected static java.util.Map<java.lang.String,java.lang.String> _EmailConfigDetails
-
_InitDebug
protected static boolean _InitDebug
-
_SkipValidation
protected static boolean _SkipValidation
-
_SkipTildaLoading
protected static boolean _SkipTildaLoading
-
_DependencySchemas
protected static java.lang.String[] _DependencySchemas
-
-
Method Detail
-
autoInit
public static void autoInit()
-
get
public static Connection get(java.lang.String Id) throws java.lang.Exception
- Throws:
java.lang.Exception
-
get
public static Connection get(java.lang.String Id, java.lang.String userId, java.lang.String userPswd) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getDBDetails
public static java.lang.String getDBDetails(java.lang.String Id)
-
getSchemaPackage
public static java.lang.String getSchemaPackage(java.lang.String schemaName)
-
getEmailConfig
public static java.util.Map<java.lang.String,java.lang.String> getEmailConfig()
-
getAllDataSourceIds
public static java.util.Map<java.lang.String,java.lang.String> getAllDataSourceIds()
-
getAllTenantDataSourceIds
public static java.util.Map<java.lang.String,java.lang.String> getAllTenantDataSourceIds()
-
isMultiTenant
public static boolean isMultiTenant()
-
getDBMeta
public static DatabaseMeta getDBMeta(java.lang.String string)
-
getConnectionListFromParam
public static java.util.Iterator<java.lang.String> getConnectionListFromParam(java.lang.String cmdLineParam)
returns a list of connection IDs based on a command-line type of parameter containing a comma-separated list of connextion IDs, of one (and only one) of the following values: - ALL: returns all the connections active in the system - ALL_TENANTS: returns the connections for all tenants in the system- Parameters:
cmdLineParam
-- Returns:
-
registerSchema
public static void registerSchema(Schema S)
-
-