Top Description Fields Constructors Methods
org.springframework.jdbc

public Class IncorrectResultSetColumnCountException

extends DataRetrievalFailureException
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
org.springframework.dao.DataRetrievalFailureException

Data access exception thrown when a result set did not have the correct column count, for example when expecting a single column but getting 0 or more than 1 columns.
Author
Juergen Hoeller
Since
2.0
See Also
org.springframework.dao.IncorrectResultSizeDataAccessException

Field Summary

Modifier and TypeField and Description
private final int
private final int

Constructor Summary

AccessConstructor and Description
public
IncorrectResultSetColumnCountException(int
the expected column count
expectedCount
,
int
the actual column count
actualCount
)

Constructor for IncorrectResultSetColumnCountException.

public
IncorrectResultSetColumnCountException(String
the detail message
msg
,
int
the expected column count
expectedCount
,
int
the actual column count
actualCount
)

Constructor for IncorrectResultCountDataAccessException.

Method Summary

Modifier and TypeMethod and Description
public int
getActualCount()

Return the actual column count.

public int
getExpectedCount()

Return the expected column count.

Field Detail

actualCountback to summary
private final int actualCount
expectedCountback to summary
private final int expectedCount

Constructor Detail

IncorrectResultSetColumnCountExceptionback to summary
public IncorrectResultSetColumnCountException(int expectedCount, int actualCount)

Constructor for IncorrectResultSetColumnCountException.

Parameters
expectedCount:int

the expected column count

actualCount:int

the actual column count

IncorrectResultSetColumnCountExceptionback to summary
public IncorrectResultSetColumnCountException(String msg, int expectedCount, int actualCount)

Constructor for IncorrectResultCountDataAccessException.

Parameters
msg:String

the detail message

expectedCount:int

the expected column count

actualCount:int

the actual column count

Method Detail

getActualCountback to summary
public int getActualCount()

Return the actual column count.

getExpectedCountback to summary
public int getExpectedCount()

Return the expected column count.