public final class DatabaseDataReaderCommand extends Object implements DataReaderCommand
DataReaderCommand
for reading databases.Constructor and Description |
---|
DatabaseDataReaderCommand(String connectionUrl,
String queryText)
Initializes a new instance of the
DatabaseDataReaderCommand class. |
DatabaseDataReaderCommand(String connectionUrl,
String queryText,
int queryTimeout)
Initializes a new instance of the
DatabaseDataReaderCommand class. |
DatabaseDataReaderCommand(String connectionUrl,
String queryText,
String user,
String password)
Initializes a new instance of the
DatabaseDataReaderCommand class. |
Modifier and Type | Method and Description |
---|---|
DataReader |
executeReader()
Returns an instance of
IDataReader . |
boolean |
getAutoCommit()
Gets the auto commit value to be set on each connection created.
|
int |
getFetchSize()
Gets the fetch size to be set on each statement created.
|
int |
getQueryTimeout()
Gets the timeout to be used when statements are executed.
|
void |
setAutoCommit(boolean value)
Sets the auto commit value to be set on each connection created.
|
void |
setFetchSize(int value)
Sets the fetch size to be set on each statement created.
|
void |
setQueryTimeout(int value)
Sets the timeout to be used when statements are executed.
|
public DatabaseDataReaderCommand(String connectionUrl, String queryText)
DatabaseDataReaderCommand
class.connectionUrl
- The jdbc database connection url.queryText
- The select sql.
When temporal data is present any non temporal data must be sorted by the case identifier, and temporal data must be sorted by both the case identifier and time.public DatabaseDataReaderCommand(String connectionUrl, String queryText, String user, String password)
DatabaseDataReaderCommand
class.connectionUrl
- The jdbc database connection url.queryText
- The select sql.user
- The user name.password
- The password for the specified user.
When temporal data is present any non temporal data must be sorted by the case identifier, and temporal data must be sorted by both the case identifier and time.public DatabaseDataReaderCommand(String connectionUrl, String queryText, int queryTimeout)
DatabaseDataReaderCommand
class.connectionUrl
- The jdbc database connection url.queryText
- The select sql.queryTimeout
- The timeout to set on statements that are executed.
When temporal data is present any non temporal data must be sorted by the case identifier, and temporal data must be sorted by both the case identifier and time.public int getQueryTimeout()
public void setQueryTimeout(int value)
public boolean getAutoCommit()
public void setAutoCommit(boolean value)
public int getFetchSize()
public void setFetchSize(int value)
public DataReader executeReader()
IDataReader
.executeReader
in interface DataReaderCommand
Copyright © 2023. All rights reserved.