About access

release

2.3.7

Release date: 2012-02-06 Download (5.38 MB) Binary:  objectdb-2.3.7.zip You should start by following a  tutorial or reading the manual ...

 
forum_thread

locks on pure query activities

analyzing the dynamic behavior we can see from the thread dump that a lot of our threads that are just doing simple queries show locks like these (question is: why there are locks and how could we get rid of that):   log1:   ... 2017-05-01 20:38 Access to the underlying database file is synchronized with that lock. ... > <dir path = "/" permissions = "access,modify,create,delete" /> </user > <user ...

 
forum_thread

Pessimistic Lock Timeouts setting

Hi,   I realise that JPA2 doesn't necessarily define a standard API way for Lock Timeouts. However, there is a standardised query 'hint' that can be setup to make the underlying DB lock a record for a specific time. The hint property is: "javax.persistence.lock.timeout" ... pessimistic lock is in place on the record, a subsequent access (which is a valid scenario for me) would instantly throw a: ...

 
forum_thread

Query by array element

Hello, I have a class as follows: @Entity public class MyEntity {     boolean properties[]= new boolean[1024]; } I would like to query objects with feature '42': select me from MyEntity me where me.properties[42]=true Is it possible? Thank you! ... This query is not supported since you cannot access arrays in queries. You can implement a method in MyEntity that wraps the array access operation and then use that method in the query. It is supported by ...

 
forum_thread

PostUpdate collection null

Hello, I have an entity MyEntity with a collection attribute myCollection. I have an EntityListener on MyEntity with a @PostUpdate method. When I try to access myCollection from the PostUpdate method, this collection is null. If I try to access the collection from the PreUpdate method, the collection is populated. The collection is eagerly fetched. public class MyEntity {     @OneToMany(fetch=FetchType.EAGER)     private ArrayList<OtherEntity> myCollection = new ArrayList<OtherEntity>(); ... on MyEntity with a @PostUpdate method. When I try to access myCollection from the PostUpdate method, this collection is null. If I try to access the collection from the PreUpdate method, the collection is populated. ...

 
forum_thread

Password in Embedded Mode?

Is there a way to setup a database file that will be accessed in embedded mode, such that it is locked with a password.  Thereby making it impossible to use ObjectDB to access the contents of the file without providing the correct password when obtaining a connection.  In my case, I'm interested in obtaining a JPA connection:...  Thereby making it impossible to use ObjectDB to access the contents of the file without providing the correct password when ...

 
api-jdo

jdoPreDelete()

Called before the instance is deleted.(Method of javax.jdo.listener.DeleteCallback)

 
api-jpa

AttributeOverride.name

(Required) The name of the property whose mapping is being overridden if property-based access is being used, or the name of the field if field-based access is used.(Annotation Element of javax.persistence.AttributeOverride)

 
forum_thread

ObjectDB Explorer Exposes Username and Password

How can I prevent my database username and password from being exposed by ObjectDB Explorer? #1 2017-02-06 12:13 How can I prevent my embedded database's username and password from being exposed by ObjectDB Explorer? ...

 
api-jdo

javax.jdo.listener.DeleteCallback

This interface is used to notify instances of delete events.(Interface of JDO)