|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This configuration holds the definition of a specific SQL statement. It maintains the parameters that are configurable on java.sql.Statement objects and their subclasses in order to allow configurable modification of their use with the Statement Factory.
Copyright 2002 Sapient
Method Summary | |
ConnectionFactory |
getConnectionFactory()
Getter for the connection factory to be used when creating queries. |
Integer |
getFetchSize()
Getter for the configured fetch size. |
Integer |
getMaxFieldSize()
Getter for the maximum field size. |
Integer |
getMaxRows()
Getter for the configured maximum number of rows to return. |
String |
getQuery()
The getter for the sql code of this query |
String |
getQueryName()
Getter for the name of the query |
Integer |
getQueryTimeOut()
Getter for the configured query timeout. |
ResultSetConcurrencyEnum |
getResultSetConcurrency()
Getter for the configured query's result set concurrency. |
ResultSetTypeEnum |
getResultSetType()
Getter for the result set type |
void |
setConnectionFactory(ConnectionFactory connectionFactory)
Setter for the connection factory |
void |
setFetchSize(Integer fetchSize)
Setter for the fetch size on results sets. |
void |
setMaxFieldSize(Integer maxFieldSize)
Setter for the size of fields to be returned. |
void |
setMaxRows(Integer maxRows)
Setter for the max rows to return. |
void |
setQuery(String query)
Setter for the sql query |
void |
setQueryName(String queryName)
Setter for the query name |
void |
setQueryTimeOut(Integer queryTimeOut)
Setter for the timeout in milleseconds of this query |
void |
setResultSetConcurrency(ResultSetConcurrencyEnum resultSetConcurrency)
Setter for the concurrency of the result set. |
void |
setResultSetType(ResultSetTypeEnum resultSetType)
Setter for the default type of result set. |
Methods inherited from interface org.sape.carbon.core.config.Configuration |
clone, getConfigurationInterface, getConfigurationName, getDataStructure, getRootElement, isConfigurationWritable, setConfigurationName, setConfigurationReadOnly |
Method Detail |
public String getQueryName()
public void setQueryName(String queryName)
queryName
- the name of the querypublic String getQuery()
public void setQuery(String query)
query
- the sql of this querypublic ConnectionFactory getConnectionFactory()
public void setConnectionFactory(ConnectionFactory connectionFactory)
connectionFactory
- the default connection factory for this querypublic ResultSetTypeEnum getResultSetType()
public void setResultSetType(ResultSetTypeEnum resultSetType)
resultSetType
- the type of result set createdResultSet.TYPE_FORWARD_ONLY
,
ResultSet.TYPE_SCROLL_INSENSITIVE
,
ResultSet.TYPE_SCROLL_SENSITIVE
public ResultSetConcurrencyEnum getResultSetConcurrency()
public void setResultSetConcurrency(ResultSetConcurrencyEnum resultSetConcurrency)
resultSetConcurrency
- the concurrency type of the result setResultSet.CONCUR_READ_ONLY
,
ResultSet.CONCUR_UPDATABLE
public Integer getMaxRows()
public void setMaxRows(Integer maxRows)
maxRows
- The maximum number of rows to return from a query.public Integer getFetchSize()
public void setFetchSize(Integer fetchSize)
fetchSize
- A driver hint for the count of records to be returned
on each database message.public Integer getMaxFieldSize()
public void setMaxFieldSize(Integer maxFieldSize)
maxFieldSize
- The max size, in bytes, that the driver should return
for a column.public Integer getQueryTimeOut()
public void setQueryTimeOut(Integer queryTimeOut)
queryTimeOut
- the number of milleseconds before the driver should
timeout a database query. (Drivers have defaults)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |