About boolean

1-10 of 200Refresh
Issue
43

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
Manual
33

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
Forum
31

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 queries
Forum
29

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
Manual
22

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
Result
17

ObjectDB Object Database Features

fields) Primitive types (boolean, byte, short, char, int, long, float, double). Wrapper types (Boolean ... @Id fields or a @EmbeddedId field. Primary Key Data Types Primitives (boolean, byte, short, char, int, long, float and double). Wrappers (Boolean, Byte, Short, Character, Integer, Long, Float
Manual
17

WHERE clause (JPQL / Criteria API)

, the WHERE clause gets an opportunity to function as a filter. The boolean expression in ... functions). The WHERE predicate is always a boolean JPQL expression. JPQL expressions are also used ... Restriction The first where method takes one Expression<Boolean> argument and uses it as
JDO Doc
15

javax.jdo.PersistenceManager

1.0 See Also: evict(Object pc) void evictAll(boolean subclasses, Class pcClass) Mark the parameter ... RollbackOnly flag (see Transaction.setRollbackOnly). Since: JDO 2.0 boolean getCopyOnAttach() Gets ... See Also: setCopyOnAttach(boolean) JDOConnection getDataStoreConnection() If this method is called
Manual
14

Comparison in JPQL and Criteria API

of the boolean and Boolean types can be compared by equality operators (=, <>, ==, !=) which follow the logic of Java's equals (for Boolean instances). Enum values can be compared by using the equality operators
JDO Doc
13

javax.jdo.spi.StateInterrogation

can handle the request. For JDOHelper isXXX methods, which return boolean, the corresponding method in StateInterrogation returns Boolean. If the return value is null then the StateInterrogation does ... ) PersistenceCapable.jdoGetObjectId() PersistenceManager.getObjectById(Object oid, boolean validate