Uses of Interface
jakarta.persistence.Statement
Packages that use Statement
Package
Description
Defines the core APIs for the management for persistence and
object/relational mapping.
-
Uses of Statement in jakarta.persistence
Methods in jakarta.persistence that return StatementModifier and TypeMethodDescriptionStatement.addOption(Statement.Option option) Specify an option influencing execution of this statement, overwriting any existing option of the same type.StatementOrTypedQuery.asStatement()Obtain aStatementrepresenting this statement, which must be some kind of executable statement, that is, a Jakarta PersistenceUPDATEorDELETEstatement, or any native SQL statement that returns a row count.EntityHandler.createNamedStatement(String name) Create an instance ofStatementfor executing a namedUPDATEorDELETEstatement written in the Jakarta Persistence query language, or a named native SQL statement which returns a row count.EntityHandler.createNativeStatement(String sqlString) Create an instance ofStatementfor executing a native SQL statement which returns a row count, usually anINSERT,UPDATE,MERGE, orDELETEstatement.EntityManager.createQuery(CriteriaStatement<?> statement) Deprecated, for removal: This API element is subject to removal in a future version.EntityHandler.createStatement(CriteriaStatement<?> statement) Create an instance ofStatementfor executing a criteria statement.EntityHandler.createStatement(StatementReference reference) Create an instance ofStatementfor executing a named statement written in the Jakarta Persistence query language or in native SQL.EntityHandler.createStatement(String qlString) <P> StatementStatement.setConvertedParameter(int position, P value, Class<? extends AttributeConverter<P, ?>> converter) Bind an argument value to a named parameter, explicitly specifying an attribute converter to use.<P> StatementStatement.setConvertedParameter(String name, P value, Class<? extends AttributeConverter<P, ?>> converter) Bind an argument value to a named parameter, explicitly specifying an attribute converter to use.Statement.setFlushMode(FlushModeType flushMode) Deprecated.Set a query property or hint.Statement.setParameter(int position, Object value) Bind an argument value to a positional parameter.Statement.setParameter(int position, Calendar value, TemporalType temporalType) Deprecated.Newly written code should use the date/time types defined injava.time.Statement.setParameter(int position, Date value, TemporalType temporalType) Deprecated.Newly written code should use the date/time types defined injava.time.<P> StatementStatement.setParameter(int position, P value, Type<P> type) Bind an argument value to a positional parameter, explicitly specifying the parameter type.<P> StatementStatement.setParameter(int position, P value, Class<P> type) Bind an argument value to a positional parameter, explicitly specifying the parameter type.Statement.setParameter(Parameter<Calendar> param, Calendar value, TemporalType temporalType) Deprecated.Newly written code should use the date/time types defined injava.time.Statement.setParameter(Parameter<Date> param, Date value, TemporalType temporalType) Deprecated.Newly written code should use the date/time types defined injava.time.<T> StatementStatement.setParameter(Parameter<T> parameter, T value) Bind an argument to a parameter of this query respresented as aParameterobject.Statement.setParameter(String name, Object value) Bind an argument value to a named parameter.Statement.setParameter(String name, Calendar value, TemporalType temporalType) Deprecated.Newly written code should use the date/time types defined injava.time.Statement.setParameter(String name, Date value, TemporalType temporalType) Deprecated.Newly written code should use the date/time types defined injava.time.<P> StatementStatement.setParameter(String name, P value, Type<P> type) Bind an argument value to a named parameter, explicitly specifying the parameter type.<P> StatementStatement.setParameter(String name, P value, Class<P> type) Bind an argument value to a named parameter, explicitly specifying the parameter type.Statement.setQueryFlushMode(QueryFlushMode flushMode) Set the query flush mode to be used when the query is executed.Statement.setTimeout(Timeout timeout) Set the query timeout.Statement.setTimeout(Integer timeout) Set the query timeout, in milliseconds.Methods in jakarta.persistence with parameters of type StatementModifier and TypeMethodDescriptionEntityManagerFactory.addNamedStatement(String name, Statement statement) Define the givenStatementas a named statement such that future statement objects can be created from it by calling eitherEntityHandler.createStatement(StatementReference)orEntityHandler.createNamedStatement(String).
EntityHandler.createStatement(CriteriaStatement).