public class ResultSetVariable extends Variable
Modifier and Type | Field and Description |
---|---|
private MappingConstructorData |
mappingConstructor |
private boolean |
returnNull |
private RowMapperData |
rowMapper |
private static long |
serialVersionUID |
Constructor and Description |
---|
ResultSetVariable(String name,
String qualifiedClassName,
RowMapper rowMapper,
ReturnNull returnNull,
MappingConstructor mappingConstructor)
Constructs a new ResultSetVariable.
|
Modifier and Type | Method and Description |
---|---|
String |
getRowMapper()
Returns the qualified class name of the RowMapper.
|
boolean |
useNullInsteadOfAnException()
Returns if null should be used instead of throwing an exception if an entity is expected but nothing is returned
from the database.
|
getName, getTypeInfo, toString
private static final long serialVersionUID
private final boolean returnNull
private final RowMapperData rowMapper
private final MappingConstructorData mappingConstructor
public ResultSetVariable(String name, String qualifiedClassName, RowMapper rowMapper, ReturnNull returnNull, MappingConstructor mappingConstructor)
name
- the name of the variablequalifiedClassName
- the type of the variablerowMapper
- (nullable) the RowMapper annotation of the variablereturnNull
- (nullable) the ReturnNull annotation of the variablemappingConstructor
- (nullable) the MappingConstructor annotation of the variablepublic String getRowMapper()
public boolean useNullInsteadOfAnException()
Copyright © 2015. All rights reserved.