|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sqlproc.engine.type.SqlMetaType
org.sqlproc.engine.type.SqlInternalType
org.sqlproc.engine.type.SqlProviderType
org.sqlproc.engine.type.SqlLongType
org.sqlproc.engine.jdbc.type.JdbcLongType
public class JdbcLongType
The JDBC META type LONG.
| Field Summary |
|---|
| Fields inherited from class org.sqlproc.engine.type.SqlMetaType |
|---|
logger |
| Constructor Summary | |
|---|---|
JdbcLongType()
|
|
| Method Summary | |
|---|---|
Object |
get(CallableStatement cs,
int index)
Retrieves the value of the designated parameter from CallableStatement object as a Java type value. |
Object |
get(ResultSet rs,
String columnLabel)
Retrieves the value of the designated column in the current row of this ResultSet object as a Java
type value. |
Object |
getProviderSqlNullType()
Returns the type provided by the stack on top of which the SQL Processor works. |
Object |
getProviderSqlType()
Returns the type provided by the stack on top of which the SQL Processor works. |
void |
set(PreparedStatement st,
int index,
Object value)
Sets the designated parameter to the given Java value. |
| Methods inherited from class org.sqlproc.engine.type.SqlLongType |
|---|
addScalar, getClassTypes, getMetaTypes, setParameter, setResult |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JdbcLongType()
| Method Detail |
|---|
public Object getProviderSqlType()
getProviderSqlType in class SqlProviderTypepublic Object getProviderSqlNullType()
getProviderSqlNullType in class SqlProviderType
public Object get(ResultSet rs,
String columnLabel)
throws SQLException
ResultSet object as a Java
type value.
get in interface JdbcSqlTypers - a ResultSet instancecolumnLabel - the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified,
then the label is the name of the column
NULL, the value returned is null
SQLException - if the columnLabel is not valid; if a database access error occurs or this method is called on a
closed result set
public void set(PreparedStatement st,
int index,
Object value)
throws SQLException
set in interface JdbcSqlTypest - a PreparedStatement instanceindex - the first parameter is 1, the second is 2, ...value - the parameter value
SQLException - if parameterIndex does not correspond to a parameter marker in the SQL statement; if a database
access error occurs or this method is called on a closed PreparedStatement
public Object get(CallableStatement cs,
int index)
throws SQLException
CallableStatement object as a Java type value.
get in interface JdbcSqlTypecs - a CallableStatement instanceindex - the first parameter is 1, the second is 2, ...
NULL, the value depends on the Java type
SQLException - if the parameterIndex is not valid; if a database access error occurs or this method is called on
a closed CallableStatement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||