Client
PreparedStatement for query construction at the client side.
Type parameters
- F
-
the effect type
Value parameters
- ev
-
the effect type class
- initialPacket
-
the initial packet
- params
-
the parameters
- resetSequenceId
-
the reset sequence id
- socket
-
the packet socket
- sql
-
the SQL statement
Attributes
- Source
- PreparedStatement.scala
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SharedPreparedStatement[F]trait PreparedStatement[F]trait Statement[F]class Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Adds a set of parameters to this PreparedStatement object's batch of commands.
Adds a set of parameters to this PreparedStatement object's batch of commands.
Attributes
- Definition Classes
- Source
- PreparedStatement.scala
Releases this Statement object's database and LDBC resources immediately instead of waiting for this to happen when it is automatically closed. It is generally good practice to release resources as soon as you are finished with them to avoid tying up database resources.
Releases this Statement object's database and LDBC resources immediately instead of waiting for this to happen when it is automatically closed. It is generally good practice to release resources as soon as you are finished with them to avoid tying up database resources.
Calling the method close on a Statement object that is already closed has no effect.
Note: When a Statement object is closed, its current ResultSet object, if one exists, is also closed.
Attributes
- Definition Classes
- Source
- PreparedStatement.scala
Submits a batch of commands to the database for execution and if all commands execute successfully, returns an array of update counts. The int elements of the array that is returned are ordered to correspond to the commands in the batch, which are ordered according to the order in which they were added to the batch. The elements in the array returned by the method executeBatch may be one of the following:
Submits a batch of commands to the database for execution and if all commands execute successfully, returns an array of update counts. The int elements of the array that is returned are ordered to correspond to the commands in the batch, which are ordered according to the order in which they were added to the batch. The elements in the array returned by the method executeBatch may be one of the following:
- A number greater than or equal to zero -- indicates that the command was processed successfully and is an update count giving the number of rows in the database that were affected by the command's execution
- A value of
SUCCESS_NO_INFO
-- indicates that the command was processed successfully but that the number of rows affected is unknownIf one of the commands in a batch update fails to execute properly, this method throws a
BatchUpdateException
, and a JDBC driver may or may not continue to process the remaining commands in the batch. However, the driver's behavior must be consistent with a particular DBMS, either always continuing to process commands or never continuing to process commands. If the driver continues processing after a failure, the array returned by the methodBatchUpdateException.getUpdateCounts
will contain as many elements as there are commands in the batch, and at least one of the elements will be the following: - A value of
EXECUTE_FAILED
-- indicates that the command failed to execute successfully and occurs only if a driver continues to process commands after a command fails
Attributes
- Returns
-
an array of update counts containing one element for each command in the batch. The elements of the array are ordered according to the order in which commands were added to the batch.
- Definition Classes
- Source
- PreparedStatement.scala
Executes the specified SQL statement and returns one or more ResultSet objects.
Executes the specified SQL statement and returns one or more ResultSet objects.
Attributes
- Definition Classes
- Source
- PreparedStatement.scala
Executes the given SQL statement, which may be an INSERT, UPDATE, or DELETE statement or an SQL statement that returns nothing, such as an SQL DDL statement.
Executes the given SQL statement, which may be an INSERT, UPDATE, or DELETE statement or an SQL statement that returns nothing, such as an SQL DDL statement.
Attributes
- Definition Classes
- Source
- PreparedStatement.scala
Retrieves any auto-generated keys created as a result of executing this Statement object.
Retrieves any auto-generated keys created as a result of executing this Statement object.
Attributes
- Definition Classes
- Source
- PreparedStatement.scala
Inherited methods
Adds the given SQL command to the current list of commands for this Statement object. The commands in this list can be executed as a batch by calling the method executeBatch.
Adds the given SQL command to the current list of commands for this Statement object. The commands in this list can be executed as a batch by calling the method executeBatch.
Value parameters
- sql
-
typically this is a SQL INSERT or UPDATE statement
Attributes
- Definition Classes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Attributes
- Inherited from:
- SharedPreparedStatement
- Source
- PreparedStatement.scala
Attributes
- Inherited from:
- SharedPreparedStatement
- Source
- PreparedStatement.scala
Empties this Statement object's current list of SQL commands.
Empties this Statement object's current list of SQL commands.
Attributes
- Inherited from:
- Statement
- Source
- Statement.scala
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- SharedPreparedStatement
- Source
- PreparedStatement.scala
Attributes
- Inherited from:
- SharedPreparedStatement
- Source
- PreparedStatement.scala
Sets the designated parameter to the given Scala.math.BigDecimal value. The driver converts this to an SQL NUMERIC value when it sends it to the database.
Sets the designated parameter to the given Scala.math.BigDecimal value. The driver converts this to an SQL NUMERIC value when it sends it to the database.
Value parameters
- index
-
the first parameter is 1, the second is 2, ...
- value
-
the parameter value
Attributes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Sets the designated parameter to the given Scala.math.BigDecimal value. The driver converts this to an SQL NUMERIC value when it sends it to the database.
Sets the designated parameter to the given Scala.math.BigDecimal value. The driver converts this to an SQL NUMERIC value when it sends it to the database.
Value parameters
- index
-
the first parameter is 1, the second is 2, ...
- value
-
the parameter value
Attributes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Sets the designated parameter to the given Scala long value. The driver converts this to an SQL BIGINT value when it sends it to the database.
Sets the designated parameter to the given Scala long value. The driver converts this to an SQL BIGINT value when it sends it to the database.
Value parameters
- index
-
the first parameter is 1, the second is 2, ...
- value
-
the parameter value
Attributes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Sets the designated parameter to the given Scala long value. The driver converts this to an SQL BIGINT value when it sends it to the database.
Sets the designated parameter to the given Scala long value. The driver converts this to an SQL BIGINT value when it sends it to the database.
Value parameters
- index
-
the first parameter is 1, the second is 2, ...
- value
-
the parameter value
Attributes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Sets the designated parameter to the given Scala boolean value. The driver converts this to an SQL BIT or BOOLEAN value when it sends it to the database.
Sets the designated parameter to the given Scala boolean value. The driver converts this to an SQL BIT or BOOLEAN value when it sends it to the database.
Value parameters
- index
-
the first parameter is 1, the second is 2, ...
- value
-
the parameter value
Attributes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Sets the designated parameter to the given Scala boolean value. The driver converts this to an SQL BIT or BOOLEAN value when it sends it to the database.
Sets the designated parameter to the given Scala boolean value. The driver converts this to an SQL BIT or BOOLEAN value when it sends it to the database.
Value parameters
- index
-
the first parameter is 1, the second is 2, ...
- value
-
the parameter value
Attributes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Sets the designated parameter to the given Scala byte value. The driver converts this to an SQL TINYINT value when it sends it to the database.
Sets the designated parameter to the given Scala byte value. The driver converts this to an SQL TINYINT value when it sends it to the database.
Value parameters
- index
-
the first parameter is 1, the second is 2, ...
- value
-
the parameter value
Attributes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Sets the designated parameter to the given Scala byte value. The driver converts this to an SQL TINYINT value when it sends it to the database.
Sets the designated parameter to the given Scala byte value. The driver converts this to an SQL TINYINT value when it sends it to the database.
Value parameters
- index
-
the first parameter is 1, the second is 2, ...
- value
-
the parameter value
Attributes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Sets the designated parameter to the given Scala array of bytes. The driver converts this to an SQL VARBINARY or LONGVARBINARY (depending on the argument's size relative to the driver's limits on VARBINARY values) when it sends it to the database.
Sets the designated parameter to the given Scala array of bytes. The driver converts this to an SQL VARBINARY or LONGVARBINARY (depending on the argument's size relative to the driver's limits on VARBINARY values) when it sends it to the database.
Value parameters
- index
-
the first parameter is 1, the second is 2, ...
- value
-
the parameter value
Attributes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Sets the designated parameter to the given Scala array of bytes. The driver converts this to an SQL VARBINARY or LONGVARBINARY (depending on the argument's size relative to the driver's limits on VARBINARY values) when it sends it to the database.
Sets the designated parameter to the given Scala array of bytes. The driver converts this to an SQL VARBINARY or LONGVARBINARY (depending on the argument's size relative to the driver's limits on VARBINARY values) when it sends it to the database.
Value parameters
- index
-
the first parameter is 1, the second is 2, ...
- value
-
the parameter value
Attributes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Sets the designated parameter to the given java.time.Date value, using the given Calendar object. The driver uses the Calendar object to construct an SQL DATE value, which the driver then sends to the database. With a Calendar object, the driver can calculate the date taking into account a custom timezone. If no Calendar object is specified, the driver uses the default timezone, which is that of the virtual machine running the application.
Sets the designated parameter to the given java.time.Date value, using the given Calendar object. The driver uses the Calendar object to construct an SQL DATE value, which the driver then sends to the database. With a Calendar object, the driver can calculate the date taking into account a custom timezone. If no Calendar object is specified, the driver uses the default timezone, which is that of the virtual machine running the application.
Value parameters
- index
-
the first parameter is 1, the second is 2, ...
- value
-
the parameter value
Attributes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Sets the designated parameter to the given java.time.Date value, using the given Calendar object. The driver uses the Calendar object to construct an SQL DATE value, which the driver then sends to the database. With a Calendar object, the driver can calculate the date taking into account a custom timezone. If no Calendar object is specified, the driver uses the default timezone, which is that of the virtual machine running the application.
Sets the designated parameter to the given java.time.Date value, using the given Calendar object. The driver uses the Calendar object to construct an SQL DATE value, which the driver then sends to the database. With a Calendar object, the driver can calculate the date taking into account a custom timezone. If no Calendar object is specified, the driver uses the default timezone, which is that of the virtual machine running the application.
Value parameters
- index
-
the first parameter is 1, the second is 2, ...
- value
-
the parameter value
Attributes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Sets the designated parameter to the given Scala double value. The driver converts this to an SQL DOUBLE value when it sends it to the database.
Sets the designated parameter to the given Scala double value. The driver converts this to an SQL DOUBLE value when it sends it to the database.
Value parameters
- index
-
the first parameter is 1, the second is 2, ...
- value
-
the parameter value
Attributes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Sets the designated parameter to the given Scala double value. The driver converts this to an SQL DOUBLE value when it sends it to the database.
Sets the designated parameter to the given Scala double value. The driver converts this to an SQL DOUBLE value when it sends it to the database.
Value parameters
- index
-
the first parameter is 1, the second is 2, ...
- value
-
the parameter value
Attributes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Sets the designated parameter to the given Scala float value. The driver converts this to an SQL REAL value when it ends it to the database.
Sets the designated parameter to the given Scala float value. The driver converts this to an SQL REAL value when it ends it to the database.
Value parameters
- index
-
the first parameter is 1, the second is 2, ...
- value
-
the parameter value
Attributes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Sets the designated parameter to the given Scala float value. The driver converts this to an SQL REAL value when it ends it to the database.
Sets the designated parameter to the given Scala float value. The driver converts this to an SQL REAL value when it ends it to the database.
Value parameters
- index
-
the first parameter is 1, the second is 2, ...
- value
-
the parameter value
Attributes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Sets the designated parameter to the given Scala int value. The driver converts this to an SQL INTEGER value when it sends it to the database.
Sets the designated parameter to the given Scala int value. The driver converts this to an SQL INTEGER value when it sends it to the database.
Value parameters
- index
-
the first parameter is 1, the second is 2, ...
- value
-
the parameter value
Attributes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Sets the designated parameter to the given Scala int value. The driver converts this to an SQL INTEGER value when it sends it to the database.
Sets the designated parameter to the given Scala int value. The driver converts this to an SQL INTEGER value when it sends it to the database.
Value parameters
- index
-
the first parameter is 1, the second is 2, ...
- value
-
the parameter value
Attributes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Sets the designated parameter to the given Scala long value. The driver converts this to an SQL BIGINT value when it sends it to the database.
Sets the designated parameter to the given Scala long value. The driver converts this to an SQL BIGINT value when it sends it to the database.
Value parameters
- index
-
the first parameter is 1, the second is 2, ...
- value
-
the parameter value
Attributes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Sets the designated parameter to the given Scala long value. The driver converts this to an SQL BIGINT value when it sends it to the database.
Sets the designated parameter to the given Scala long value. The driver converts this to an SQL BIGINT value when it sends it to the database.
Value parameters
- index
-
the first parameter is 1, the second is 2, ...
- value
-
the parameter value
Attributes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Sets the designated parameter to SQL NULL.
Sets the designated parameter to SQL NULL.
Value parameters
- index
-
the first parameter is 1, the second is 2, ...
Attributes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Sets the designated parameter to the given Scala short value. The driver converts this to an SQL SMALLINT value when it sends it to the database.
Sets the designated parameter to the given Scala short value. The driver converts this to an SQL SMALLINT value when it sends it to the database.
Value parameters
- index
-
the first parameter is 1, the second is 2, ...
- value
-
the parameter value
Attributes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Sets the designated parameter to the given Scala short value. The driver converts this to an SQL SMALLINT value when it sends it to the database.
Sets the designated parameter to the given Scala short value. The driver converts this to an SQL SMALLINT value when it sends it to the database.
Value parameters
- index
-
the first parameter is 1, the second is 2, ...
- value
-
the parameter value
Attributes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Sets the designated parameter to the given Scala String value. The driver converts this to an SQL VARCHAR or LONGVARCHAR value (depending on the argument's size relative to the driver's limits on VARCHAR values) when it sends it to the database.
Sets the designated parameter to the given Scala String value. The driver converts this to an SQL VARCHAR or LONGVARCHAR value (depending on the argument's size relative to the driver's limits on VARCHAR values) when it sends it to the database.
Value parameters
- index
-
the first parameter is 1, the second is 2, ...
- value
-
the parameter value
Attributes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Sets the designated parameter to the given Scala String value. The driver converts this to an SQL VARCHAR or LONGVARCHAR value (depending on the argument's size relative to the driver's limits on VARCHAR values) when it sends it to the database.
Sets the designated parameter to the given Scala String value. The driver converts this to an SQL VARCHAR or LONGVARCHAR value (depending on the argument's size relative to the driver's limits on VARCHAR values) when it sends it to the database.
Value parameters
- index
-
the first parameter is 1, the second is 2, ...
- value
-
the parameter value
Attributes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Sets the designated parameter to the given java.time.Time value. The driver converts this to an SQL TIME value when it sends it to the database.
Sets the designated parameter to the given java.time.Time value. The driver converts this to an SQL TIME value when it sends it to the database.
Value parameters
- index
-
the first parameter is 1, the second is 2, ...
- value
-
the parameter value
Attributes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Sets the designated parameter to the given java.time.Time value. The driver converts this to an SQL TIME value when it sends it to the database.
Sets the designated parameter to the given java.time.Time value. The driver converts this to an SQL TIME value when it sends it to the database.
Value parameters
- index
-
the first parameter is 1, the second is 2, ...
- value
-
the parameter value
Attributes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Sets the designated parameter to the given java.time.Timestamp value. The driver converts this to an SQL TIMESTAMP value when it sends it to the database.
Sets the designated parameter to the given java.time.Timestamp value. The driver converts this to an SQL TIMESTAMP value when it sends it to the database.
Value parameters
- index
-
the first parameter is 1, the second is 2, ...
- value
-
the parameter value
Attributes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Sets the designated parameter to the given java.time.Timestamp value. The driver converts this to an SQL TIMESTAMP value when it sends it to the database.
Sets the designated parameter to the given java.time.Timestamp value. The driver converts this to an SQL TIMESTAMP value when it sends it to the database.
Value parameters
- index
-
the first parameter is 1, the second is 2, ...
- value
-
the parameter value
Attributes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Sets the designated parameter to the given java.time.Year value. The driver converts this to an SQL YEAR value when it sends it to the database.
Sets the designated parameter to the given java.time.Year value. The driver converts this to an SQL YEAR value when it sends it to the database.
Value parameters
- index
-
the first parameter is 1, the second is 2, ...
- value
-
the parameter value
Attributes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Sets the designated parameter to the given java.time.Year value. The driver converts this to an SQL YEAR value when it sends it to the database.
Sets the designated parameter to the given java.time.Year value. The driver converts this to an SQL YEAR value when it sends it to the database.
Value parameters
- index
-
the first parameter is 1, the second is 2, ...
- value
-
the parameter value
Attributes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Deprecated and Inherited methods
Executes the specified SQL statement and returns one or more ResultSet objects.
Executes the specified SQL statement and returns one or more ResultSet objects.
Value parameters
- sql
-
an SQL statement to be sent to the database, typically a static SQL SELECT statement
Attributes
- Deprecated
- true
- Definition Classes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Executes the given SQL statement, which may be an INSERT, UPDATE, or DELETE statement or an SQL statement that returns nothing, such as an SQL DDL statement.
Executes the given SQL statement, which may be an INSERT, UPDATE, or DELETE statement or an SQL statement that returns nothing, such as an SQL DDL statement.
Attributes
- Deprecated
- true
- Definition Classes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala
Retrieves any auto-generated keys created as a result of executing this Statement object.
Retrieves any auto-generated keys created as a result of executing this Statement object.
Attributes
- Deprecated
- true
- Definition Classes
- Inherited from:
- PreparedStatement
- Source
- PreparedStatement.scala