Class SqlJetPreparedStatement
- java.lang.Object
-
- org.tmatesoft.sqljet.core.internal.lang.SqlJetPreparedStatement
-
public class SqlJetPreparedStatement extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SqlJetPreparedStatement(SqlJetDb db, java.lang.String sql)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearBindings()voidclose()byte[]getBlobAsArray(int columnIndex)java.io.InputStreamgetBlobAsStream(int columnIndex)intgetColumnsCount()SqlJetValueTypegetColumnType(int columnIndex)doublegetFloat(int columnIndex)longgetInteger(int columnIndex)intgetParametersCount()java.lang.StringgetText(int columnIndex)booleanisNull(int columnIndex)voidreset()voidsetBlob(int paramIndex, byte[] value)voidsetBlob(java.lang.String paramName, byte[] value)voidsetFloat(int paramIndex, double value)voidsetFloat(java.lang.String paramName, double value)voidsetInteger(int paramIndex, long value)voidsetInteger(java.lang.String paramName, long value)voidsetNull(int paramIndex)voidsetNull(java.lang.String paramName)voidsetText(int paramIndex, java.lang.String value)voidsetText(java.lang.String paramName, java.lang.String value)booleanstep()Executes the statement or advances to the next row of the query results.
-
-
-
Constructor Detail
-
SqlJetPreparedStatement
public SqlJetPreparedStatement(SqlJetDb db, java.lang.String sql)
-
-
Method Detail
-
close
public void close() throws SqlJetException- Throws:
SqlJetException
-
getParametersCount
public int getParametersCount() throws SqlJetException- Throws:
SqlJetException
-
setInteger
public void setInteger(int paramIndex, long value) throws SqlJetException- Throws:
SqlJetException
-
setFloat
public void setFloat(int paramIndex, double value) throws SqlJetException- Throws:
SqlJetException
-
setText
public void setText(int paramIndex, java.lang.String value) throws SqlJetException- Throws:
SqlJetException
-
setBlob
public void setBlob(int paramIndex, byte[] value) throws SqlJetException- Throws:
SqlJetException
-
setNull
public void setNull(int paramIndex) throws SqlJetException- Throws:
SqlJetException
-
setInteger
public void setInteger(java.lang.String paramName, long value) throws SqlJetException- Throws:
SqlJetException
-
setFloat
public void setFloat(java.lang.String paramName, double value) throws SqlJetException- Throws:
SqlJetException
-
setText
public void setText(java.lang.String paramName, java.lang.String value) throws SqlJetException- Throws:
SqlJetException
-
setBlob
public void setBlob(java.lang.String paramName, byte[] value) throws SqlJetException- Throws:
SqlJetException
-
setNull
public void setNull(java.lang.String paramName) throws SqlJetException- Throws:
SqlJetException
-
clearBindings
public void clearBindings() throws SqlJetException- Throws:
SqlJetException
-
step
public boolean step() throws SqlJetExceptionExecutes the statement or advances to the next row of the query results.- Throws:
SqlJetException
-
getColumnsCount
public int getColumnsCount() throws SqlJetException- Throws:
SqlJetException
-
getColumnType
public SqlJetValueType getColumnType(int columnIndex) throws SqlJetException
- Throws:
SqlJetException
-
getInteger
public long getInteger(int columnIndex) throws SqlJetException- Throws:
SqlJetException
-
getFloat
public double getFloat(int columnIndex) throws SqlJetException- Throws:
SqlJetException
-
getText
public java.lang.String getText(int columnIndex) throws SqlJetException- Throws:
SqlJetException
-
getBlobAsArray
public byte[] getBlobAsArray(int columnIndex) throws SqlJetException- Throws:
SqlJetException
-
getBlobAsStream
public java.io.InputStream getBlobAsStream(int columnIndex) throws SqlJetException- Throws:
SqlJetException
-
isNull
public boolean isNull(int columnIndex) throws SqlJetException- Throws:
SqlJetException
-
reset
public void reset() throws SqlJetException- Throws:
SqlJetException
-
-