Internal Website Search

101-150 of 200 results

Querys without Transaction

Hello, are querys faster, if we use the entity manager without transaction , since we need only read-only entities. btc_es BTC EmbeddedSystems There is no much difference, but report queries , i.e. queries that return simple value fields rather than entity objects are more efficient as

Failed to commit transaction: Java heap space (error 613)

.RollbackException Failed to commit transaction : Java heap space (error 613) We are using ObjectDB 2

Query problem after transaction commit

I have a machine running the objectdb server and the client on another machine connect to it. The client program can connect to the server and query to get all the records. However, after transaction .begin ... persist(p) .. commit of a new object, my client program can no longer retrieve the old

Max transaction size

What’s the max transaction size, or how is it determined? Trianglehead Json Error The main limit is the available memory in the JVM. There is no hard limit. support Support

CM Transaction Implementation

Hi All, How to implement Container Managed Transaction using Glassfish / Weblogic server. Please provide us the step by step instruction, how ti achieve it       umesh umesh Please check the following tutorial: http://www.objectdb.com/tutorial/jpa/ee support Support

Threaded Test - Failed to commit transaction: Unexpected internal exception

Threaded Test - Failed to commit transaction: Unexpected internal exception

javax.persistence.LockModeType

.OPTIMISTIC_FORCE_INCREMENT are the following. If transaction T1 calls for a lock of type LockModeType ... phenomena can occur: P1 (Dirty read): Transaction T1 modifies a row. Another transaction T2 then reads that row and obtains the modified value, before T1 has committed or rolled back. Transaction T2

javax.persistence.Query

- if there is no transaction or the persistence context has not been joined to the transaction QueryTimeoutException ... back PersistenceException - if the query execution exceeds the query timeout value set and the transaction ... other than NONE has been set and there is no transaction or the persistence context has not been joined

javax.persistence.TypedQuery

for a criteria query TransactionRequiredException - if there is no transaction or the persistence context has not been joined to the transaction QueryTimeoutException - if the statement execution exceeds the query ... execution exceeds the query timeout value set and the transaction is rolled back Inherited from: Query

javax.persistence.StoredProcedureQuery

- if the query execution exceeds the query timeout value set and the transaction is rolled back Since: JPA 2 ... : TransactionRequiredException - if there is no transaction or the persistence context has not been joined to the transaction QueryTimeoutException - if the statement execution exceeds the query timeout

javax.persistence.EntityTransaction

JPA Interface EntityTransaction Interface used to control transactions on resource-local entity ... Methods void begin () Start a resource transaction . Throws: IllegalStateException - if isActive() is true Since: JPA 1.0 void commit () Commit the current resource transaction , writing any unflushed

EntityManager.refresh(entity,lockMode,properties) - JPA Method

if the database locking failure causes transaction -level rollback the LockTimeoutException ... - if invoked on a container-managed entity manager of type PersistenceContextType. TRANSACTION when there is no transaction ; if invoked on an extended entity manager when there is no transaction and a lock mode

EntityManager.refresh(entity,lockMode) - JPA Method

: the PessimisticLockException will be thrown if the database locking failure causes transaction -level rollback ... - if invoked on a container-managed entity manager of type PersistenceContextType. TRANSACTION when there is no transaction ; if invoked on an extended entity manager when there is no transaction and a lock mode

javax.persistence.SynchronizationType

with the current transaction or whether the persistence context must be explicitly joined to the current transaction by means of the EntityManager.joinTransaction method. Since: JPA 2.1 Enum Constants SYNCHRONIZED Persistence context is automatically synchronized with the current transaction Since: JPA

Query.getResultStream() - JPA Method

back TransactionRequiredException - if a lock mode other than NONE has been set and there is no transaction or the persistence context has not been joined to the transaction PessimisticLockException - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking fails

Query.getSingleResult() - JPA Method

- if a lock mode other than NONE has been set and there is no transaction or the persistence context has not been joined to the transaction PessimisticLockException - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking fails

Query.getResultList() - JPA Method

back TransactionRequiredException - if a lock mode other than NONE has been set and there is no transaction or the persistence context has not been joined to the transaction PessimisticLockException - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking

TypedQuery.getSingleResult() - JPA Method

mode other than NONE has been set and there is no transaction or the persistence context has not been joined to the transaction PessimisticLockException - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking fails and only the statement

TypedQuery.getResultList() - JPA Method

back TransactionRequiredException - if a lock mode other than NONE has been set and there is no transaction or the persistence context has not been joined to the transaction PessimisticLockException - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking

TypedQuery.getResultStream() - JPA Method

back TransactionRequiredException - if a lock mode other than NONE has been set and there is no transaction or the persistence context has not been joined to the transaction PessimisticLockException - if pessimistic locking fails and the transaction is rolled back LockTimeoutException - if pessimistic locking fails

javax.persistence.PersistenceContextType

.PersistenceContextType Specifies whether a transaction -scoped or extended persistence context is to be used in PersistenceContext . If not specified, a transaction -scoped persistence context is used. Since: JPA 1.0 Enum Constants EXTENDED Extended persistence context Since: JPA 1.0 TRANSACTION

javax.persistence.PersistenceContext

whether the persistence context is always automatically synchronized with the current transaction or whether the persistence context must be explicitly joined to the current transaction by means ... . TRANSACTION (Optional) Specifies whether a transaction -scoped persistence context or an extended

javax.persistence.FlushModeType

.FlushModeType Flush mode setting. When queries are executed within a transaction , if FlushModeType.AUTO ... . If there is no transaction active or the persistence context is not joined to the current transaction ... ) Flushing to occur at query execution. Since: JPA 1.0 COMMIT Flushing to occur at transaction commit

EntityManager.lock(entity,lockMode,properties) - JPA Method

will be thrown if the database locking failure causes transaction -level rollback the LockTimeoutException ... - if there is no transaction or if invoked on an entity manager which has not been joined to the current transaction EntityNotFoundException - if the entity does not exist in the database when pessimistic

EntityManager.lock(entity,lockMode) - JPA Method

: the PessimisticLockException will be thrown if the database locking failure causes transaction -level ... - if there is no transaction or if invoked on an entity manager which has not been joined to the current transaction EntityNotFoundException - if the entity does not exist in the database when pessimistic

EntityManager.find(entityClass,primaryKey,lockMode) - JPA Method

: the PessimisticLockException will be thrown if the database locking failure causes transaction ... - if there is no transaction and a lock mode other than NONE is specified or if invoked on an entity manager which has not been joined to the current transaction and a lock mode other than NONE is specified

EntityManager.find(entityClass,primaryKey,lockMode,properties) - JPA Method

: the PessimisticLockException will be thrown if the database locking failure causes transaction -level rollback ... - if there is no transaction and a lock mode other than NONE is specified or if invoked on an entity manager which has not been joined to the current transaction and a lock mode other than NONE is specified

EntityManager.joinTransaction() - JPA Method

manager that a JTA transaction is active and join the persistence context to it. This method ... transaction or on an entity manager of type SynchronizationType.UNSYNCHRONIZED to associate it with the current JTA transaction . Throws: TransactionRequiredException - if there is no transaction Since: JPA 1.0

Query.executeUpdate() - JPA Method

- if there is no transaction or the persistence context has not been joined to the transaction ... set and the transaction is rolled back Since: JPA 1.0

StoredProcedureQuery.executeUpdate() - JPA Method

- if there is no transaction or the persistence context has not been joined to the transaction QueryTimeoutException ... back PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back Since: JPA 2.1

javax.jdo.spi.PersistenceCapable

, transactional , dirty, new, deleted, or detached; and to get its associated PersistenceManager ... within the current transaction . If the JDO identity is being changed in the transaction , this method returns the object id as of the beginning of the current transaction . Return: a copy of the ObjectId

javax.jdo.spi.StateManager

instance. If the JDO identity is being changed in the current transaction , this method returns the identity as of the beginning of the transaction . Parameters: pc - the calling PersistenceCapable instance ... . If the JDO identity is being changed in the current transaction , this method returns the current

javax.jdo.PersistenceManagerFactory

to see that all PersistenceManager instances obtained from this PersistenceManagerFactory have no active transactions . If any PersistenceManager instances have an active transaction , throw a JDOUserException, with one nested JDOUserException for each PersistenceManager with an active Transaction . If there are no active

javax.jdo.spi.StateInterrogation

is only valid within the current transaction . Parameters: pc - the instance. Return: a copy of the ObjectId of the parameter instance as of the beginning of the transaction ... the associated PersistenceManager if there is one. Transactional and persistent instances return

javax.jdo.JDOHelper

whether the instance is persistent, transactional , dirty, new, deleted, or detached ... , then the ObjectId returned is only valid within the current transaction . Parameters: pc ... of the transaction . See Also: PersistenceManager.getObjectId (Object pc) PersistenceCapable

javax.jdo.Constants

_COMMITTED Transaction isolation level representing the requirement to read committed data only. See Also: PersistenceManagerFactory.getTransactionIsolationLevel () Transaction .getIsolationLevel () Since: JDO 2.2 TX_READ_UNCOMMITTED Transaction isolation level representing the ability to read

PersistenceManager.makeTransactional(pc) - JDO Method

) Make an instance subject to transactional boundaries. Transient instances normally do not observe transaction boundaries. This method makes transient instances sensitive to transaction completion. If an instance is modified in a transaction , and the transaction rolls back, the state of the instance

PersistenceManager.getObjectById(oid,validate) - JDO Method

with the specified JDO identity and returns it. If there is no transaction in progress, the returned instance ... . If there is a transaction in progress, the returned instance will be hollow, persistent-nontransactional, or ... exist at that time. Further, if a relationship is established to this instance, then the transaction in

PersistenceManager.flush() - JDO Method

instances to the data store. It has no effect if a transaction is not active. If a datastore transaction ... . If an optimistic transaction is active, this method obtains a datastore connection, synchronizes the cache ... this method is held until the end of the transaction . If exceptions occur during flush

StateManager.isTransactional(pc) - JDO Method

 pc ) Tests whether this object is transactional . Instances that respect transaction boundaries return true . These instances include transient instances made transactional as a result ... ; persistent instances read in data store transactions ; and persistent instances modified in

PersistenceManager.currentTransaction() - JDO Method

JDO Method in javax.jdo.PersistenceManager Transaction currentTransaction () Return the Transaction instance associated with a PersistenceManager . There is one Transaction instance associated with each PersistenceManager instance. The Transaction instance supports options as well as transaction

PersistenceManager.getDataStoreConnection() - JDO Method

is called while a datastore transaction is active, the object returned will be enlisted in the current transaction . If called in an optimistic transaction or outside an active transaction , the object returned will not be enlisted in any transaction . Return: the JDOConnection instance Since: JDO 2.0

PersistenceManagerFactory.close() - JDO Method

obtained from this PersistenceManagerFactory have no active transactions . If any PersistenceManager instances have an active transaction , throw a JDOUserException, with one nested JDOUserException for each PersistenceManager with an active Transaction . If there are no active transactions , then close

PersistenceManager.getObjectId(pc) - JDO Method

is being changed in the transaction , by the application modifying one or more of the application key fields, then this method returns the identity as of the beginning of the transaction . The value ... transactions . Within a transaction , the ObjectId returned will compare equal to the ObjectId returned by

StateInterrogation.isTransactional(pc) - JDO Method

;pc ) Tests whether the parameter instance is transactional . Instances whose state is associated with the current transaction return Boolean.TRUE . Instances known by the implementation to be non- transactional return Boolean.FALSE . Instances not recognized by the implementation return null

PersistenceCapable.jdoGetObjectId() - JDO Method

, then the ObjectId returned is only valid within the current transaction . If the JDO identity is being changed in the transaction , this method returns the object id as of the beginning of the current transaction . Return: a copy of the ObjectId of this instance as of the beginning of the transaction

PersistenceCapable.jdoGetTransactionalObjectId() - JDO Method

if the identity of the instance has not changed in the current transaction . If the JDO identity is being changed in the transaction , this method returns the current object id as modified in the current transaction . Return: a copy of the ObjectId of this instance as modified in the transaction

PersistenceManagerFactory.setTransactionIsolationLevel(level) - JDO Method

JDO Method in javax.jdo.PersistenceManagerFactory void setTransactionIsolationLevel (   String level ) Set the value for transaction isolation level for this PMF. Transaction ... Parameters: level - the transaction isolation level See Also: getTransactionIsolationLevel () Constants.TX

PersistenceManager.checkConsistency() - JDO Method

the PersistenceManager cache with the datastore. This method has no effect if a transaction is not active. If a datastore transaction is active, this method verifies the consistency of instances in the cache ... to do so. If an optimistic transaction is active, this method obtains a datastore connection

JDOHelper.isTransactional(pc) - JDO Static Method

) Tests whether the parameter instance is transactional . Instances whose state is associated with the current transaction return true. Transient instances and instances of classes that do not implement ... if the parameter instance is transactional . See Also: PersistenceCapable() Since: JDO 1.0