public class GrouperLoaderDb extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GrouperLoaderDb.DatabaseConfigType |
Constructor and Description |
---|
GrouperLoaderDb()
empty constructor
|
GrouperLoaderDb(String connectionName1)
construct with all fields
NOTE: this constructor is used by grouperClient, if you change it here, change it there
|
GrouperLoaderDb(String user1,
String pass1,
String url1,
String driver1)
construct with all fields
NOTE: this constructor is used by grouperClient, if you change it here, change it there
|
Modifier and Type | Method and Description |
---|---|
static void |
closeAllDataSources() |
static GrouperLoaderDb.DatabaseConfigType |
configTypeWithDatabaseConnection(String connectionName)
see which config file we are dealing with (as a base)
|
Connection |
connection()
get a connection from the db
NOTE: this method is used by grouperClient, if you change it here, change it there
|
static boolean |
coreConfigOption(String configItemName) |
String |
getDriver()
db driver to use to login
|
String |
getPass()
pass to login to db
|
String |
getUrl()
url of the db to login to
|
String |
getUser()
user to login to db
|
void |
initProperties() |
void |
refreshConnectionsIfNeeded() |
String |
retrievePoolConfigOrDefaultString(String configItemName)
look in config file for config entry if exists, if not then get the default
|
void |
setDriver(String driver1)
db driver to use to login
|
void |
setPass(String pass1)
pass to login to db
|
void |
setPoolProperties() |
void |
setUrl(String url1)
url of the db to login to
|
void |
setUser(String user1)
user to login to db
|
String |
toString() |
public GrouperLoaderDb()
public GrouperLoaderDb(String connectionName1)
connectionName1
- connection name in grouper loader or grouper client configpublic static void closeAllDataSources()
public Connection connection()
public void initProperties()
public void setPoolProperties()
public void refreshConnectionsIfNeeded()
public static boolean coreConfigOption(String configItemName)
configItemName
- public static GrouperLoaderDb.DatabaseConfigType configTypeWithDatabaseConnection(String connectionName)
connectionName
- configItemName
- public String retrievePoolConfigOrDefaultString(String configItemName)
isClient
- configName
- configItemName
- useGrouperHibernateAsDefault
- public String toString()
toString
in class Object
Object.toString()
public String getUser()
public void setUser(String user1)
user1
- the user to setpublic String getPass()
public void setPass(String pass1)
pass1
- the pass to setpublic String getUrl()
public void setUrl(String url1)
url1
- the url to setpublic String getDriver()
public void setDriver(String driver1)
driver1
- the driver to setCopyright © 2016 Internet2. All rights reserved.