org.hydrateframework.sql
Class AbstractParameterStatement
java.lang.Object
org.hydrateframework.sql.AbstractParameterStatement
- All Implemented Interfaces:
- java.sql.PreparedStatement, java.sql.Statement, NamedParameterStatement
- Direct Known Subclasses:
- ParsedQuery, SimpleParameterStatement
public abstract class AbstractParameterStatement
- extends java.lang.Object
- implements NamedParameterStatement
- Version:
- @(#)$Revision: 1.7 $
- Author:
- David Chamberlin
| Fields inherited from interface java.sql.Statement |
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.sql.PreparedStatement |
addBatch, execute, executeQuery, executeUpdate, getMetaData, getParameterMetaData, setArray, setAsciiStream, setBigDecimal, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNull, setNull, setObject, setObject, setObject, setRef, setShort, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL |
| Methods inherited from interface java.sql.Statement |
addBatch, cancel, clearBatch, clearWarnings, close, execute, execute, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setQueryTimeout |
NULL
public static final AbstractParameterStatement.Parameter NULL
conn
protected java.sql.Connection conn
paramList
protected java.util.List<AbstractParameterStatement.Parameter> paramList
statementType
protected int statementType
rewriteSqlOnQuery
protected boolean rewriteSqlOnQuery
updateStrategy
protected int updateStrategy
updateBatchSize
protected int updateBatchSize
generatedIds
protected int[] generatedIds
AbstractParameterStatement
public AbstractParameterStatement(java.sql.Connection conn)
setStatementUsage
public void setStatementUsage(int statementType)
throws java.sql.SQLException
- Specified by:
setStatementUsage in interface NamedParameterStatement
- Throws:
java.sql.SQLException
getParameterNames
public java.lang.String[] getParameterNames()
throws java.sql.SQLException
- Specified by:
getParameterNames in interface NamedParameterStatement
- Throws:
java.sql.SQLException
getParameterName
public java.lang.String getParameterName(int i)
throws java.sql.SQLException
- Specified by:
getParameterName in interface NamedParameterStatement
- Throws:
java.sql.SQLException
getParameterCount
public int getParameterCount()
throws java.sql.SQLException
- Specified by:
getParameterCount in interface NamedParameterStatement
- Throws:
java.sql.SQLException
getParameterType
public java.lang.String getParameterType(java.lang.String name)
throws java.sql.SQLException
- Specified by:
getParameterType in interface NamedParameterStatement
- Throws:
java.sql.SQLException
setBoolean
public void setBoolean(java.lang.String name,
boolean x)
throws java.sql.SQLException
- Specified by:
setBoolean in interface NamedParameterStatement
- Throws:
java.sql.SQLException
setNull
public void setNull(java.lang.String name,
int sqlType)
throws java.sql.SQLException
- Specified by:
setNull in interface NamedParameterStatement
- Throws:
java.sql.SQLException
setDouble
public void setDouble(java.lang.String name,
double x)
throws java.sql.SQLException
- Specified by:
setDouble in interface NamedParameterStatement
- Throws:
java.sql.SQLException
setString
public void setString(java.lang.String name,
java.lang.String x)
throws java.sql.SQLException
- Specified by:
setString in interface NamedParameterStatement
- Throws:
java.sql.SQLException
setDate
public void setDate(java.lang.String name,
java.util.Date x)
throws java.sql.SQLException
- Specified by:
setDate in interface NamedParameterStatement
- Throws:
java.sql.SQLException
setObject
public void setObject(java.lang.String name,
java.lang.Object x)
throws java.sql.SQLException
- Specified by:
setObject in interface NamedParameterStatement
- Throws:
java.sql.SQLException
setInt
public void setInt(java.lang.String name,
int x)
throws java.sql.SQLException
- Specified by:
setInt in interface NamedParameterStatement
- Throws:
java.sql.SQLException
setLong
public void setLong(java.lang.String name,
long x)
throws java.sql.SQLException
- Specified by:
setLong in interface NamedParameterStatement
- Throws:
java.sql.SQLException
clearParameters
public void clearParameters()
throws java.sql.SQLException
- Specified by:
clearParameters in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
getUpdateStrategy
public int getUpdateStrategy()
- Specified by:
getUpdateStrategy in interface NamedParameterStatement
setUpdateStrategy
public void setUpdateStrategy(int strategy,
int batchSize)
- Specified by:
setUpdateStrategy in interface NamedParameterStatement
Copyright © 2000 The Hydrate Project. All Rights Reserved.