类 FieldNamedPreparedStatement
- java.lang.Object
-
- org.apache.seatunnel.connectors.seatunnel.jdbc.internal.executor.FieldNamedPreparedStatement
-
- 所有已实现的接口:
AutoCloseable,PreparedStatement,Statement,Wrapper
public class FieldNamedPreparedStatement extends Object implements PreparedStatement
-
-
构造器概要
构造器 构造器 说明 FieldNamedPreparedStatement()
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddBatch()voidaddBatch(String sql)voidcancel()voidclearBatch()voidclearParameters()voidclearWarnings()voidclose()voidcloseOnCompletion()booleanexecute()booleanexecute(String sql)booleanexecute(String sql, int autoGeneratedKeys)booleanexecute(String sql, int[] columnIndexes)booleanexecute(String sql, String[] columnNames)int[]executeBatch()ResultSetexecuteQuery()ResultSetexecuteQuery(String sql)intexecuteUpdate()intexecuteUpdate(String sql)intexecuteUpdate(String sql, int autoGeneratedKeys)intexecuteUpdate(String sql, int[] columnIndexes)intexecuteUpdate(String sql, String[] columnNames)ConnectiongetConnection()intgetFetchDirection()intgetFetchSize()ResultSetgetGeneratedKeys()intgetMaxFieldSize()intgetMaxRows()ResultSetMetaDatagetMetaData()booleangetMoreResults()booleangetMoreResults(int current)ParameterMetaDatagetParameterMetaData()intgetQueryTimeout()ResultSetgetResultSet()intgetResultSetConcurrency()intgetResultSetHoldability()intgetResultSetType()intgetUpdateCount()SQLWarninggetWarnings()booleanisClosed()booleanisCloseOnCompletion()booleanisPoolable()booleanisWrapperFor(Class<?> iface)static FieldNamedPreparedStatementprepareStatement(Connection connection, String sql, String[] fieldNames)voidsetArray(int parameterIndex, Array x)voidsetAsciiStream(int parameterIndex, InputStream x)voidsetAsciiStream(int parameterIndex, InputStream x, int length)voidsetAsciiStream(int parameterIndex, InputStream x, long length)voidsetBigDecimal(int parameterIndex, BigDecimal x)voidsetBinaryStream(int parameterIndex, InputStream x)voidsetBinaryStream(int parameterIndex, InputStream x, int length)voidsetBinaryStream(int parameterIndex, InputStream x, long length)voidsetBlob(int parameterIndex, InputStream inputStream)voidsetBlob(int parameterIndex, InputStream inputStream, long length)voidsetBlob(int parameterIndex, Blob x)voidsetBoolean(int parameterIndex, boolean x)voidsetByte(int parameterIndex, byte x)voidsetBytes(int parameterIndex, byte[] x)voidsetCharacterStream(int parameterIndex, Reader reader)voidsetCharacterStream(int parameterIndex, Reader reader, int length)voidsetCharacterStream(int parameterIndex, Reader reader, long length)voidsetClob(int parameterIndex, Reader reader)voidsetClob(int parameterIndex, Reader reader, long length)voidsetClob(int parameterIndex, Clob x)voidsetCursorName(String name)voidsetDate(int parameterIndex, Date x)voidsetDate(int parameterIndex, Date x, Calendar cal)voidsetDouble(int parameterIndex, double x)voidsetEscapeProcessing(boolean enable)voidsetFetchDirection(int direction)voidsetFetchSize(int rows)voidsetFloat(int parameterIndex, float x)voidsetInt(int parameterIndex, int x)voidsetLong(int parameterIndex, long x)voidsetMaxFieldSize(int max)voidsetMaxRows(int max)voidsetNCharacterStream(int parameterIndex, Reader value)voidsetNCharacterStream(int parameterIndex, Reader value, long length)voidsetNClob(int parameterIndex, Reader reader)voidsetNClob(int parameterIndex, Reader reader, long length)voidsetNClob(int parameterIndex, NClob value)voidsetNString(int parameterIndex, String value)voidsetNull(int parameterIndex, int sqlType)voidsetNull(int parameterIndex, int sqlType, String typeName)voidsetObject(int parameterIndex, Object x)voidsetObject(int parameterIndex, Object x, int targetSqlType)voidsetObject(int parameterIndex, Object x, int targetSqlType, int scaleOrLength)voidsetPoolable(boolean poolable)voidsetQueryTimeout(int seconds)voidsetRef(int parameterIndex, Ref x)voidsetRowId(int parameterIndex, RowId x)voidsetShort(int parameterIndex, short x)voidsetSQLXML(int parameterIndex, SQLXML xmlObject)voidsetString(int parameterIndex, String x)voidsetTime(int parameterIndex, Time x)voidsetTime(int parameterIndex, Time x, Calendar cal)voidsetTimestamp(int parameterIndex, Timestamp x)voidsetTimestamp(int parameterIndex, Timestamp x, Calendar cal)voidsetUnicodeStream(int parameterIndex, InputStream x, int length)voidsetURL(int parameterIndex, URL x)<T> Tunwrap(Class<T> iface)-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 java.sql.PreparedStatement
executeLargeUpdate, setObject, setObject
-
-
-
-
方法详细资料
-
setNull
public void setNull(int parameterIndex, int sqlType) throws SQLException- 指定者:
setNull在接口中PreparedStatement- 抛出:
SQLException
-
setBoolean
public void setBoolean(int parameterIndex, boolean x) throws SQLException- 指定者:
setBoolean在接口中PreparedStatement- 抛出:
SQLException
-
setByte
public void setByte(int parameterIndex, byte x) throws SQLException- 指定者:
setByte在接口中PreparedStatement- 抛出:
SQLException
-
setShort
public void setShort(int parameterIndex, short x) throws SQLException- 指定者:
setShort在接口中PreparedStatement- 抛出:
SQLException
-
setInt
public void setInt(int parameterIndex, int x) throws SQLException- 指定者:
setInt在接口中PreparedStatement- 抛出:
SQLException
-
setLong
public void setLong(int parameterIndex, long x) throws SQLException- 指定者:
setLong在接口中PreparedStatement- 抛出:
SQLException
-
setFloat
public void setFloat(int parameterIndex, float x) throws SQLException- 指定者:
setFloat在接口中PreparedStatement- 抛出:
SQLException
-
setDouble
public void setDouble(int parameterIndex, double x) throws SQLException- 指定者:
setDouble在接口中PreparedStatement- 抛出:
SQLException
-
setBigDecimal
public void setBigDecimal(int parameterIndex, BigDecimal x) throws SQLException- 指定者:
setBigDecimal在接口中PreparedStatement- 抛出:
SQLException
-
setString
public void setString(int parameterIndex, String x) throws SQLException- 指定者:
setString在接口中PreparedStatement- 抛出:
SQLException
-
setBytes
public void setBytes(int parameterIndex, byte[] x) throws SQLException- 指定者:
setBytes在接口中PreparedStatement- 抛出:
SQLException
-
setDate
public void setDate(int parameterIndex, Date x) throws SQLException- 指定者:
setDate在接口中PreparedStatement- 抛出:
SQLException
-
setTime
public void setTime(int parameterIndex, Time x) throws SQLException- 指定者:
setTime在接口中PreparedStatement- 抛出:
SQLException
-
setTimestamp
public void setTimestamp(int parameterIndex, Timestamp x) throws SQLException- 指定者:
setTimestamp在接口中PreparedStatement- 抛出:
SQLException
-
setObject
public void setObject(int parameterIndex, Object x, int targetSqlType) throws SQLException- 指定者:
setObject在接口中PreparedStatement- 抛出:
SQLException
-
setObject
public void setObject(int parameterIndex, Object x) throws SQLException- 指定者:
setObject在接口中PreparedStatement- 抛出:
SQLException
-
setRef
public void setRef(int parameterIndex, Ref x) throws SQLException- 指定者:
setRef在接口中PreparedStatement- 抛出:
SQLException
-
setBlob
public void setBlob(int parameterIndex, Blob x) throws SQLException- 指定者:
setBlob在接口中PreparedStatement- 抛出:
SQLException
-
setClob
public void setClob(int parameterIndex, Clob x) throws SQLException- 指定者:
setClob在接口中PreparedStatement- 抛出:
SQLException
-
setArray
public void setArray(int parameterIndex, Array x) throws SQLException- 指定者:
setArray在接口中PreparedStatement- 抛出:
SQLException
-
setDate
public void setDate(int parameterIndex, Date x, Calendar cal) throws SQLException- 指定者:
setDate在接口中PreparedStatement- 抛出:
SQLException
-
setTime
public void setTime(int parameterIndex, Time x, Calendar cal) throws SQLException- 指定者:
setTime在接口中PreparedStatement- 抛出:
SQLException
-
setTimestamp
public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal) throws SQLException- 指定者:
setTimestamp在接口中PreparedStatement- 抛出:
SQLException
-
setNull
public void setNull(int parameterIndex, int sqlType, String typeName) throws SQLException- 指定者:
setNull在接口中PreparedStatement- 抛出:
SQLException
-
setURL
public void setURL(int parameterIndex, URL x) throws SQLException- 指定者:
setURL在接口中PreparedStatement- 抛出:
SQLException
-
setRowId
public void setRowId(int parameterIndex, RowId x) throws SQLException- 指定者:
setRowId在接口中PreparedStatement- 抛出:
SQLException
-
setNString
public void setNString(int parameterIndex, String value) throws SQLException- 指定者:
setNString在接口中PreparedStatement- 抛出:
SQLException
-
setNClob
public void setNClob(int parameterIndex, NClob value) throws SQLException- 指定者:
setNClob在接口中PreparedStatement- 抛出:
SQLException
-
setNClob
public void setNClob(int parameterIndex, Reader reader, long length) throws SQLException- 指定者:
setNClob在接口中PreparedStatement- 抛出:
SQLException
-
setSQLXML
public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException- 指定者:
setSQLXML在接口中PreparedStatement- 抛出:
SQLException
-
setObject
public void setObject(int parameterIndex, Object x, int targetSqlType, int scaleOrLength) throws SQLException- 指定者:
setObject在接口中PreparedStatement- 抛出:
SQLException
-
setAsciiStream
public void setAsciiStream(int parameterIndex, InputStream x, int length) throws SQLException- 指定者:
setAsciiStream在接口中PreparedStatement- 抛出:
SQLException
-
setUnicodeStream
public void setUnicodeStream(int parameterIndex, InputStream x, int length) throws SQLException- 指定者:
setUnicodeStream在接口中PreparedStatement- 抛出:
SQLException
-
setBinaryStream
public void setBinaryStream(int parameterIndex, InputStream x, int length) throws SQLException- 指定者:
setBinaryStream在接口中PreparedStatement- 抛出:
SQLException
-
setCharacterStream
public void setCharacterStream(int parameterIndex, Reader reader, int length) throws SQLException- 指定者:
setCharacterStream在接口中PreparedStatement- 抛出:
SQLException
-
setNCharacterStream
public void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException- 指定者:
setNCharacterStream在接口中PreparedStatement- 抛出:
SQLException
-
setClob
public void setClob(int parameterIndex, Reader reader, long length) throws SQLException- 指定者:
setClob在接口中PreparedStatement- 抛出:
SQLException
-
setBlob
public void setBlob(int parameterIndex, InputStream inputStream, long length) throws SQLException- 指定者:
setBlob在接口中PreparedStatement- 抛出:
SQLException
-
setAsciiStream
public void setAsciiStream(int parameterIndex, InputStream x, long length) throws SQLException- 指定者:
setAsciiStream在接口中PreparedStatement- 抛出:
SQLException
-
setBinaryStream
public void setBinaryStream(int parameterIndex, InputStream x, long length) throws SQLException- 指定者:
setBinaryStream在接口中PreparedStatement- 抛出:
SQLException
-
setCharacterStream
public void setCharacterStream(int parameterIndex, Reader reader, long length) throws SQLException- 指定者:
setCharacterStream在接口中PreparedStatement- 抛出:
SQLException
-
setAsciiStream
public void setAsciiStream(int parameterIndex, InputStream x) throws SQLException- 指定者:
setAsciiStream在接口中PreparedStatement- 抛出:
SQLException
-
setBinaryStream
public void setBinaryStream(int parameterIndex, InputStream x) throws SQLException- 指定者:
setBinaryStream在接口中PreparedStatement- 抛出:
SQLException
-
setCharacterStream
public void setCharacterStream(int parameterIndex, Reader reader) throws SQLException- 指定者:
setCharacterStream在接口中PreparedStatement- 抛出:
SQLException
-
setNCharacterStream
public void setNCharacterStream(int parameterIndex, Reader value) throws SQLException- 指定者:
setNCharacterStream在接口中PreparedStatement- 抛出:
SQLException
-
setClob
public void setClob(int parameterIndex, Reader reader) throws SQLException- 指定者:
setClob在接口中PreparedStatement- 抛出:
SQLException
-
setBlob
public void setBlob(int parameterIndex, InputStream inputStream) throws SQLException- 指定者:
setBlob在接口中PreparedStatement- 抛出:
SQLException
-
setNClob
public void setNClob(int parameterIndex, Reader reader) throws SQLException- 指定者:
setNClob在接口中PreparedStatement- 抛出:
SQLException
-
execute
public boolean execute() throws SQLException- 指定者:
execute在接口中PreparedStatement- 抛出:
SQLException
-
addBatch
public void addBatch() throws SQLException- 指定者:
addBatch在接口中PreparedStatement- 抛出:
SQLException
-
executeQuery
public ResultSet executeQuery() throws SQLException
- 指定者:
executeQuery在接口中PreparedStatement- 抛出:
SQLException
-
executeUpdate
public int executeUpdate() throws SQLException- 指定者:
executeUpdate在接口中PreparedStatement- 抛出:
SQLException
-
clearParameters
public void clearParameters() throws SQLException- 指定者:
clearParameters在接口中PreparedStatement- 抛出:
SQLException
-
getMetaData
public ResultSetMetaData getMetaData() throws SQLException
- 指定者:
getMetaData在接口中PreparedStatement- 抛出:
SQLException
-
getParameterMetaData
public ParameterMetaData getParameterMetaData() throws SQLException
- 指定者:
getParameterMetaData在接口中PreparedStatement- 抛出:
SQLException
-
executeQuery
public ResultSet executeQuery(String sql) throws SQLException
- 指定者:
executeQuery在接口中Statement- 抛出:
SQLException
-
executeUpdate
public int executeUpdate(String sql) throws SQLException
- 指定者:
executeUpdate在接口中Statement- 抛出:
SQLException
-
close
public void close() throws SQLException- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中Statement- 抛出:
SQLException
-
getMaxFieldSize
public int getMaxFieldSize() throws SQLException- 指定者:
getMaxFieldSize在接口中Statement- 抛出:
SQLException
-
setMaxFieldSize
public void setMaxFieldSize(int max) throws SQLException- 指定者:
setMaxFieldSize在接口中Statement- 抛出:
SQLException
-
getMaxRows
public int getMaxRows() throws SQLException- 指定者:
getMaxRows在接口中Statement- 抛出:
SQLException
-
setMaxRows
public void setMaxRows(int max) throws SQLException- 指定者:
setMaxRows在接口中Statement- 抛出:
SQLException
-
setEscapeProcessing
public void setEscapeProcessing(boolean enable) throws SQLException- 指定者:
setEscapeProcessing在接口中Statement- 抛出:
SQLException
-
getQueryTimeout
public int getQueryTimeout() throws SQLException- 指定者:
getQueryTimeout在接口中Statement- 抛出:
SQLException
-
setQueryTimeout
public void setQueryTimeout(int seconds) throws SQLException- 指定者:
setQueryTimeout在接口中Statement- 抛出:
SQLException
-
cancel
public void cancel() throws SQLException- 指定者:
cancel在接口中Statement- 抛出:
SQLException
-
getWarnings
public SQLWarning getWarnings() throws SQLException
- 指定者:
getWarnings在接口中Statement- 抛出:
SQLException
-
clearWarnings
public void clearWarnings() throws SQLException- 指定者:
clearWarnings在接口中Statement- 抛出:
SQLException
-
setCursorName
public void setCursorName(String name) throws SQLException
- 指定者:
setCursorName在接口中Statement- 抛出:
SQLException
-
execute
public boolean execute(String sql) throws SQLException
- 指定者:
execute在接口中Statement- 抛出:
SQLException
-
getResultSet
public ResultSet getResultSet() throws SQLException
- 指定者:
getResultSet在接口中Statement- 抛出:
SQLException
-
getUpdateCount
public int getUpdateCount() throws SQLException- 指定者:
getUpdateCount在接口中Statement- 抛出:
SQLException
-
getMoreResults
public boolean getMoreResults() throws SQLException- 指定者:
getMoreResults在接口中Statement- 抛出:
SQLException
-
setFetchDirection
public void setFetchDirection(int direction) throws SQLException- 指定者:
setFetchDirection在接口中Statement- 抛出:
SQLException
-
getFetchDirection
public int getFetchDirection() throws SQLException- 指定者:
getFetchDirection在接口中Statement- 抛出:
SQLException
-
setFetchSize
public void setFetchSize(int rows) throws SQLException- 指定者:
setFetchSize在接口中Statement- 抛出:
SQLException
-
getFetchSize
public int getFetchSize() throws SQLException- 指定者:
getFetchSize在接口中Statement- 抛出:
SQLException
-
getResultSetConcurrency
public int getResultSetConcurrency() throws SQLException- 指定者:
getResultSetConcurrency在接口中Statement- 抛出:
SQLException
-
getResultSetType
public int getResultSetType() throws SQLException- 指定者:
getResultSetType在接口中Statement- 抛出:
SQLException
-
addBatch
public void addBatch(String sql) throws SQLException
- 指定者:
addBatch在接口中Statement- 抛出:
SQLException
-
clearBatch
public void clearBatch() throws SQLException- 指定者:
clearBatch在接口中Statement- 抛出:
SQLException
-
executeBatch
public int[] executeBatch() throws SQLException- 指定者:
executeBatch在接口中Statement- 抛出:
SQLException
-
getConnection
public Connection getConnection() throws SQLException
- 指定者:
getConnection在接口中Statement- 抛出:
SQLException
-
getMoreResults
public boolean getMoreResults(int current) throws SQLException- 指定者:
getMoreResults在接口中Statement- 抛出:
SQLException
-
getGeneratedKeys
public ResultSet getGeneratedKeys() throws SQLException
- 指定者:
getGeneratedKeys在接口中Statement- 抛出:
SQLException
-
executeUpdate
public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException
- 指定者:
executeUpdate在接口中Statement- 抛出:
SQLException
-
executeUpdate
public int executeUpdate(String sql, int[] columnIndexes) throws SQLException
- 指定者:
executeUpdate在接口中Statement- 抛出:
SQLException
-
executeUpdate
public int executeUpdate(String sql, String[] columnNames) throws SQLException
- 指定者:
executeUpdate在接口中Statement- 抛出:
SQLException
-
execute
public boolean execute(String sql, int autoGeneratedKeys) throws SQLException
- 指定者:
execute在接口中Statement- 抛出:
SQLException
-
execute
public boolean execute(String sql, int[] columnIndexes) throws SQLException
- 指定者:
execute在接口中Statement- 抛出:
SQLException
-
execute
public boolean execute(String sql, String[] columnNames) throws SQLException
- 指定者:
execute在接口中Statement- 抛出:
SQLException
-
getResultSetHoldability
public int getResultSetHoldability() throws SQLException- 指定者:
getResultSetHoldability在接口中Statement- 抛出:
SQLException
-
isClosed
public boolean isClosed() throws SQLException- 指定者:
isClosed在接口中Statement- 抛出:
SQLException
-
setPoolable
public void setPoolable(boolean poolable) throws SQLException- 指定者:
setPoolable在接口中Statement- 抛出:
SQLException
-
isPoolable
public boolean isPoolable() throws SQLException- 指定者:
isPoolable在接口中Statement- 抛出:
SQLException
-
closeOnCompletion
public void closeOnCompletion() throws SQLException- 指定者:
closeOnCompletion在接口中Statement- 抛出:
SQLException
-
isCloseOnCompletion
public boolean isCloseOnCompletion() throws SQLException- 指定者:
isCloseOnCompletion在接口中Statement- 抛出:
SQLException
-
unwrap
public <T> T unwrap(Class<T> iface) throws SQLException
- 指定者:
unwrap在接口中Wrapper- 抛出:
SQLException
-
isWrapperFor
public boolean isWrapperFor(Class<?> iface) throws SQLException
- 指定者:
isWrapperFor在接口中Wrapper- 抛出:
SQLException
-
prepareStatement
public static FieldNamedPreparedStatement prepareStatement(Connection connection, String sql, String[] fieldNames) throws SQLException
- 抛出:
SQLException
-
-