程序包 com.mysql.cj
类 AbstractQueryBindings<T extends BindValue>
- java.lang.Object
-
- com.mysql.cj.AbstractQueryBindings<T>
-
- 所有已实现的接口:
QueryBindings<T>
public abstract class AbstractQueryBindings<T extends BindValue> extends Object implements QueryBindings<T>
-
-
字段概要
字段 修饰符和类型 字段 说明 protected T[]bindValuesBind values for individual fieldsprotected StringcharEncodingprotected ColumnDefinitioncolumnDefinitionprotected static byte[]HEX_DIGITSprotected booleanisLoadDataQueryIs this query a LOAD DATA query?protected intnumberOfExecutionsprotected RuntimeProperty<Boolean>sendFractionalSecondsprotected Sessionsessionprotected RuntimeProperty<Boolean>useStreamLengthsInPrepStmts
-
构造器概要
构造器 构造器 说明 AbstractQueryBindings(int parameterCount, Session sess)
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 voidcheckAllParametersSet()abstract voidcheckParameterSet(int columnIndex)booleanclearBindValues()abstract AbstractQueryBindings<T>clone()T[]getBindValues()byte[]getBytesRepresentation(int parameterIndex)intgetNumberOfExecutions()byte[]getOrigBytes(int parameterIndex)voidhexEscapeBlock(byte[] buf, NativePacketPayload packet, int size)Used to escape binary data with hex for mb charsetsprotected abstract voidinitBindValues(int parameterCount)booleanisLoadDataQuery()booleanisNull(int parameterIndex)voidsetBindValues(T[] bindValues)voidsetColumnDefinition(ColumnDefinition colDef)voidsetLoadDataQuery(boolean isLoadDataQuery)voidsetNumberOfExecutions(int numberOfExecutions)voidsetObject(int parameterIndex, Object parameterObj)voidsetObject(int parameterIndex, Object parameterObj, MysqlType targetMysqlType)voidsetObject(int parameterIndex, Object parameterObj, MysqlType targetMysqlType, int scaleOrLength)Set the value of a parameter using an object; use the java.lang equivalent objects for integral values.voidsetOrigValue(int paramIndex, byte[] val)protected voidsetSerializableObject(int parameterIndex, Object parameterObj)Sets the value for the placeholder as a serialized Java object (used by various forms of setObject()voidsetValue(int paramIndex, byte[] val, MysqlType type)voidsetValue(int paramIndex, String val, MysqlType type)-
从类继承的方法 java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 com.mysql.cj.QueryBindings
setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBigInteger, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBoolean, setByte, setBytes, setBytes, setBytesNoEscape, setBytesNoEscapeNoQuotes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setNull, setShort, setString, setTime, setTime, setTimestamp, setTimestamp, setTimestamp
-
-
-
-
字段详细资料
-
HEX_DIGITS
protected static final byte[] HEX_DIGITS
-
session
protected Session session
-
charEncoding
protected String charEncoding
-
numberOfExecutions
protected int numberOfExecutions
-
useStreamLengthsInPrepStmts
protected RuntimeProperty<Boolean> useStreamLengthsInPrepStmts
-
sendFractionalSeconds
protected RuntimeProperty<Boolean> sendFractionalSeconds
-
isLoadDataQuery
protected boolean isLoadDataQuery
Is this query a LOAD DATA query?
-
columnDefinition
protected ColumnDefinition columnDefinition
-
-
构造器详细资料
-
AbstractQueryBindings
public AbstractQueryBindings(int parameterCount, Session sess)
-
-
方法详细资料
-
initBindValues
protected abstract void initBindValues(int parameterCount)
-
clone
public abstract AbstractQueryBindings<T> clone()
-
setColumnDefinition
public void setColumnDefinition(ColumnDefinition colDef)
- 指定者:
setColumnDefinition在接口中QueryBindings<T extends BindValue>
-
isLoadDataQuery
public boolean isLoadDataQuery()
- 指定者:
isLoadDataQuery在接口中QueryBindings<T extends BindValue>
-
setLoadDataQuery
public void setLoadDataQuery(boolean isLoadDataQuery)
- 指定者:
setLoadDataQuery在接口中QueryBindings<T extends BindValue>
-
getBindValues
public T[] getBindValues()
- 指定者:
getBindValues在接口中QueryBindings<T extends BindValue>
-
setBindValues
public void setBindValues(T[] bindValues)
- 指定者:
setBindValues在接口中QueryBindings<T extends BindValue>
-
clearBindValues
public boolean clearBindValues()
- 指定者:
clearBindValues在接口中QueryBindings<T extends BindValue>- 返回:
- true if bind values had long data
-
checkParameterSet
public abstract void checkParameterSet(int columnIndex)
- 指定者:
checkParameterSet在接口中QueryBindings<T extends BindValue>
-
checkAllParametersSet
public void checkAllParametersSet()
- 指定者:
checkAllParametersSet在接口中QueryBindings<T extends BindValue>
-
getNumberOfExecutions
public int getNumberOfExecutions()
- 指定者:
getNumberOfExecutions在接口中QueryBindings<T extends BindValue>
-
setNumberOfExecutions
public void setNumberOfExecutions(int numberOfExecutions)
- 指定者:
setNumberOfExecutions在接口中QueryBindings<T extends BindValue>
-
setValue
public final void setValue(int paramIndex, byte[] val, MysqlType type)- 指定者:
setValue在接口中QueryBindings<T extends BindValue>
-
setOrigValue
public final void setOrigValue(int paramIndex, byte[] val)
-
getOrigBytes
public byte[] getOrigBytes(int parameterIndex)
- 指定者:
getOrigBytes在接口中QueryBindings<T extends BindValue>
-
setValue
public final void setValue(int paramIndex, String val, MysqlType type)- 指定者:
setValue在接口中QueryBindings<T extends BindValue>
-
hexEscapeBlock
public final void hexEscapeBlock(byte[] buf, NativePacketPayload packet, int size)Used to escape binary data with hex for mb charsets- 参数:
buf- source bytespacket- write to this packetsize- number of bytes to read
-
setObject
public void setObject(int parameterIndex, Object parameterObj)- 指定者:
setObject在接口中QueryBindings<T extends BindValue>
-
setObject
public void setObject(int parameterIndex, Object parameterObj, MysqlType targetMysqlType)- 指定者:
setObject在接口中QueryBindings<T extends BindValue>
-
setObject
public void setObject(int parameterIndex, Object parameterObj, MysqlType targetMysqlType, int scaleOrLength)Set the value of a parameter using an object; use the java.lang equivalent objects for integral values.The given Java object will be converted to the targetMysqlType before being sent to the database.
- 指定者:
setObject在接口中QueryBindings<T extends BindValue>- 参数:
parameterIndex- the first parameter is 1...parameterObj- the object containing the input parameter valuetargetMysqlType- The MysqlType to be send to the databasescaleOrLength- For Types.DECIMAL or Types.NUMERIC types this is the number of digits after the decimal. For all other types this value will be ignored.
-
setSerializableObject
protected final void setSerializableObject(int parameterIndex, Object parameterObj)Sets the value for the placeholder as a serialized Java object (used by various forms of setObject()- 参数:
parameterIndex- parameter indexparameterObj- value
-
isNull
public boolean isNull(int parameterIndex)
- 指定者:
isNull在接口中QueryBindings<T extends BindValue>
-
getBytesRepresentation
public byte[] getBytesRepresentation(int parameterIndex)
- 指定者:
getBytesRepresentation在接口中QueryBindings<T extends BindValue>- 返回:
- bytes
-
-