Package com.ribs.datasource
Class RMDataSourceJDBC
java.lang.Object
com.ribs.datasource.RMDataSource
com.ribs.datasource.RMDataSourceJDBC
This class provides a datasource representing a JDBC database fetch.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Standard equals implementation.fromXML
(RXArchiver anArchiver, RXElement anElement) XML unarchival.Returns the connection info URL.Returns a schema for this datasource's database.Returns the dataset for this datasource.Returns the driver class name.getError()
Returns any error string from datasource reload.int
Returns the limit on the number of objects to fetch.Returns the list name.Returns the password.getQuery()
Returns the query string.Returns the schema for this datasource's dataset.Returns the user name.void
setConnectionURL
(String aURL) Sets the connection info URL.void
setDriverClassName
(String aName) Sets the driver class name.void
Sets any error string from datasource reload.void
setFetchLimit
(int aValue) Sets the limit on the number of objects to fetch.void
setListName
(String aName) Sets the list name.void
setPassword
(String aPassword) Sets the password.void
Sets the query string.void
setUserName
(String aName) Sets the user name.toXML
(RXArchiver anArchiver) XML archival.Methods inherited from class com.ribs.datasource.RMDataSource
getEntity, getName, getRelation, setName, toString
-
Constructor Details
-
RMDataSourceJDBC
public RMDataSourceJDBC()Creates a new RMDataSource JDBC.
-
-
Method Details
-
getDriverClassName
Returns the driver class name. -
setDriverClassName
Sets the driver class name. -
getConnectionURL
Returns the connection info URL. -
setConnectionURL
Sets the connection info URL. -
getUserName
Returns the user name. -
setUserName
Sets the user name. -
getPassword
Returns the password. -
setPassword
Sets the password. -
getListName
Returns the list name. -
setListName
Sets the list name. -
getQuery
Returns the query string. -
setQuery
Sets the query string. -
getFetchLimit
public int getFetchLimit()Returns the limit on the number of objects to fetch. -
setFetchLimit
public void setFetchLimit(int aValue) Sets the limit on the number of objects to fetch. -
getSchema
Returns the schema for this datasource's dataset.- Overrides:
getSchema
in classRMDataSource
-
getDataset
Returns the dataset for this datasource.- Overrides:
getDataset
in classRMDataSource
-
getError
Returns any error string from datasource reload.- Overrides:
getError
in classRMDataSource
-
setError
Sets any error string from datasource reload. -
getDatabaseSchema
Returns a schema for this datasource's database. -
equals
Standard equals implementation. -
toXML
XML archival.- Overrides:
toXML
in classRMDataSource
-
fromXML
XML unarchival.- Overrides:
fromXML
in classRMDataSource
-