Package net.sf.jasperreports.data.jdbc
Class JdbcDataAdapterImpl
- java.lang.Object
-
- net.sf.jasperreports.dataadapters.AbstractDataAdapter
-
- net.sf.jasperreports.dataadapters.AbstractClasspathAwareDataAdapter
-
- net.sf.jasperreports.data.jdbc.JdbcDataAdapterImpl
-
- All Implemented Interfaces:
JdbcDataAdapter
,ClasspathAwareDataAdapter
,DataAdapter
- Direct Known Subclasses:
MondrianDataAdapterImpl
public class JdbcDataAdapterImpl extends AbstractClasspathAwareDataAdapter implements JdbcDataAdapter
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
-
Fields inherited from interface net.sf.jasperreports.data.jdbc.JdbcDataAdapter
PROPERTY_DEFAULT_AUTO_COMMIT, PROPERTY_DEFAULT_READ_ONLY, PROPERTY_DEFAULT_TRANSACTION_ISOLATION
-
-
Constructor Summary
Constructors Constructor Description JdbcDataAdapterImpl()
-
Method Summary
All Methods Instance Methods Concrete 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 transactionIsolation)
void
setUrl(String url)
void
setUsername(String username)
-
Methods inherited from class net.sf.jasperreports.dataadapters.AbstractClasspathAwareDataAdapter
getClasspath, setClasspath
-
Methods inherited from class net.sf.jasperreports.dataadapters.AbstractDataAdapter
getName, setName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.jasperreports.dataadapters.ClasspathAwareDataAdapter
getClasspath, setClasspath
-
Methods inherited from interface net.sf.jasperreports.dataadapters.DataAdapter
getName, setName
-
-
-
-
Method Detail
-
getDatabase
public String getDatabase()
- Specified by:
getDatabase
in interfaceJdbcDataAdapter
-
setDatabase
public void setDatabase(String database)
- Specified by:
setDatabase
in interfaceJdbcDataAdapter
-
getDriver
public String getDriver()
- Specified by:
getDriver
in interfaceJdbcDataAdapter
-
setDriver
public void setDriver(String driver)
- Specified by:
setDriver
in interfaceJdbcDataAdapter
-
getPassword
public String getPassword()
- Specified by:
getPassword
in interfaceJdbcDataAdapter
-
setPassword
public void setPassword(String password)
- Specified by:
setPassword
in interfaceJdbcDataAdapter
-
isSavePassword
public boolean isSavePassword()
- Specified by:
isSavePassword
in interfaceJdbcDataAdapter
-
setSavePassword
public void setSavePassword(boolean savePassword)
- Specified by:
setSavePassword
in interfaceJdbcDataAdapter
-
getUrl
public String getUrl()
- Specified by:
getUrl
in interfaceJdbcDataAdapter
-
setUrl
public void setUrl(String url)
- Specified by:
setUrl
in interfaceJdbcDataAdapter
-
getUsername
public String getUsername()
- Specified by:
getUsername
in interfaceJdbcDataAdapter
-
setUsername
public void setUsername(String username)
- Specified by:
setUsername
in interfaceJdbcDataAdapter
-
getServerAddress
public String getServerAddress()
- Specified by:
getServerAddress
in interfaceJdbcDataAdapter
-
setServerAddress
public void setServerAddress(String serverAddress)
- Specified by:
setServerAddress
in interfaceJdbcDataAdapter
-
setProperties
public void setProperties(Map<String,String> properties)
Description copied from interface:JdbcDataAdapter
Set the properties passed to the driver when creating connections.- Specified by:
setProperties
in interfaceJdbcDataAdapter
- Parameters:
properties
- the JDBC driver properties- See Also:
Driver.connect(String, java.util.Properties)
-
getProperties
public Map<String,String> getProperties()
Description copied from interface:JdbcDataAdapter
Returns the properties passed to the driver when creating connections.- Specified by:
getProperties
in interfaceJdbcDataAdapter
- Returns:
- JDBC driver properties
-
getAutoCommit
public Boolean getAutoCommit()
- Specified by:
getAutoCommit
in interfaceJdbcDataAdapter
-
setAutoCommit
public void setAutoCommit(Boolean autoCommit)
- Specified by:
setAutoCommit
in interfaceJdbcDataAdapter
-
getReadOnly
public Boolean getReadOnly()
- Specified by:
getReadOnly
in interfaceJdbcDataAdapter
-
setReadOnly
public void setReadOnly(Boolean readOnly)
- Specified by:
setReadOnly
in interfaceJdbcDataAdapter
-
getTransactionIsolation
public TransactionIsolation getTransactionIsolation()
- Specified by:
getTransactionIsolation
in interfaceJdbcDataAdapter
-
setTransactionIsolation
public void setTransactionIsolation(TransactionIsolation transactionIsolation)
- Specified by:
setTransactionIsolation
in interfaceJdbcDataAdapter
-
-