Package net.sf.jasperreports.data.jdbc
Interface JdbcDataAdapter
-
- All Superinterfaces:
ClasspathAwareDataAdapter
,DataAdapter
- All Known Subinterfaces:
MondrianDataAdapter
- All Known Implementing Classes:
JdbcDataAdapterImpl
,MondrianDataAdapterImpl
public interface JdbcDataAdapter extends ClasspathAwareDataAdapter
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTY_DEFAULT_AUTO_COMMIT
static String
PROPERTY_DEFAULT_READ_ONLY
static String
PROPERTY_DEFAULT_TRANSACTION_ISOLATION
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Boolean
getAutoCommit()
String
getDatabase()
String
getDriver()
String
getPassword()
Map<String,String>
getProperties()
Returns the properties passed to the driver when creating connections.Boolean
getReadOnly()
String
getServerAddress()
TransactionIsolation
getTransactionIsolation()
String
getUrl()
String
getUsername()
boolean
isSavePassword()
void
setAutoCommit(Boolean autoCommit)
void
setDatabase(String database)
void
setDriver(String driver)
void
setPassword(String password)
void
setProperties(Map<String,String> properties)
Set the properties passed to the driver when creating connections.void
setReadOnly(Boolean readOnly)
void
setSavePassword(boolean savePassword)
void
setServerAddress(String serverAddress)
void
setTransactionIsolation(TransactionIsolation isolation)
void
setUrl(String url)
void
setUsername(String username)
-
Methods inherited from interface net.sf.jasperreports.dataadapters.ClasspathAwareDataAdapter
getClasspath, setClasspath
-
Methods inherited from interface net.sf.jasperreports.dataadapters.DataAdapter
getName, setName
-
-
-
-
Field Detail
-
PROPERTY_DEFAULT_AUTO_COMMIT
static final String PROPERTY_DEFAULT_AUTO_COMMIT
- See Also:
- Constant Field Values
-
PROPERTY_DEFAULT_READ_ONLY
static final String PROPERTY_DEFAULT_READ_ONLY
- See Also:
- Constant Field Values
-
PROPERTY_DEFAULT_TRANSACTION_ISOLATION
static final String PROPERTY_DEFAULT_TRANSACTION_ISOLATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDatabase
String getDatabase()
-
setDatabase
void setDatabase(String database)
-
getDriver
String getDriver()
-
setDriver
void setDriver(String driver)
-
getPassword
String getPassword()
-
setPassword
void setPassword(String password)
-
isSavePassword
boolean isSavePassword()
-
setSavePassword
void setSavePassword(boolean savePassword)
-
getUrl
String getUrl()
-
setUrl
void setUrl(String url)
-
getUsername
String getUsername()
-
setUsername
void setUsername(String username)
-
getServerAddress
String getServerAddress()
-
setServerAddress
void setServerAddress(String serverAddress)
-
setProperties
void setProperties(Map<String,String> properties)
Set the properties passed to the driver when creating connections.- Parameters:
properties
- the JDBC driver properties- See Also:
Driver.connect(String, java.util.Properties)
-
getProperties
Map<String,String> getProperties()
Returns the properties passed to the driver when creating connections.- Returns:
- JDBC driver properties
-
getAutoCommit
Boolean getAutoCommit()
-
setAutoCommit
void setAutoCommit(Boolean autoCommit)
-
getReadOnly
Boolean getReadOnly()
-
setReadOnly
void setReadOnly(Boolean readOnly)
-
getTransactionIsolation
TransactionIsolation getTransactionIsolation()
-
setTransactionIsolation
void setTransactionIsolation(TransactionIsolation isolation)
-
-