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 TypeMethodDescriptionbooleanStandard 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.intReturns 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.voidsetConnectionURL(String aURL) Sets the connection info URL.voidsetDriverClassName(String aName) Sets the driver class name.voidSets any error string from datasource reload.voidsetFetchLimit(int aValue) Sets the limit on the number of objects to fetch.voidsetListName(String aName) Sets the list name.voidsetPassword(String aPassword) Sets the password.voidSets the query string.voidsetUserName(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:
getSchemain classRMDataSource
-
getDataset
Returns the dataset for this datasource.- Overrides:
getDatasetin classRMDataSource
-
getError
Returns any error string from datasource reload.- Overrides:
getErrorin 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:
toXMLin classRMDataSource
-
fromXML
XML unarchival.- Overrides:
fromXMLin classRMDataSource
-