ObjectDB Database Search

51-100 of 200 results

Internal ObjectDB error by read the primary key

Internal ObjectDB error by read the primary key

Failed to read the value of field using reflection (error 363)

Failed to read the value of field using reflection (error 363)

Optimistic locking: prevent version increment on entity collection attribute

create the readings in one call and I try to read them in another call. I checked the database and all the entities are created (document and readings ) but when I try to get the collection of readings null is returned. I have tried to clear the entity manager in the second call to make sure the reading

Optimistic locking failure

and roll back. T1 T2 ---------------------------------------------------------- READ (A) version=1 value=0 | READ (B) version=1 value=0 | | READ (A) version=1 value=0 | READ (B) version=1 value=0 | B ... Thread[Thread-2,5,main] READ   A1 version=1 value=0 Thread[Thread-2,5,main] READ   B2 version=1

javax.persistence.LockModeType

.OPTIMISTIC_FORCE_INCREMENT . The lock mode type values LockModeType. READ and LockModeType.WRITE are synonyms ... phenomena can occur: P1 (Dirty read ): Transaction T1 modifies a row. Another transaction T2 then reads ... so before or after T2 commits. P2 (Non-repeatable read ): Transaction T1 reads a row

UTF Error

.InternalException: Error reading UTF string at com.objectdb.o.BYR.U(BYR.java:1217) at com.objectdb.o.BYR.U(BYR.java ... ) WARNING: javax.ejb.EJBException: Error reading UTF string at com.sun.ejb.containers ... .run(Thread.java:829) Caused by: com.objectdb.o.InternalException: Error reading UTF string at com

Database size is much larger than expected (x2)

.URIReader. read (URIReader.java:84)         at image.URIReader.main ... 613) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:277) at image.URIReader. read (URIReader.java:82 ... Your code contains file reading operations that are not related to ObjectDB and may cause the problem

EM close causes an exception

, do you know why? Caused by: com.objectdb.o._PersistenceException: Failed to read from file '/tmp ... .objectdb.o.UserException: Failed to read from file '/tmp/objectdb_2306457094224783100/pages0.dat ... .lang.RuntimeException: Failed to read from file '/tmp/objectdb_9120972825587144595/pages0.dat' '/tmp

Lock prevents PersistenceManager.close when retainValues = false

.SocketInputStream.socketRead(SocketInputStream.java:116) at java.net.SocketInputStream. read (SocketInputStream.java:171) at java.net.SocketInputStream. read (SocketInputStream.java:141) at java.io.BufferedInputStream.fill(BufferedInputStream.java:246) at java.io.BufferedInputStream. read (BufferedInputStream.java:265

javax.persistence.CacheStoreMode

when data is read from the database and when data is committed into the database. Since: JPA 2.0 ... insert into cache. Since: JPA 2.0 REFRESH Insert/update entity data into cache when read from database and when committed into database. Forces refresh of cache for items read from database. Since: JPA

javax.persistence.CacheStoreMode.REFRESH

JPA Enum Constant in javax.persistence.CacheStoreMode REFRESH Insert/update entity data into cache when read from database and when committed into database. Forces refresh of cache for items read from database. Since: JPA 2.0

javax.persistence.CacheStoreMode.USE

JPA Enum Constant in javax.persistence.CacheStoreMode USE Insert entity data into cache when read from database and insert/update entity data when committed into database: this is the default behavior. Does not force refresh of already cached items when reading from database. Since: JPA 2.0

Best practise loading big data

. One is to stupidly commit the transaction after a certain number of read accesses (every 10000 read access ... updates to the database or it is read only. If it is a read only operation, do you really need commit ... for posting questionable code snippets. I have repaired it. In this scenario the data is only read

javax.persistence.CacheRetrieveMode.USE

JPA Enum Constant in javax.persistence.CacheRetrieveMode USE Read entity data from the cache: this is the default behavior. Since: JPA 2.0

javax.persistence.CacheRetrieveMode

: get data directly from the database. Since: JPA 2.0 USE Read entity data from the cache

Server out of memory exceptions

.socketRead0(Native Method) at java.net.SocketInputStream. read (SocketInputStream.java:129) at java ... (BufferedInputStream.java:256) at java.io.BufferedInputStream. read (BufferedInputStream.java:313) at com ... . The message size going into the queue is not large - around 4k at most. Each read /write operation

javax.jdo.PersistenceManagerFactory

getReadOnly () Gets the value for read -only for this PMF. Indicates whether the datastore is read -only or ... (boolean flag) Sets the value for whether the datastore is to be considered read -only. ReadOnly ... are: read -uncommitted read -committed repeatable- read snapshot serializable Parameters: level

javax.jdo.Transaction

() If true , allows persistent instances to be read without a transaction active. Return: the value ... an implementation but are not standard. Standard values in order of low to high are: read -uncommitted read -committed repeatable- read snapshot serializable Parameters: level - the transaction isolation level

javax.jdo.Constants

JDO Interface Constants Constant values used in JDO. Since: JDO 2.1 Public Static Fields TX_ READ _COMMITTED Transaction isolation level representing the requirement to read committed data ... () Since: JDO 2.2 TX_ READ _UNCOMMITTED Transaction isolation level representing the ability to read

PersistenceManagerFactory.setTransactionIsolationLevel(level) - JDO Method

from low to high are: read -uncommitted read -committed repeatable- read snapshot serializable ... _ READ _UNCOMMITTED Constants.TX_ READ _COMMITTED Constants.TX_REPEATABLE_ READ Constants.TX_SNAPSHOT Constants.TX_SERIALIZABLE Since: JDO 2.2

Transaction.setIsolationLevel(level) - JDO Method

values in order of low to high are: read -uncommitted read -committed repeatable- read snapshot ... _ READ _UNCOMMITTED Constants.TX_ READ _COMMITTED Constants.TX_REPEATABLE_ READ Constants.TX_SNAPSHOT Constants.TX_SERIALIZABLE Since: JDO 2.2

PersistenceManagerFactory.supportedOptions() - JDO Method

.GetDataStoreConnection javax.jdo.option.UnconstrainedQueryVariables javax.jdo.option.TransactionIsolationLevel. read -uncommitted javax.jdo.option.TransactionIsolationLevel. read -committed javax.jdo.option.TransactionIsolationLevel.repeatable- read javax.jdo.option.TransactionIsolationLevel.snapshot javax.jdo.option

PersistenceManagerFactory.getReadOnly() - JDO Method

JDO Method in javax.jdo.PersistenceManagerFactory boolean getReadOnly () Gets the value for read -only for this PMF. Indicates whether the datastore is read -only or writable. Return: the readOnly setting. See Also: setReadOnly Since: JDO 2.2

javax.jdo.identity.LongIdentity

readExternal (ObjectInput in) Read this object. Read the superclass first. Parameters: in - the input

IntIdentity.readExternal(in) - JDO Method

JDO Method in javax.jdo.identity.IntIdentity void readExternal (   ObjectInput in ) Read this object. Read the superclass first. Parameters: in - the input Since: JDO 1.0

javax.jdo.identity.IntIdentity

(ObjectInput in) Read this object. Read the superclass first. Parameters: in - the input

CharIdentity.readExternal(in) - JDO Method

JDO Method in javax.jdo.identity.CharIdentity void readExternal (   ObjectInput in ) Read this object. Read the superclass first. Parameters: in - the input Since: JDO 1.0

ObjectIdentity.readExternal(in) - JDO Method

JDO Method in javax.jdo.identity.ObjectIdentity void readExternal (   ObjectInput in ) Read this object. Read the superclass first. Parameters: in - the input Since: JDO 1.0

javax.jdo.identity.ObjectIdentity

Since: JDO 1.0 void readExternal (ObjectInput in) Read this object. Read the superclass first

LongIdentity.readExternal(in) - JDO Method

JDO Method in javax.jdo.identity.LongIdentity void readExternal (   ObjectInput in ) Read this object. Read the superclass first. Parameters: in - the input Since: JDO 1.0

javax.jdo.identity.ByteIdentity

Since: JDO 1.0 void readExternal (ObjectInput in) Read this object. Read the superclass first

ByteIdentity.readExternal(in) - JDO Method

JDO Method in javax.jdo.identity.ByteIdentity void readExternal (   ObjectInput in ) Read this object. Read the superclass first. Parameters: in - the input Since: JDO 1.0

javax.jdo.identity.CharIdentity

;in) Read this object. Read the superclass first. Parameters: in - the input Since: JDO 1.0 String

ShortIdentity.readExternal(in) - JDO Method

JDO Method in javax.jdo.identity.ShortIdentity void readExternal (   ObjectInput in ) Read this object. Read the superclass first. Parameters: in - the input Since: JDO 1.0

javax.jdo.identity.ShortIdentity

void readExternal (ObjectInput in) Read this object. Read the superclass first. Parameters: in

StringIdentity.readExternal(in) - JDO Method

JDO Method in javax.jdo.identity.StringIdentity void readExternal (   ObjectInput in ) Read this object. Read the superclass first. Parameters: in - the input Since: JDO 1.0

javax.jdo.identity.StringIdentity

Since: JDO 1.0 void readExternal (ObjectInput in) Read this object. Read the superclass first

javax.jdo.spi.PersistenceCapable

, and the StateManager approves the change, then the jdoFlags field will be reset to READ _WRITE_OK

PersistenceManagerFactory.setReadOnly(flag) - JDO Method

JDO Method in javax.jdo.PersistenceManagerFactory void setReadOnly (   boolean flag ) Sets the value for whether the datastore is to be considered read -only. ReadOnly set to false specifies that no updates can be performed to the datastore, and if updates are attempted

StateManager.isTransactional(pc) - JDO Method

; persistent instances read in data store transactions; and persistent instances modified in

Transaction.getNontransactionalRead() - JDO Method

JDO Method in javax.jdo.Transaction boolean getNontransactionalRead () If true , allows persistent instances to be read without a transaction active. Return: the value of the nontransactionalRead property Since: JDO 1.0

Transaction.setNontransactionalRead(nontransactionalRead) - JDO Method

JDO Method in javax.jdo.Transaction void setNontransactionalRead (   boolean nontransactionalRead ) If true , allow persistent instances to be read without a transaction active. If an implementation does not support this option, a JDOUnsupportedOptionException is thrown. Parameters

javax.jdo.JDOReadOnlyException

represents exceptions caused by an attempt to update a datastore when the PMF was created as " read

javax.jdo.Constants.TX_SNAPSHOT

JDO Static Field in javax.jdo.Constants TX_SNAPSHOT Transaction isolation level representing the requirement to keep a snapshot for reading data. See Also: PersistenceManagerFactory.getTransactionIsolationLevel () Transaction.getIsolationLevel () Since: JDO 2.2

PersistenceManager.makeTransactional(pc) - JDO Method

is restored to the state before the first change in the transaction. For persistent instances read in

javax.jdo.spi.StateManager

instances read in data store transactions; and persistent instances modified in optimistic transactions

javax.jdo.identity.SingleFieldIdentity

code. Since: JDO 1.0 void readExternal (ObjectInput in) Read from the input stream. Creates a new

PersistenceCapable.jdoReplaceStateManager(sm) - JDO Method

, and the StateManager approves the change, then the jdoFlags field will be reset to READ _WRITE_OK. If the parameter

SingleFieldIdentity.readExternal(in) - JDO Method

JDO Method in javax.jdo.identity.SingleFieldIdentity void readExternal (   ObjectInput in ) Read from the input stream. Creates a new instance with the target class name set Since: JDO 1.0

javax.jdo.PersistenceManager

the transaction. For persistent instances read in optimistic transactions, this method allows the application