com.espertech.esper.epl.db
Class DBOutputTypeDesc

java.lang.Object
  extended by com.espertech.esper.epl.db.DBOutputTypeDesc

public class DBOutputTypeDesc
extends java.lang.Object

Descriptor for SQL output columns.


Constructor Summary
DBOutputTypeDesc(int sqlType, java.lang.String className, DatabaseTypeBinding optionalBinding)
          Ctor.
 
Method Summary
 java.lang.String getClassName()
          Returns the class name that getObject() on the output column produces.
 DatabaseTypeBinding getOptionalBinding()
          Returns the optional mapping from output column type to Java built-in.
 int getSqlType()
          Returns the SQL type of the output column.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DBOutputTypeDesc

public DBOutputTypeDesc(int sqlType,
                        java.lang.String className,
                        DatabaseTypeBinding optionalBinding)
Ctor.

Parameters:
sqlType - the type of the column
className - the Java class reflecting column type
optionalBinding - is the optional mapping from output column type to Java built-in
Method Detail

getSqlType

public int getSqlType()
Returns the SQL type of the output column.

Returns:
sql type

getClassName

public java.lang.String getClassName()
Returns the class name that getObject() on the output column produces.

Returns:
class name from statement metadata

getOptionalBinding

public DatabaseTypeBinding getOptionalBinding()
Returns the optional mapping from output column type to Java built-in.

Returns:
database type mapping to Java type

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

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