ObjectDB Database Search

1-50 of 85 results

jakarta.persistence.Timeout

Jakarta Persistence (JPA) Class jakarta.persistence. Timeout java.lang.Object ∟ jakarta.persistence. Timeout Implemented Interfaces: FindOption , RefreshOption , LockOption Specifies a timeout ... Persistence (JPA) 3.2 Public Static Methods Timeout milliseconds ( int milliseconds ) Specify

jakarta.persistence.Timeout.Timeout(int)

Jakarta Persistence (JPA) Constructor in jakarta.persistence. Timeout Timeout (    int milliseconds ) Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Timeout.s(int)

Jakarta Persistence (JPA) Method in jakarta.persistence. Timeout Timeout s (    int seconds ) Specify a timeout in seconds. (Abbreviation of Timeout .seconds .) Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Timeout.ms(int)

Jakarta Persistence (JPA) Method in jakarta.persistence. Timeout Timeout ms (    int milliseconds ) Specify a timeout in milliseconds. (Abbreviation of Timeout .milliseconds .) Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Timeout.seconds(int)

Jakarta Persistence (JPA) Method in jakarta.persistence. Timeout Timeout seconds (    int seconds ) Specify a timeout in seconds. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Timeout.milliseconds(int)

Jakarta Persistence (JPA) Method in jakarta.persistence. Timeout Timeout milliseconds (    int milliseconds ) Specify a timeout in milliseconds. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Timeout.milliseconds()

Jakarta Persistence (JPA) Method in jakarta.persistence. Timeout int milliseconds() The timeout in milliseconds. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceConfiguration.LOCK_TIMEOUT

Jakarta Persistence (JPA) Field in jakarta.persistence.PersistenceConfiguration LOCK_ TIMEOUT Default pessimistic lock timeout hint. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceConfiguration.QUERY_TIMEOUT

Jakarta Persistence (JPA) Field in jakarta.persistence.PersistenceConfiguration QUERY_ TIMEOUT Default query timeout hint. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Timeout.milliseconds

Jakarta Persistence (JPA) Field in jakarta.persistence. Timeout milliseconds Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Timeout.this

No JavaDoc Info for jakarta.persistence. Timeout /this

Setting and Tuning of JPA Queries

supports the following query hints: "javax.persistence.query. timeout " - sets maximum query execution time in milliseconds. A  QueryTimeoutException  is thrown if timeout is exceeded. "javax.persistence.lock. timeout " - sets maximum waiting time for pessimistic locks, when pessimistic locking

Locking in JPA

(on the second lock request). Pessimistic Lock Timeout By default, when a pessimistic lock conflict occurs a LockTimeoutException is thrown immediately. The "javax.persistence.lock. timeout "  hint ... ; properties.put("javax.persistence.lock. timeout ", 2000);   EntityManagerFactory emf =  

General Settings and Logging

and kilobytes (respectively). The element The element has one attribute, inactivity- timeout , which specifies when network sockets become obsolete as a result of inactivity. The value is the timeout in seconds, where 0 indicates never (no inactivity timeout ). The inactivity timeout (when 0

Pessimistic Lock Timeouts setting

Hi,   I realise that JPA2 doesn't necessarily define a standard API way for Lock Timeouts ... a record for a specific time. The hint property is: "javax.persistence.lock. timeout " I have a situation ... on stale updates. Willks William Support of pessimistic lock timeout  setting ( javax.persistence

Set timeout for BatchQueryItr

but i wonder if it's possible to put a timeout for too long query. Regards, Xirt xirt Sylvain ... ( unknown source ) xirt Sylvain You can set a query execution timeout as a query hint . The many

jakarta.persistence.StoredProcedureQuery

to result set. Throws: PersistenceException - if the query execution exceeds the query timeout value set ... timeout value set and only the statement is rolled back. Since: Jakarta Persistence (JPA) 1.0 int ... an update count.. Throws: PersistenceException - if the query execution exceeds the query timeout

jakarta.persistence.TypedQuery

query. PersistenceException - if the query execution exceeds the query timeout value set ... execution exceeds the query timeout value set and only the statement is rolled back. Since: Jakarta ... back. PersistenceException - if the query execution exceeds the query timeout value set

jakarta.persistence.Query

statement or for a criteria query. PersistenceException - if the query execution exceeds the query timeout ... - if the statement execution exceeds the query timeout value set and only the statement is rolled ... execution exceeds the query timeout value set and the transaction is rolled

ObjectDB Object Database Features

. Configurable - minimum/maximum connections and timeout . Caching L1 entity object cache

jakarta.persistence.EntityManager

ignored. Portable applications should not rely on the standard timeout hint. Depending on the database in ... timeout option . Depending on the database in use and the locking mechanisms used by the provider ... . Portable applications should not rely on the standard timeout option . Depending on the database in use

jakarta.persistence.EntityTransaction

. Since: Jakarta Persistence (JPA) 1.0 Integer getTimeout () The transaction timeout . Since: Jakarta Persistence ... . Since: Jakarta Persistence (JPA) 1.0 void setTimeout ( Integer timeout ) Set the transaction timeout , in seconds. This is a hint. Parameters: timeout - the timeout , in seconds, or null to indicate

jakarta.persistence.PersistenceConfiguration

(JPA) 1.0 JDBC_USER Username for JDBC authentication. Since: Jakarta Persistence (JPA) 1.0 LOCK_ TIMEOUT Default pessimistic lock timeout hint. Since: Jakarta Persistence (JPA) 1.0 QUERY_ TIMEOUT Default query timeout hint. Since: Jakarta Persistence (JPA) 1.0 SCHEMAGEN_CREATE_SCRIPT_SOURCE

jakarta.persistence.TypedQuery.setTimeout(Integer)

;  Integer timeout ) Set the query timeout , in milliseconds. This is a hint, and is an alternative to setting the hint jakarta.persistence.query. timeout . Parameters: timeout - the timeout , in milliseconds, or null to indicate no timeout Returns: the same query instance. Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.StoredProcedureQuery.setTimeout(Integer)

setTimeout (    Integer timeout ) Set the query timeout , in milliseconds. This is a hint, and is an alternative to setting the hint jakarta.persistence.query. timeout . Parameters: timeout - the timeout , in milliseconds, or null to indicate no timeout Returns: the same query instance. Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.Query.setTimeout(Integer)

; Integer timeout ) Set the query timeout , in milliseconds. This is a hint, and is an alternative to setting the hint jakarta.persistence.query. timeout . Parameters: timeout - the timeout , in milliseconds, or null to indicate no timeout Returns: the same query instance. Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.EntityTransaction.setTimeout(Integer)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityTransaction void setTimeout (    Integer timeout ) Set the transaction timeout , in seconds. This is a hint. Parameters: timeout - the timeout , in seconds, or null to indicate that the database server should set the timeout Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.LockOption

Jakarta Persistence (JPA) Interface jakarta.persistence.LockOption An option influencing the behavior of EntityManager.lock . Built-in options control scope , and timeouts . This interface ... . See Also: LockModeType PessimisticLockScope Timeout EntityManager::lock(Object, LockModeType, LockOption...) Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.FindOption

Jakarta Persistence (JPA) Interface jakarta.persistence.FindOption An option influencing the behavior of EntityManager.find . Built-in options control locking , cache interaction , and timeouts ... Timeout EntityManager::find(Class, Object, FindOption...) EntityManager::find(EntityGraph, Object, FindOption...) Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.RefreshOption

, and timeouts . This interface may be implemented by custom provider-specific options which extend the options defined by the specification. See Also: LockModeType PessimisticLockScope CacheStoreMode Timeout

Pessimistic lock timeout - blocks indefinitely

to update the object. I'm using a pessimistic lock with timeout as follows: Map properties = new HashMap (); properties.put("javax.persistence.lock. timeout ", 5000); MyEntity loaded = em.find(MyEntity ... set the timeout to less than 1000ms the blocked threads get released at the correct time but thrown

jakarta.persistence.TypedQuery.getResultStream()

and only the statement is rolled back. PersistenceException - if the query execution exceeds the query timeout value set ... to the transaction. QueryTimeoutException - if the query execution exceeds the query timeout value set

jakarta.persistence.TypedQuery.getSingleResult()

timeout value set and only the statement is rolled back. PessimisticLockException - if pessimistic locking ... . PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled

jakarta.persistence.TypedQuery.getSingleResultOrNull()

- if the query execution exceeds the query timeout value set and only the statement is rolled ... back. PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled

jakarta.persistence.TypedQuery.getResultList()

the query timeout value set and the transaction is rolled back. TransactionRequiredException ... timeout value set and only the statement is rolled back. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.StoredProcedureQuery.execute()

the query timeout value set and the transaction is rolled back. QueryTimeoutException - if the query execution exceeds the query timeout value set and only the statement is rolled back. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.StoredProcedureQuery.hasMoreResults()

the query timeout value set and the transaction is rolled back. QueryTimeoutException - if the query execution exceeds the query timeout value set and only the statement is rolled back. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.StoredProcedureQuery.getUpdateCount()

an update count. Throws: PersistenceException - if the query execution exceeds the query timeout value set ... timeout value set and only the statement is rolled back. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.StoredProcedureQuery.executeUpdate()

- if the query execution exceeds the query timeout value set and the transaction is rolled ... to the transaction. QueryTimeoutException - if the statement execution exceeds the query timeout

jakarta.persistence.StoredProcedureQuery.getResultList()

. Throws: PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back. QueryTimeoutException - if the query execution exceeds the query timeout

jakarta.persistence.StoredProcedureQuery.getSingleResult()

- if more than one result. PersistenceException - if the query execution exceeds the query timeout value set ... timeout value set and only the statement is rolled back. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.StoredProcedureQuery.getSingleResultOrNull()

- if more than one result. PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back. QueryTimeoutException - if the query execution exceeds the query timeout

jakarta.persistence.Query.getSingleResultOrNull()

execution exceeds the query timeout value set and only the statement is rolled ... - if the query execution exceeds the query timeout value set and the transaction is rolled

jakarta.persistence.Query.executeUpdate()

. PersistenceException - if the query execution exceeds the query timeout value set ... exceeds the query timeout value set and only the statement is rolled back. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Query.getResultList()

and only the statement is rolled back. PersistenceException - if the query execution exceeds the query timeout ... to the transaction. QueryTimeoutException - if the query execution exceeds the query timeout value set

jakarta.persistence.Query.getResultStream()

back. PersistenceException - if the query execution exceeds the query timeout value set ... . QueryTimeoutException - if the query execution exceeds the query timeout value set and only the statement

jakarta.persistence.Query.getSingleResult()

- if more than one result. QueryTimeoutException - if the query execution exceeds the query timeout ... . PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled

jakarta.persistence.TypedQuery.setHint(String,Object)

ignored. Portable applications should not rely on the standard timeout hint. Depending

jakarta.persistence.EntityTransaction.getTimeout()

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityTransaction Integer getTimeout() The transaction timeout . Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.EntityManager.lock(Object,LockModeType,LockOption...)

timeout option . Depending on the database in use and the locking mechanisms used by the provider