ObjectDB Database Search

101-150 of 200 results

JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception

I'm trying to have the guestbook example running in the following environment: jboss as 7. 1 . 1 final oracle jdk 1 .7.0_04 maven 3.0.4 objectdb 2.4.0_04 installed as a module of jboss No IDE is used ... .getAll",          query ="select g from guest.Guest g order

Query becomes slower on moving from ObjectDB 1.x to ObjectDB 2.x

, with object 1 .x, the same query was getting executed within an seconds and now the same is taking around 40 ... query .execute(param1, param2); This takes 1 second to execute using objectdb1.x, but the same takes ... am wondering, if logEntryId is not indexed in objectdb 1 .x, then how the query is very fast when i am using

jakarta.persistence.Query.getCacheRetrieveMode()

Jakarta Persistence (JPA) Method in jakarta.persistence. Query CacheRetrieveMode getCacheRetrieveMode() The cache retrieval mode that will be in effect during query execution. Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.Query.getCacheStoreMode()

Jakarta Persistence (JPA) Method in jakarta.persistence. Query CacheStoreMode getCacheStoreMode() The cache storage mode that will be in effect during query execution. Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.Query.getTimeout()

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

jakarta.persistence.Query.getParameterValue(String)

Jakarta Persistence (JPA) Method in jakarta.persistence. Query Object getParameterValue (    String name ) Return the input value bound to the named parameter. (Note that OUT parameters are unbound.) Parameters: name - parameter name Returns: parameter value. Throws: IllegalStateException

jakarta.persistence.Query.getParameterValue(int)

Jakarta Persistence (JPA) Method in jakarta.persistence. Query Object getParameterValue (    int position ) Return the input value bound to the positional parameter. (Note that OUT parameters are unbound.) Parameters: position - position Returns: parameter value. Throws

jakarta.persistence.Query.isBound(Parameter)

Jakarta Persistence (JPA) Method in jakarta.persistence. Query boolean isBound (    Parameter param ) Return a boolean indicating whether a value has been bound to the parameter. Parameters: param - parameter object Returns: boolean indicating whether parameter has been bound. Since: Jakarta Persistence (JPA) 2.0

jakarta.persistence.criteria.AbstractQuery

Persistence (JPA) 1 .0 Root from ( Class entityClass ) Create and add a query root corresponding ... class Returns: query root corresponding to the given entity. Since: Jakarta Persistence (JPA) 1 .0 ... (JPA) 1 .0 Set getParameters () Return the parameters of the query . Returns empty set

ObjectDB Object Database Features

, derived attributes, grouping queries and aggregate queries ) which are usually missing from Object Oriented ... entity data cache  (per EntityManagerFactory). Database file page cache . Query program cache (for repeating queries with different arguments). Query result cache (for repeating queries

JPA Persistable Types

are represented in queries by entity names . By default, the entity name is the unqualified name ... entities, and they cannot be queried directly). Therefore, the decision to declare a class as an entity or ... and retrieval). Simplifies queries on dates and date ranges. When an entity is stored, its date

Deleting JPA Entities

: Employee employee = em. find (Employee.class, 1 ); em. getTransaction (). begin (); em. remove (employee ... the database. DELETE Queries DELETE queries provide an alternative way to remove entities from the database. They are especially useful for deleting many entities in a single operation. For more information, see DELETE Queries in JPA/JPQL .

Comparison in JPQL and Criteria API

Most JPQL queries use at least one comparison operator in their WHERE clause. Comparison operators ObjectDB supports two sets of comparison operators, as shown in the following table: Set 1 : JPQL ... (the JDO Query Language). ObjectDB supports both forms. In addition to the different notation

JPA Primary Key

( long ). The primary key of the first entity is 1 , the second is 2, and so on. Primary key values ... entities efficiently in the database. This technique is especially useful for queries that return large ... , sensor ID, and other details. Suppose that queries to retrieve all events from a specific sensor in

WHERE clause (JPQL / Criteria API)

for retrieving a specific subset of objects from the database. How a WHERE clause works The following query ... FROM Country c WHERE c.population :p The FROM clause of this query defines an iteration ... to the SELECT clause to be collected as query results, the WHERE clause acts as a filter. The boolean

JPA Runtime Tuning & Configuration

dynamic options that control runtime behavior and allow you to adjust settings per session, query , or ... every operation in that session. Query (definition): Settings applied to a Query object override session defaults for that query . Operation (argument): Settings passed to specific EntityManager operations ( find

jakarta.persistence.EntityManagerFactory

, may be obtained by calling getCache , the CriteriaBuilder , used to define criteria queries , may be obtained by ... Since: Jakarta Persistence (JPA) 1 .0 The JPA Connections and Transactions article explains how to use ... graph entityGraph - entity graph Since: Jakarta Persistence (JPA) 2. 1 void addNamedQuery ( String

jakarta.persistence.criteria.CriteriaUpdate

. Since: Jakarta Persistence (JPA) 1 .0 Root from ( EntityType entity ) Create and add a query root ... of type X Returns: query root corresponding to the given entity. Since: Jakarta Persistence (JPA) 1 .0 ... : the query parameters. Since: Jakarta Persistence (JPA) 1 .0 Predicate getRestriction () Return

JPA Criteria FROM and JOIN

clause of a query . These interfaces define query variables, including entity roots and various join types ... is structured as follows: Criteria Query From Components in Jakarta Persistence (JPA) 3.2  Criteria query variables The FORM clause in queries defines query variables, which act as loop

Database Management Settings

, which modify the database. For debugging query failures, you might need to record "all" operations to reproduce ... can use the new indexes to accelerate relevant queries . The element The element specifies settings for the two query cache mechanisms that ObjectDB manages: The results attribute specifies the size

Paths and Types in JPQL and Criteria API

numbers, booleans, strings, and dates. Values of simple types are more useful in queries ... private, which is usually the case. Navigation through a NULL value The following query retrieves country ... variables) is skipped. To better understand how this works, consider the equivalent JOIN query

jakarta.persistence.criteria.PluralJoin

the query . Inherited from From Returns: joins made from this type. Since: Jakarta Persistence (JPA) 1 .0 ... query construction. Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods Selection alias ... Returns: selection item. Since: Jakarta Persistence (JPA) 1 .0 Expression as ( Class type ) Perform

jakarta.persistence.criteria.MapJoin

the query . Inherited from From Returns: joins made from this type. Since: Jakarta Persistence (JPA) 1 .0 ... Selection Parameters: name - alias Returns: selection item. Since: Jakarta Persistence (JPA) 1 .0 ... Persistence (JPA) 1 .0 Expression cast ( Class type ) Cast this expression to the specified type

jakarta.persistence.criteria.Root

, TupleElement A root type in the from clause. Query roots always reference entities. Since: Jakarta ... Selection Parameters: name - alias Returns: selection item. Since: Jakarta Persistence (JPA) 1 .0 ... Persistence (JPA) 1 .0 Expression cast ( Class type ) Cast this expression to the specified type

jakarta.persistence.NamedQuery

(JPA) 1 .0 String query (Required) The query string in the Jakarta Persistence query language. Since: Jakarta Persistence (JPA) 1 .0 Class resultClass (Optional) The class of each query result. The result ... ) 1 .0 LockModeType lockMode (Optional) The lock mode type to use in query execution. If a lockMode

jakarta.persistence.criteria.CriteriaDelete

(JPA) 1 .0 Root from ( EntityType entity ) Create and add a query root corresponding to the entity ... () Return the query root. Returns: the query root. Since: Jakarta Persistence (JPA) 1 .0 Subquery ... delete query . Since: Jakarta Persistence (JPA) 1 .0 CriteriaDelete where ( Predicate... restrictions

jakarta.persistence.criteria.ListJoin

- alias Returns: selection item. Since: Jakarta Persistence (JPA) 1 .0 Expression as ( Class type ) Perform ... : new expression of the given type. See Also: .cast(Class) Since: Jakarta Persistence (JPA) 1 .0 ... . Since: Jakarta Persistence (JPA) 1 .0 Fetch fetch ( SingularAttribute attribute , JoinType jt ) Create

jakarta.persistence.criteria.SetJoin

the query . Inherited from From Returns: joins made from this type. Since: Jakarta Persistence (JPA) 1 .0 ... Returns: selection item. Since: Jakarta Persistence (JPA) 1 .0 Expression as ( Class type ) Perform ... expression of the given type. See Also: .cast(Class) Since: Jakarta Persistence (JPA) 1 .0 Expression

jakarta.persistence.criteria.CollectionJoin

Parameters: name - alias Returns: selection item. Since: Jakarta Persistence (JPA) 1 .0 Expression ... Persistence (JPA) 1 .0 Expression cast ( Class type ) Cast this expression to the specified type, returning ... : the resulting fetch join. Since: Jakarta Persistence (JPA) 1 .0 Fetch fetch ( SingularAttribute attribute

jakarta.persistence.criteria.Join

Selection Parameters: name - alias Returns: selection item. Since: Jakarta Persistence (JPA) 1 .0 Expression ... Persistence (JPA) 1 .0 Expression cast ( Class type ) Cast this expression to the specified type ... : the resulting fetch join. Since: Jakarta Persistence (JPA) 1 .0 Fetch fetch ( SingularAttribute attribute

jakarta.persistence.NamedNativeQuery

.createNamedQuery . Since: Jakarta Persistence (JPA) 1 .0 String query The native SQL query string. Since: Jakarta Persistence (JPA) 1 .0 QueryHint[] hints Query properties and hints. (May include vendor-specific query hints.) Default: {} Since: Jakarta Persistence (JPA) 1 .0 Class resultClass The class of each

queries more than 10 times slower using 2.8.1 versus 2.7.6

. It seems that running your query on your sample database with version 2.8. 1 is slower ... the statistics: query 1 : "select o from ObjectNode o join o.linkedObjects l1 where o.classIdentifier = '(SI ... = 'TECHNOLOGY')" 2.7.6, 3 seconds 2.8. 1 , 16 seconds   query 2: "select distinct o from ObjectNode o

jakarta.persistence.criteria.From

. Since: Jakarta Persistence (JPA) 1 .0 Expression as ( Class type ) Perform a typecast ... type. See Also: .cast(Class) Since: Jakarta Persistence (JPA) 1 .0 Expression cast ( Class type ... ) 1 .0 Fetch fetch ( SingularAttribute attribute , JoinType jt ) Create a fetch join to the specified

query only reports 1 result

2.7.2_01 suddenly some queries do only have 1 result even there are more results (you can use the database that you have from #308):   this query gives 1 result even there are a lot more: select o from ObjectNode o where o.classIdentifier = '(OP)' and o.state = 98 and o.type = 0 and o

jakarta.persistence.QueryTimeoutException

(JPA) 1 .0 QueryTimeoutException ( Query query ) Constructs a new QueryTimeoutException exception with the specified query . Parameters: query - the query . Since: Jakarta Persistence (JPA) 1 .0 ... . message - the detail message. query - the query . Since: Jakarta Persistence (JPA) 1 .0 Public Instance

jakarta.persistence.criteria.ParameterExpression

, TupleElement Type of criteria query parameter expressions. Since: Jakarta Persistence (JPA) 2.0 Public ... Selection Parameters: name - alias Returns: selection item. Since: Jakarta Persistence (JPA) 1 .0 ... Persistence (JPA) 1 .0 Expression cast ( Class type ) Cast this expression to the specified type

Index Definition

Querying without indexes requires sequential iteration over entities in the database. If many ... this full iteration, allowing complex queries over millions of objects to execute quickly ... lastName; Address address; : } Indexes in queries ObjectDB manages a B-tree for every index. A B-tree

ObjectDB 2.1.1

Fixed an  Explorer bug in handling listeners and callbacks. Fixed a bug in using user/password url arguments multiple times. Fixed several bugs in query processing and running.

jakarta.persistence.PersistenceConfiguration

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 An application ... of this PersistenceConfiguration class should use sharedCacheMode . Since: Jakarta Persistence (JPA) 1 .0 JDBC_DATASOURCE

Online Backup

You can start an online backup by executing a special query on an EntityManager ( em ) instance ... ").getSingleResult(); The backup query string is always "objectdb backup" . The backup is created in the backup ... a custom backup root directory by setting the target parameter before you execute the backup query

JPA Exceptions

locking wait times. Query exceptions Exceptions specific to query execution and result retrieval: Thrown by Query .getSingleResult() when the query returns no results. Thrown by Query .getSingleResult() when the query returns more than one result. Thrown when a query exceeds the specified timeout limit

jakarta.persistence.criteria.CommonAbstractCriteria

(JPA) 2. 1 Public Instance Methods Set getParameters () Return the parameters of the query . Returns ... : the query parameters. Since: Jakarta Persistence (JPA) 1 .0 Predicate getRestriction () Return ... of the query . Parameters: type - the subquery result type Returns: subquery. Since: Jakarta Persistence (JPA) 1 .0

Is ObjectDB a NoSQL Database?

of NoSQL technology, which are weak query capabilities and lack of ACID (atomicity, consistency, isolation, durability). Unlike other NoSQL solutions, ObjectDB provides full support of rich complex queries , using two standard Java query languages: JPQL (Java Persistence Query Language) and JDOQL (JDO

jakarta.persistence.Parameter

of the parameter Type for query parameter objects. See Also: Query TypedQuery Since: Jakarta Persistence (JPA) 2.0 Chapter 4 - JPA Queries (JPQL / Criteria) explains how to use Parameter . Public Instance ... parameter or no name has been assigned. Returns: parameter name. Since: Jakarta Persistence (JPA) 1 .0

each 1-2 days objects on some objectdb level lock/block each other

. The objects that are added to the heap are related to: ( 1 ) the L2 cache, (2) the query caches ... each 1 -2 days we have the situation that our system changes to a completely underperforming mode ... select queries without any object manipulation in these threads hgzwicker Hans-Georg Zwicker

Is ObjectDB better than competing object databases?

do not support aggregate queries (max, min, count, sum and avg). ObjectDB supports rich queries , including aggregate queries , as part of its support of JPQL (JPA Query Language) and JDOQL (JDO Query Language). ObjectDB is faster than other products.

jakarta.persistence.NamedStoredProcedureQuery

metadata. Default: {} Since: Jakarta Persistence (JPA) 1 .0 QueryHint[] hints Query properties and hints. (May include vendor-specific query hints.) Default: {} Since: Jakarta Persistence (JPA) 1 .0 ... sets is undefined. The hints element may be used to specify query properties and hints. Properties

jakarta.persistence.FlushModeType

.setFlushMode(FlushModeType) Query .setFlushMode(FlushModeType) Since: Jakarta Persistence (JPA) 1 .0 Enum Constants AUTO (Default) Flushing to occur at query execution. Since: Jakarta Persistence (JPA) 1 .0 ... Enumerates flush modes recognized by the EntityManager . When queries are executed

jakarta.persistence.criteria.CriteriaBuilder.In

, TupleElement Interface used to build in predicates. Since: Jakarta Persistence (JPA) 1 .0 Public Instance ... : name - alias Returns: selection item. Since: Jakarta Persistence (JPA) 1 .0 Expression as ( Class ... ) 1 .0 Expression cast ( Class type ) Cast this expression to the specified type, returning a new

[ODB1] Chapter 5 - JDO Connections

and deleting database objects, are provided in the next chapter ( Chapter 6 ). 5. 1   javax ... at PersistenceManagerFactory level (as shown in section 5. 1 ), or at the PersistenceManager or Transaction levels ... Indicates whether or not database operations that do not modify the database content ( queries , object