ObjectDB Database Search

1-50 of 200 results

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

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

Literals in JPQL and Criteria Queries

including NULL , boolean literals ( TRUE and FALSE ), numeric literals (e.g. 100 ), string literals ... rules, as 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

ObjectDB Object Database Features

System Types (for persistent fields) Primitive types ( boolean , byte, short, char, int, long, float, double). Wrapper types ( Boolean , Byte, Short, Character, Integer, Long, Float, Double). java.lang ... . Primary Key Data Types Primitives ( boolean , byte, short, char, int, long, float and double). Wrappers

Comparison in JPQL and Criteria API

, comparing the content rather than the identity. Values of the boolean and Boolean types can be compared by equality operators (=, , == , != ) which follow the logic of Java's equals (for Boolean instances

JPA Persistable Types

Java Data Types All the following simple Java data types are persistable: Primitive types: boolean ... .lang: Boolean , Byte , Short , Character , Integer , Long , Float and Double . java.math.BigInteger

Retrieving JPA Entity Objects

. getPersistenceUtil (); boolean isObjectLoaded = util. isLoaded (employee); boolean isFieldLoaded = util

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

Database Schema Evolution

and enum values that are stored as numeric ordinal values (the default). From any type to Boolean or boolean ( 0 , null and false are converted to false , any other value is converted to true ). From

JPA Metamodel API

= entityType. getSupertype (); // Checks if the type has a single ID attribute: boolean hasSingleId ... if the type has a version attribute: boolean hasVersion = entityType. hasVersionAttribute (); // Gets

Paths and Types in JPQL and Criteria API

. But more often they are used in JPQL path expressions that navigate to values of simple types (number, boolean ... types (number, boolean , string, date). For a path expression to be valid the user defined persistable

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

Element I encounter ObjectDB enhancement errors: private boolean loaded = false; @Transient @Override public boolean isLoaded() { return loaded; } @Override public void setLoaded( boolean loaded ... . ... But it is ok using the 'get' getter form: private boolean loaded = false; @Transient @Override public

Index Definition

: Primitive types: boolean , byte , short , char , int , long , float , double. Equivalent wrapper

Shared (L2) Entity Cache

(); The Cache object enables checking if a specified entity object is cached: boolean isCached

Working with JPA Entity Objects

entity object is in the persistence context: boolean isManaged = em. contains (employee

JPA Primary Key

that is set by the application can have one of the following types: Primitive types: boolean , byte , short

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 ... application = null ; @Embeddable public static class Application { private boolean instruction = false

InterfaceRef jakarta.persistence.criteria.AbstractQuery

of restrictions. Since: JPA 2.0 Public Methods AbstractQuery distinct ( boolean  distinct) Specify ... results must be retained. Parameters: distinct - boolean value specifying whether duplicate results ... boolean expression Return: the modified query Since: JPA 2.0 AbstractQuery having (List  

InterfaceRef jakarta.persistence.criteria.Subquery

: subquery join Since: JPA 2.0 Subquery distinct ( boolean  distinct) Specify whether duplicate query ... : distinct - boolean value specifying whether duplicate results must be eliminated from the subquery result ... method. Parameters: restriction - a simple or compound boolean expression Return: the modified subquery

InterfaceRef jakarta.persistence.criteria.CriteriaQuery

explains how to use CriteriaQuery . Public Methods CriteriaQuery distinct ( boolean  distinct) Specify ... AbstractQuery method. Parameters: distinct - boolean value specifying whether duplicate results ... : restriction - a simple or compound boolean expression Return: the modified query Since: JPA 2.0

InterfaceRef jakarta.persistence.metamodel.SingularAttribute

: type of attribute Since: JPA 2.0 boolean isId () Is the attribute an id attribute? This method returns true if the attribute is a plain, an plain, or an attribute of an plain. Return: boolean indicating whether the attribute is an id Since: JPA 2.0 boolean isOptional () Can the attribute be null

InterfaceRef jakarta.persistence.criteria.CriteriaBuilder

of the given boolean expressions. Parameters: x - boolean expression y - boolean expression Return ... ,  Expression  y) Create a disjunction of the given boolean expressions. Parameters: x - boolean expression y - boolean expression Return: or predicate Since: JPA 2.0 Predicate or (List  

InterfaceRef jakarta.persistence.criteria.CriteriaBuilder$In

the query. Return: list of boolean expressions forming the predicate Inherited from: Predicate Since: JPA 2.0 Predicate.BooleanOperator getOperator () Return the boolean operator for the predicate. If the predicate is simple, this is AND . Return: boolean operator for the predicate Inherited from: Predicate

InterfaceRef jakarta.persistence.criteria.Predicate

of boolean expressions forming the predicate Since: JPA 2.0 Predicate.BooleanOperator getOperator () Return the boolean operator for the predicate. If the predicate is simple, this is AND . Return: boolean operator for the predicate Since: JPA 2.0 boolean isNegated () Whether the predicate

InterfaceRef jakarta.persistence.EntityManager

-managed Since: JPA 1.0 boolean contains (Object entity) Determine if the given object is a managed ... Return: boolean value indicating if entity belongs to the persistence context Throws ... Since: JPA 1.0 boolean isJoinedToTransaction () Determine whether the entity manager is joined

InterfaceRef jakarta.persistence.StoredProcedureQuery

to getOutputParameterValue . See Also: Query Parameter Since: JPA 2.1 Public Methods boolean execute ... boolean hasMoreResults () Return true if the next result corresponds to a result set, and false ... back Since: JPA 2.1 boolean isBound ( Parameter  param) Return a boolean indicating whether a value

InterfaceRef jakarta.persistence.metamodel.MappedSuperclassType

Inherited from: IdentifiableType Since: JPA 2.0 boolean hasSingleIdAttribute () Whether the identifiable ... for an idclass. Return: boolean indicating whether the identifiable type has a single id attribute Inherited from: IdentifiableType Since: JPA 2.0 boolean hasVersionAttribute () Whether the identifiable type

InterfaceRef jakarta.persistence.EntityTransaction

RollbackException - if the commit fails Since: JPA 1.0 boolean getRollbackOnly () Determine whether the current resource transaction has been marked for rollback. Return: boolean indicating ... Since: JPA 1.0 Integer getTimeout () The transaction timeout. Since: JPA 3.2 boolean isActive

InterfaceRef jakarta.persistence.PersistenceUnitUtil

to be an entity Since: JPA 3.2 boolean isInstance (Object entity, Class  entityClass) Return ... with an open persistence context or cannot be loaded from the database Since: JPA 3.2 boolean isLoaded ... boolean isLoaded (Object entity) Determine the load state of an entity belonging

AnnotationRef jakarta.persistence.MapKeyJoinColumn

foreign key strategy is selected by the persistence provider. Since: JPA 2.1 boolean insertable default ... of the referencing entity or embeddable class; " _ "; " KEY ". Since: JPA 2.0 boolean nullable ... that is the value of the map. Since: JPA 2.0 boolean unique default false (Optional) Whether the property

InterfaceRef jakarta.persistence.metamodel.Attribute

type for the attribute. Return: persistent attribute type Since: JPA 2.0 boolean isAssociation () Is the attribute an association. Return: boolean indicating whether the attribute corresponds to an association Since: JPA 2.0 boolean isCollection () Is the attribute collection-valued (represents

AnnotationRef jakarta.persistence.MapKeyColumn

boolean insertable default true (Optional) Whether the column is included in SQL INSERT statements ... ; " _ "; " KEY ". Since: JPA 2.0 boolean nullable default false (Optional) Whether the database column ... that is the value of the map. Since: JPA 2.0 boolean unique default false (Optional) Whether the column

AnnotationRef jakarta.persistence.Column

is in effect. Since: JPA 3.2 boolean insertable default true (Optional) Whether the column ... of the column. Defaults to the property or field name. Since: JPA 1.0 boolean nullable default true ... the column. If absent the column is assumed to be in the primary table. Since: JPA 1.0 boolean unique

InterfaceRef jakarta.persistence.metamodel.IdentifiableType

the identifiable type Since: JPA 2.0 boolean hasSingleIdAttribute () Whether the identifiable type has a single ... : boolean indicating whether the identifiable type has a single id attribute Since: JPA 2.0 boolean hasVersionAttribute () Whether the identifiable type has a version attribute. Return: boolean indicating whether the identifiable type has a version attribute Since: JPA 2.0

InterfaceRef jakarta.persistence.metamodel.EntityType

type is not present in the identifiable type Inherited from: IdentifiableType Since: JPA 2.0 boolean ... for a simple id or embedded id; returns false for an idclass. Return: boolean indicating whether the identifiable type has a single id attribute Inherited from: IdentifiableType Since: JPA 2.0 boolean

AnnotationRef jakarta.persistence.JoinColumn

boolean insertable default true (Optional) Whether the column is included in SQL INSERT statements ... of the entity; " _ "; the name of the referenced primary key column. Since: JPA 1.0 boolean nullable default ... . If the join is for an element collection, the name of the collection table. Since: JPA 1.0 boolean unique

Query.isBound(param) - JPA Method

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 Return: boolean indicating whether parameter has been bound Since: JPA 2.0

InterfaceRef jakarta.persistence.Query

back Since: JPA 3.2 Integer getTimeout () The query timeout. Since: JPA 3.2 boolean isBound ( Parameter  param) Return a boolean indicating whether a value has been bound to the parameter. Parameters: param - parameter object Return: boolean indicating whether parameter has been bound Since: JPA 2.0 Query

InterfaceRef jakarta.persistence.TypedQuery

from: Query Since: JPA 3.2 boolean isBound ( Parameter  param) Return a boolean indicating whether a value has been bound to the parameter. Parameters: param - parameter object Return: boolean

AnnotationRef jakarta.persistence.OrderColumn

. Defaults to generated SQL to create a column of the inferred type. Since: JPA 2.0 boolean insertable ... ". Since: JPA 2.0 boolean nullable default true (Optional) Whether the database column is nullable ... which declares this column. May not be used in conjunction with () . Since: JPA 3.2 boolean updatable default

CriteriaBuilder.or(x,y) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaBuilder Predicate or (    Expression  x,     Expression  y ) Create a disjunction of the given boolean expressions. Parameters: x - boolean expression y - boolean expression Return: or predicate Since: JPA 2.0

CriteriaBuilder.and(x,y) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaBuilder Predicate and (    Expression  x,     Expression  y ) Create a conjunction of the given boolean expressions. Parameters: x - boolean expression y - boolean expression Return: and predicate Since: JPA 2.0

InterfaceRef jakarta.persistence.criteria.Join

Since: JPA 2.1 From getParent () Return the parent of the join. Return: join parent Since: JPA 2.0 boolean ... of a Subquery.correlate method). Return: boolean indicating whether the object has been obtained ... ON condition, if any. Parameters: restriction - a simple or compound boolean expression Return: the modified

SingularAttribute.isOptional() - JPA Method

JPA Method in jakarta.persistence.metamodel.SingularAttribute boolean isOptional () Can the attribute be null? Return: boolean indicating whether the attribute can be null See Also: jakarta.persistence.Basic.optional Since: JPA 2.0

SingularAttribute.isId() - JPA Method

JPA Method in jakarta.persistence.metamodel.SingularAttribute boolean isId () Is the attribute an id attribute? This method returns true if the attribute is a plain, an plain, or an attribute of an plain. Return: boolean indicating whether the attribute is an id Since: JPA 2.0

SingularAttribute.isVersion() - JPA Method

JPA Method in jakarta.persistence.metamodel.SingularAttribute boolean isVersion () Is the attribute a plain attribute? Return: boolean indicating whether the attribute is a version attribute Since: JPA 2.0

Predicate.isNegated() - JPA Method

JPA Method in jakarta.persistence.criteria.Predicate boolean isNegated () Whether the predicate has been created from another predicate by applying () or by calling CriteriaBuilder.not . Return: boolean indicating if the predicate is a negated predicate Since: JPA 2.0

InterfaceRef jakarta.persistence.criteria.CriteriaDelete

to the specified boolean expression. Replaces the previously added restriction(s), if any. Parameters: restriction - a simple or compound boolean expression Return: the modified delete query Since: JPA 2

InterfaceRef jakarta.persistence.criteria.Selection

Since: JPA 2.0 boolean isCompoundSelection () Whether the selection item is a compound selection. Return: boolean indicating whether the selection is a compound selection Since: JPA 2.0