Purpose: Concrete class to perform a direct read.
Responsibilities: Used in conjunction with DirectCollectionMapping. This can be used to read a single column of data (i.e. one field). A container (implementing Collection) of the data values is returned.
| Modifier and Type | Field and Description |
|---|---|
| protected Converter | valueConverter
Allows user defined conversion between the result value and the database value. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Converter | getValueConverter()
Overrides org. |
| public boolean | isDirectReadQuery()
Overrides org. |
| public void |
| valueConverter | back to summary |
|---|---|
| protected Converter valueConverter Allows user defined conversion between the result value and the database value. | |
| DirectReadQuery | back to summary |
|---|---|
| public DirectReadQuery() PUBLIC: Initialize the state of the query. | |
| DirectReadQuery | back to summary |
|---|---|
| public DirectReadQuery(String sqlString) PUBLIC: Initialize the query to use the specified SQL string. Warning Allowing an unverified SQL string to be passed into this method makes your application vulnerable to SQL injection attacks. | |
| DirectReadQuery | back to summary |
|---|---|
| public DirectReadQuery(Call call) PUBLIC: Initialize the query to use the specified call. | |
| getValueConverter | back to summary |
|---|---|
| public Converter getValueConverter() Overrides org. PUBLIC: Return the converter on the query. A converter can be used to convert between the result value and database value.
| |
| isDirectReadQuery | back to summary |
|---|---|
| public boolean isDirectReadQuery() Overrides org. PUBLIC: Return if this is a direct read query.
| |
| setValueConverter | back to summary |
|---|---|
| public void setValueConverter(Converter valueConverter) PUBLIC: Set the converter on the query. A converter can be used to convert between the result value and database value. | |