|
ReportMill 11 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.reportmill.base.RMObject
com.reportmill.datasource.RMDataSource
com.reportmill.datasource.RMJDBCDataSource
public class RMJDBCDataSource
This class provides a datasource representing a JDBC database fetch.
Constructor Summary | |
---|---|
RMJDBCDataSource()
Creates a new RMDataSource JDBC. |
Method Summary | |
---|---|
void |
addFetch(RMFetch aFetch)
Adds a fetch to datasource. |
void |
cancelStatement()
Interrupt the currently executing statement. |
void |
close()
Call this to explicitly close the database connection. |
boolean |
equals(java.lang.Object anObj)
Standard equals implementation. |
java.sql.ResultSet |
executeQuery(java.lang.String aQuery)
Returns a result set for given query string. |
java.sql.ResultSet |
executeQuery(java.lang.String aQuery,
int aFetchLimit)
Returns a result set for given query string limited to given fetch limit number of rows. |
java.lang.Object |
fromXML(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement,
java.lang.Object anOwner)
XML unarchival. |
java.sql.Connection |
getConnection()
Returns a database connection for this datasource. |
java.lang.String |
getConnectionURL()
Returns the connection info URL. |
RMSchema |
getDatabaseSchema()
Returns a schema for this datasource's database. |
java.util.Map |
getDataset()
Returns the dataset for this datasource. |
java.lang.String |
getDriverClassName()
Returns the driver class name. |
java.lang.String |
getError()
Returns any error string from datasource reload. |
RMFetch |
getFetch(int anIndex)
Returns the individual fetch at the given index. |
int |
getFetchCount()
Returns the number of fetches for this datasource. |
java.lang.String |
getPassword()
Returns the password. |
RMSchema |
getSchema()
Returns the schema for this datasource's dataset. |
java.lang.String |
getUserName()
Returns the user name. |
boolean |
isConnected()
Returns whether datasource is currently connected to db. |
void |
refresh()
Refreshes datatset (just by clearing it to force a refetch). |
RMFetch |
removeFetch(int anIndex)
Removes a fetch from datasource. |
void |
setConnectionURL(java.lang.String aURL)
Sets the connection info URL. |
void |
setDriverClassName(java.lang.String aName)
Sets the driver class name. |
void |
setError(java.lang.String anError)
Sets any error string from datasource reload. |
void |
setPassword(java.lang.String aPassword)
Sets the password. |
void |
setUserName(java.lang.String aName)
Sets the user name. |
com.reportmill.archiver.RXElement |
toXML(com.reportmill.archiver.RXArchiver anArchiver,
java.lang.Object anOwner)
XML archival. |
Methods inherited from class com.reportmill.datasource.RMDataSource |
---|
createObject, getDataset, getDataset, getEntity, getName, hasChanges, isReadOnly, setName, toString |
Methods inherited from class com.reportmill.base.RMObject |
---|
addListener, addPropertyChangeListener, animUpdate, clone, firePropertyChange, firePropertyChange, getListener, getListenerCount, getListeners, isFirePropertyChangeEnabled, isUndoing, removeListener, removePropertyChangeListener, setFirePropertyChangeEnabled, setUndoing |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RMJDBCDataSource()
Method Detail |
---|
public java.lang.String getDriverClassName()
public void setDriverClassName(java.lang.String aName)
public java.lang.String getConnectionURL()
public void setConnectionURL(java.lang.String aURL)
public java.lang.String getUserName()
public void setUserName(java.lang.String aName)
public java.lang.String getPassword()
public void setPassword(java.lang.String aPassword)
public int getFetchCount()
public RMFetch getFetch(int anIndex)
public void addFetch(RMFetch aFetch)
public RMFetch removeFetch(int anIndex)
public RMSchema getSchema()
getSchema
in class RMDataSource
public java.util.Map getDataset()
getDataset
in class RMDataSource
public void refresh()
refresh
in class RMDataSource
public java.lang.String getError()
getError
in class RMDataSource
public void setError(java.lang.String anError)
public boolean isConnected()
public void close()
close
in class RMDataSource
public java.sql.Connection getConnection()
public java.sql.ResultSet executeQuery(java.lang.String aQuery)
public java.sql.ResultSet executeQuery(java.lang.String aQuery, int aFetchLimit)
public void cancelStatement()
public RMSchema getDatabaseSchema()
public boolean equals(java.lang.Object anObj)
equals
in class RMDataSource
public com.reportmill.archiver.RXElement toXML(com.reportmill.archiver.RXArchiver anArchiver, java.lang.Object anOwner)
toXML
in class RMDataSource
public java.lang.Object fromXML(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement, java.lang.Object anOwner)
fromXML
in class RMDataSource
|
ReportMill 11 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |