ObjectDB ObjectDB

Internal Website Search

1-10 of 200 resultsRefresh

How to convert a boolean to an int in the query?

How to convert a boolean to an int in the query? I have five parameters of type boolean in ... ._PersistenceException: Invalid operand type boolean for operator + Please tell me how to do this? Thanks ... them. You can calculate it in a JPA lifecycle event. Currently you cannot convert boolean to int in

PersistenceManager.getObjectsById(Collection,boolean) throwing JDOException

I have a call to getObjectsById(Collection,boolean) that is throwing a JDOException the first time I'm attempting to retrieve an object. If I try again, then the second request succeeds. Any idea why this might occur? We're using ObjectDB 2.2.4_02. The collection being passed in is a HashSet<Object

ObjectDB enhancement fails on "is" form for @Transient boolean isLoaded(), ok for "getter" form @Transient boolean getLoaded()

encounter ObjectDB enhancement errors: private boolean loaded = false; @Transient @Override public boolean isLoaded() { return loaded; } @Override public void setLoaded(boolean loaded) { this.loaded = loaded; } No matter whether using

boolean field flips after schema update (in class) of another field

We have added a boolean field to a class with default value false. After deployment on several instances the values of other boolean fields in the same class (next to the new one) flip or change ... = null; @Embeddable public static class Application { private boolean instruction = false

Logical Operators in JPQL and Criteria API

Logical operators in JPQL and in JPA criteria queries enable composition of complex JPQL boolean expressions out of simple JPQL boolean expressions. Logical Operators ObjectDB supports 2 sets ... part of its JDO support. Criteria Query Logical Operators Boolean Expressions and Predicates Boolean expressions

Literals in JPQL and Criteria Queries

including NULL, boolean literals (TRUE and FALSE), numeric literals (e.g. 100), string literals (e.g ... explained in the Comparison Operators page. Boolean Literals Similarly to Java and SQL, JPQL supports two boolean literals - TRUE and FALSE. Since JPQL is case insensitive, TRUE is equivalent to true

WHERE clause (JPQL / Criteria API)

to function as a filter. The boolean expression in the WHERE clause, which is also known as ... is always a boolean JPQL expression. JPQL expressions are also used in other JPQL query clauses ... one Expression<Boolean> argument and uses it as the WHERE clause content (overriding previously set

[ODB1] Chapter 5 - JDO Connections

for a PersistenceManagerFactory can be done using boolean properties: properties.setProperty( "javax.jdo ... .setRetainValues(false); pmf.setRestoreValues(true); // Using the getter methods: boolean flag1 = pmf.getOptimistic(); boolean flag2 = pmf.getNontransactionalRead(); boolean flag3 = pmf

[ODB1] Chapter 7 - JDOQL Queries

a persistent class) A filter, which is a boolean expression in a Java like syntax The query result ... A query filter is a string containing a boolean expression in a Java like syntax. It has to be valid in ... "", " ", "abcd\n1234", ... boolean true, false reference null As shown in the next section (section

[ODB1] Chapter 6 - Persistent Objects

: boolean b1 = JDOHelper.isPersistent(obj); boolean b2 = JDOHelper.isTransactional(obj); boolean b3 = JDOHelper.isNew(obj); boolean b4 = JDOHelper.isDeleted(obj); boolean b5 = JDOHelper

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support