com.espertech.esper.util
Interface DatabaseTypeBinding

All Superinterfaces:
java.io.Serializable

public interface DatabaseTypeBinding
extends java.io.Serializable

Binding from database output column type to Java object.


Method Summary
 java.lang.Class getType()
          Returns the Java target type.
 java.lang.Object getValue(java.sql.ResultSet resultSet, java.lang.String columnName)
          Returns the Java object for the given column.
 

Method Detail

getValue

java.lang.Object getValue(java.sql.ResultSet resultSet,
                          java.lang.String columnName)
                          throws java.sql.SQLException
Returns the Java object for the given column.

Parameters:
resultSet - is the result set to read the column from
columnName - is the column name
Returns:
Java object
Throws:
java.sql.SQLException - if the mapping cannot be performed

getType

java.lang.Class getType()
Returns the Java target type.

Returns:
Java type

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com