PreparedStatement class

Represents a pre-compiled SQL statement with or without IN parameters. Created at runtime using Connection.prepareStatement.

This object can then be used to efficiently execute this statements multiple times.

When a prepared statement is closed, all ResultSet and ResultSetSchema objects associated with it are also closed. For resource management reasons, it is preferred that you explicitly close prepared statements when you are done with them.