public class DBConnection extends Object
Modifier and Type | Field and Description |
---|---|
protected org.restlet.Context |
context |
protected String |
namedConfig |
protected static AMBITAppConfigProperties |
properties |
Constructor and Description |
---|
DBConnection(org.restlet.Context context) |
Modifier and Type | Method and Description |
---|---|
boolean |
allowDBCreate() |
boolean |
dataset_prefixed_compound_uri() |
Connection |
getConnection() |
Connection |
getConnection(int maxRetry,
boolean testIt,
int testTimeout) |
Connection |
getConnection(String namedConfig) |
Connection |
getConnection(String user,
String password) |
Connection |
getConnectionNamedConfig(String namedConfig,
String connectionURI,
int maxRetry,
boolean testIt,
int testTimeout) |
protected String |
getConnectionURI() |
protected String |
getConnectionURI(String user,
String password) |
org.restlet.Context |
getContext() |
LoginInfo |
getLoginInfo() |
String |
getNamedConfig() |
String |
getProperty(String key) |
String |
rdfWriter() |
void |
setContext(org.restlet.Context context) |
void |
setNamedConfig(String namedConfig) |
protected static AMBITAppConfigProperties properties
protected org.restlet.Context context
protected String namedConfig
public String getNamedConfig()
public void setNamedConfig(String namedConfig)
public org.restlet.Context getContext()
public void setContext(org.restlet.Context context)
public boolean allowDBCreate()
public String rdfWriter()
public boolean dataset_prefixed_compound_uri()
public LoginInfo getLoginInfo()
protected String getConnectionURI() throws net.idea.modbcum.i.exceptions.AmbitException
net.idea.modbcum.i.exceptions.AmbitException
protected String getConnectionURI(String user, String password) throws net.idea.modbcum.i.exceptions.AmbitException
net.idea.modbcum.i.exceptions.AmbitException
public Connection getConnection(String user, String password) throws net.idea.modbcum.i.exceptions.AmbitException, SQLException
net.idea.modbcum.i.exceptions.AmbitException
SQLException
public Connection getConnection() throws net.idea.modbcum.i.exceptions.AmbitException, SQLException
net.idea.modbcum.i.exceptions.AmbitException
SQLException
public Connection getConnection(int maxRetry, boolean testIt, int testTimeout) throws net.idea.modbcum.i.exceptions.AmbitException, SQLException
net.idea.modbcum.i.exceptions.AmbitException
SQLException
public Connection getConnection(String namedConfig) throws net.idea.modbcum.i.exceptions.AmbitException, SQLException
net.idea.modbcum.i.exceptions.AmbitException
SQLException
public Connection getConnectionNamedConfig(String namedConfig, String connectionURI, int maxRetry, boolean testIt, int testTimeout) throws net.idea.modbcum.i.exceptions.AmbitException, SQLException
net.idea.modbcum.i.exceptions.AmbitException
SQLException
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.