Class JdbcPropertyAdapter
- java.lang.Object
-
- com.ibm.fhir.database.utils.common.JdbcPropertyAdapter
-
- Direct Known Subclasses:
Db2PropertyAdapter
,DerbyPropertyAdapter
,PostgreSqlPropertyAdapter
public class JdbcPropertyAdapter extends Object
Base adapter for common JDBC connection properties
-
-
Field Summary
Fields Modifier and Type Field Description static String
DATABASE_KEY
static String
DEFAULT_SCHEMA_KEY
static String
HOST_KEY
static String
PASSWORD_KEY
static String
PORT_KEY
protected Properties
properties
static String
USER_KEY
-
Constructor Summary
Constructors Constructor Description JdbcPropertyAdapter(Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDatabase()
String
getDefaultSchema()
void
getExtraProperties(Properties props)
Get all the extra properties into the given props argumentString
getHost()
String
getPassword()
int
getPort()
protected Properties
getProperties()
String
getUser()
boolean
isValid()
void
setDatabase(String db)
void
setDefaultSchema(String schema)
void
setHost(String host)
void
setPassword(String pw)
void
setPort(int port)
void
setUser(String user)
-
-
-
Field Detail
-
properties
protected final Properties properties
-
DATABASE_KEY
public static final String DATABASE_KEY
- See Also:
- Constant Field Values
-
USER_KEY
public static final String USER_KEY
- See Also:
- Constant Field Values
-
PASSWORD_KEY
public static final String PASSWORD_KEY
- See Also:
- Constant Field Values
-
HOST_KEY
public static final String HOST_KEY
- See Also:
- Constant Field Values
-
PORT_KEY
public static final String PORT_KEY
- See Also:
- Constant Field Values
-
DEFAULT_SCHEMA_KEY
public static final String DEFAULT_SCHEMA_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JdbcPropertyAdapter
public JdbcPropertyAdapter(Properties properties)
-
-
Method Detail
-
getDatabase
public String getDatabase()
-
setDatabase
public void setDatabase(String db)
-
setHost
public void setHost(String host)
-
getHost
public String getHost()
-
setPort
public void setPort(int port)
-
getPort
public int getPort()
-
getUser
public String getUser()
-
setUser
public void setUser(String user)
-
getPassword
public String getPassword()
-
setPassword
public void setPassword(String pw)
-
setDefaultSchema
public void setDefaultSchema(String schema)
-
getDefaultSchema
public String getDefaultSchema()
-
getProperties
protected Properties getProperties()
-
isValid
public boolean isValid()
-
getExtraProperties
public void getExtraProperties(Properties props)
Get all the extra properties into the given props argument- Parameters:
props
-
-
-