| Modifier and Type | Field and Description |
|---|---|
| private Function | |
| private BindValue[] | bindValues
Bind values for individual fields |
| private ColumnDefinition | |
| private static final Map | |
| private boolean | isLoadDataQuery
Is this query a LOAD DATA query? |
| private boolean | longParameterSwitchDetected
Flag indicating whether or not the long parameters have been 'switched' back to normal parameters. |
| private int | |
| private AtomicBoolean | sendTypesToServer
Do we need to send/resend types to the server? |
| private Session |
| Access | Constructor and Description |
|---|---|
| public | NativeQueryBindings(int parameterCount, Session sess, Function<Session, BindValue> bindValueConstructor)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public boolean | |
| public QueryBindings | clone()
Overrides java. Implements com. Creates and returns a copy of this object. |
| public BindValue | Returns: BindValue0-based parameterIndex, boolean is this for a stream? forLongData)Implements com. Returns the structure representing the value that (can be)/(is) bound at the given parameter index. |
| public BindValue[] | |
| public byte[] | getBytesRepresentation(int parameterIndex)
Implements com.
|
| public int | |
| public AtomicBoolean | |
| public boolean | |
| public boolean | |
| public void | setAsciiStream(int parameterIndex, InputStream x, int length)
Implements com.
|
| public void | |
| public void | |
| public void | setBinaryStream(int parameterIndex, InputStream x, int length)
Implements com.
|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setBytes(int parameterIndex, byte[] x, boolean escapeIfNeeded)
Implements com.
|
| public void | setCharacterStream(int parameterIndex, Reader reader, int length)
Implements com.
|
| public void | |
| public void | setColumnDefinition(ColumnDefinition colDef)
Implements com.
|
| public void | |
| public void | |
| public void | |
| public void | setFromBindValue(int parameterIndex, BindValue bv)
Implements com.
|
| public void | |
| public void | |
| public void | setLongParameterSwitchDetected(boolean longParameterSwitchDetected)
Implements com.
|
| public void | setNCharacterStream(int parameterIndex, Reader reader, long length)
Implements com.
|
| public void | |
| public void | |
| public void | |
| public void | setNumberOfExecutions(int numberOfExecutions)
Implements com.
|
| public void | |
| public void | setObject(int
the first parameter is 1... parameterIndex, Object the object containing the input parameter value parameterObj, MysqlType The MysqlType to be send to the database targetMysqlType, int 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. scaleOrLength)Implements com. Set the value of a parameter using an object; use the java.lang equivalent objects for integral values. |
| protected final void | setSerializableObject(int
parameter index parameterIndex, Object value parameterObj)Sets the value for the placeholder as a serialized Java object (used by various forms of setObject() |
| public void | |
| public void | |
| public void | |
| public void | setTimestamp(int parameterIndex, Timestamp x, Calendar targetCalendar, Field field, MysqlType targetMysqlType)
Implements com.
|
| bindValueConstructor | back to summary |
|---|---|
| private Function<Session, BindValue> bindValueConstructor | |
| bindValues | back to summary |
|---|---|
| private BindValue[] bindValues Bind values for individual fields | |
| columnDefinition | back to summary |
|---|---|
| private ColumnDefinition columnDefinition | |
| DEFAULT_MYSQL_TYPES | back to summary |
|---|---|
| private static final Map<Class<?>, MysqlType> DEFAULT_MYSQL_TYPES | |
| isLoadDataQuery | back to summary |
|---|---|
| private boolean isLoadDataQuery Is this query a LOAD DATA query? | |
| longParameterSwitchDetected | back to summary |
|---|---|
| private boolean longParameterSwitchDetected Flag indicating whether or not the long parameters have been 'switched' back to normal parameters. We cannot execute() if clearParameters() has not been called in this case. | |
| numberOfExecutions | back to summary |
|---|---|
| private int numberOfExecutions | |
| sendTypesToServer | back to summary |
|---|---|
| private AtomicBoolean sendTypesToServer Do we need to send/resend types to the server? | |
| session | back to summary |
|---|---|
| private Session session | |
| NativeQueryBindings | back to summary |
|---|---|
| public NativeQueryBindings(int parameterCount, Session sess, Function<Session, BindValue> bindValueConstructor) | |
| checkAllParametersSet | back to summary |
|---|---|
| public void checkAllParametersSet() Implements com.
| |
| checkParameterSet | back to summary |
|---|---|
| public void checkParameterSet(int columnIndex) Implements com.
| |
| clearBindValues | back to summary |
|---|---|
| public boolean clearBindValues() Implements com.
| |
| clone | back to summary |
|---|---|
| public QueryBindings clone() Overrides java. Implements com. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| getBinding | back to summary |
|---|---|
| public BindValue getBinding(int parameterIndex, boolean forLongData) Implements com. Returns the structure representing the value that (can be)/(is) bound at the given parameter index. | |
| getBindValues | back to summary |
|---|---|
| public BindValue[] getBindValues() Implements com.
| |
| getBytesRepresentation | back to summary |
|---|---|
| public byte[] getBytesRepresentation(int parameterIndex) Implements com.
| |
| getNumberOfExecutions | back to summary |
|---|---|
| public int getNumberOfExecutions() Implements com.
| |
| getSendTypesToServer | back to summary |
|---|---|
| public AtomicBoolean getSendTypesToServer() Implements com.
| |
| isLongParameterSwitchDetected | back to summary |
|---|---|
| public boolean isLongParameterSwitchDetected() Implements com.
| |
| isNull | back to summary |
|---|---|
| public boolean isNull(int parameterIndex) Implements com.
| |
| setAsciiStream | back to summary |
|---|---|
| public void setAsciiStream(int parameterIndex, InputStream x, int length) Implements com.
| |
| setBigDecimal | back to summary |
|---|---|
| public void setBigDecimal(int parameterIndex, BigDecimal x) Implements com.
| |
| setBigInteger | back to summary |
|---|---|
| public void setBigInteger(int parameterIndex, BigInteger x) Implements com.
| |
| setBinaryStream | back to summary |
|---|---|
| public void setBinaryStream(int parameterIndex, InputStream x, int length) Implements com.
| |
| setBindValues | back to summary |
|---|---|
| public void setBindValues(BindValue[] bindValues) Implements com.
| |
| setBlob | back to summary |
|---|---|
| public void setBlob(int parameterIndex, Blob x) Implements com.
| |
| setBoolean | back to summary |
|---|---|
| public void setBoolean(int parameterIndex, boolean x) Implements com.
| |
| setByte | back to summary |
|---|---|
| public void setByte(int parameterIndex, byte x) Implements com.
| |
| setBytes | back to summary |
|---|---|
| public void setBytes(int parameterIndex, byte[] x, boolean escapeIfNeeded) Implements com.
| |
| setCharacterStream | back to summary |
|---|---|
| public void setCharacterStream(int parameterIndex, Reader reader, int length) Implements com.
| |
| setClob | back to summary |
|---|---|
| public void setClob(int parameterIndex, Clob x) Implements com.
| |
| setColumnDefinition | back to summary |
|---|---|
| public void setColumnDefinition(ColumnDefinition colDef) Implements com.
| |
| setDate | back to summary |
|---|---|
| public void setDate(int parameterIndex, Date x, Calendar cal) Implements com.
| |
| setDouble | back to summary |
|---|---|
| public void setDouble(int parameterIndex, double x) Implements com.
| |
| setFloat | back to summary |
|---|---|
| public void setFloat(int parameterIndex, float x) Implements com.
| |
| setFromBindValue | back to summary |
|---|---|
| public void setFromBindValue(int parameterIndex, BindValue bv) Implements com.
| |
| setInt | back to summary |
|---|---|
| public void setInt(int parameterIndex, int x) Implements com.
| |
| setLong | back to summary |
|---|---|
| public void setLong(int parameterIndex, long x) Implements com.
| |
| setLongParameterSwitchDetected | back to summary |
|---|---|
| public void setLongParameterSwitchDetected(boolean longParameterSwitchDetected) Implements com.
| |
| setNCharacterStream | back to summary |
|---|---|
| public void setNCharacterStream(int parameterIndex, Reader reader, long length) Implements com.
| |
| setNClob | back to summary |
|---|---|
| public void setNClob(int parameterIndex, NClob value) Implements com.
| |
| setNString | back to summary |
|---|---|
| public void setNString(int parameterIndex, String x) Implements com.
| |
| setNull | back to summary |
|---|---|
| public void setNull(int parameterIndex) Implements com.
| |
| setNumberOfExecutions | back to summary |
|---|---|
| public void setNumberOfExecutions(int numberOfExecutions) Implements com.
| |
| setObject | back to summary |
|---|---|
| public void setObject(int parameterIndex, Object parameterObj) Implements com.
| |
| setObject | back to summary |
|---|---|
| public void setObject(int parameterIndex, Object parameterObj, MysqlType targetMysqlType, int scaleOrLength) Implements com. 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.
| |
| setSerializableObject | back to summary |
|---|---|
| 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()
| |
| setShort | back to summary |
|---|---|
| public void setShort(int parameterIndex, short x) Implements com.
| |
| setString | back to summary |
|---|---|
| public void setString(int parameterIndex, String x) Implements com.
| |
| setTime | back to summary |
|---|---|
| public void setTime(int parameterIndex, Time x, Calendar cal) Implements com.
| |
| setTimestamp | back to summary |
|---|---|
| public void setTimestamp(int parameterIndex, Timestamp x, Calendar targetCalendar, Field field, MysqlType targetMysqlType) Implements com.
| |