ObjectDB Database Search

1-50 of 200 results

jakarta.persistence.criteria.AbstractQuery.distinct(boolean)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.AbstractQuery AbstractQuery distinct (    boolean distinct ) Specify whether duplicate query results are eliminated. A true ... - boolean value specifying whether duplicate results must be eliminated from the query result or

jakarta.persistence.criteria.Subquery.distinct(boolean)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.Subquery Subquery distinct (    boolean distinct ) Specify whether duplicate query results are eliminated. A true value ... type of the corresponding AbstractQuery method. Parameters: distinct - boolean value specifying

jakarta.persistence.criteria.CriteriaQuery.distinct(boolean)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaQuery CriteriaQuery distinct (    boolean distinct ) Specify whether duplicate query results are eliminated. A true ... the return type of the corresponding AbstractQuery method. Parameters: distinct - boolean value

jakarta.persistence.SchemaManager.create(boolean)

Jakarta Persistence (JPA) Method in jakarta.persistence.SchemaManager void create (    boolean createSchemas ) Create database objects mapped by entities belonging to the persistence unit. If a DDL operation fails, the behavior is undefined. A provider may throw an exception, or

jakarta.persistence.SchemaManager.drop(boolean)

Jakarta Persistence (JPA) Method in jakarta.persistence.SchemaManager void drop (    boolean dropSchemas ) Drop database objects mapped by entities belonging to the persistence unit, undoing the effects of the previous creation . If a DDL operation fails, the behavior is undefined

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

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

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

jakarta.persistence.metamodel.SingularAttribute

. Since: Jakarta Persistence (JPA) 1.0 boolean isAssociation () Is the attribute an association. Inherited from Attribute Returns: boolean indicating whether the attribute corresponds to an association. Since: Jakarta Persistence (JPA) 1.0 boolean isCollection () Is the attribute collection-valued

jakarta.persistence.criteria.Subquery

query Returns: subquery join. Since: Jakarta Persistence (JPA) 1.0 Subquery distinct ( boolean ... of the corresponding AbstractQuery method. Overrides AbstractQuery.distinct Parameters: distinct - boolean value ... . Overrides AbstractQuery.having Parameters: restriction - a simple or compound boolean expression Returns

jakarta.persistence.criteria.Predicate

. Modifications to the list do not affect the query. Returns: list of boolean expressions forming ... Persistence (JPA) 1.0 BooleanOperator getOperator () Return the boolean operator for the predicate. If the predicate is simple, this is AND . Returns: boolean operator for the predicate. Since: Jakarta

jakarta.persistence.criteria.CriteriaBuilder.In

. Modifications to the list do not affect the query. Inherited from Predicate Returns: list of boolean ... element. Since: Jakarta Persistence (JPA) 1.0 BooleanOperator getOperator () Return the boolean ... : boolean operator for the predicate. Since: Jakarta Persistence (JPA) 1.0 Predicate in ( Object

jakarta.persistence.criteria.AbstractQuery

Public Instance Methods AbstractQuery distinct ( boolean distinct ) Specify whether duplicate query ... . Parameters: distinct - boolean value specifying whether duplicate results must be eliminated from ... . Parameters: restriction - a simple or compound boolean expression Returns: the modified query. Since: Jakarta

jakarta.persistence.criteria.CriteriaQuery

CriteriaQuery . Public Instance Methods CriteriaQuery distinct ( boolean distinct ) Specify whether duplicate ... AbstractQuery.distinct Parameters: distinct - boolean value specifying whether duplicate results ... AbstractQuery method. Overrides AbstractQuery.having Parameters: restriction - a simple or compound boolean

jakarta.persistence.criteria.CriteriaBuilder

of the given boolean expressions. Parameters: x - boolean expression y - boolean expression Returns ... Predicate or ( Expression x , Expression y ) Create a disjunction of the given boolean expressions. Parameters: x - boolean expression y - boolean expression Returns: or predicate. Since: Jakarta

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

jakarta.persistence.EntityManager

: IllegalStateException - if the entity manager is container-managed. Since: Jakarta Persistence (JPA) 1.0 boolean ... to the current persistence context. Parameters: entity - entity instance Returns: boolean value indicating ... : IllegalStateException - if invoked on a JTA entity manager. Since: Jakarta Persistence (JPA) 1.0 boolean

jakarta.persistence.criteria.PluralJoin

. Since: Jakarta Persistence (JPA) 1.0 boolean isCompoundSelection () Whether the selection item is a compound selection. Inherited from Selection Returns: boolean indicating whether the selection is a compound selection. Since: Jakarta Persistence (JPA) 1.0 boolean isCorrelated () Whether the From

jakarta.persistence.criteria.MapJoin

against Returns: predicate testing for membership. Since: Jakarta Persistence (JPA) 1.0 boolean ... : boolean indicating whether the selection is a compound selection. Since: Jakarta Persistence (JPA) 1.0 boolean isCorrelated () Whether the From object has been obtained as a result of correlation (use

jakarta.persistence.criteria.SetJoin

against Returns: predicate testing for membership. Since: Jakarta Persistence (JPA) 1.0 boolean ... : boolean indicating whether the selection is a compound selection. Since: Jakarta Persistence (JPA) 1.0 boolean isCorrelated () Whether the From object has been obtained as a result of correlation

jakarta.persistence.criteria.CollectionJoin

. Since: Jakarta Persistence (JPA) 1.0 boolean isCompoundSelection () Whether the selection item is a compound selection. Inherited from Selection Returns: boolean indicating whether the selection is a compound selection. Since: Jakarta Persistence (JPA) 1.0 boolean isCorrelated () Whether the From

jakarta.persistence.criteria.ListJoin

denoting the index. Since: Jakarta Persistence (JPA) 1.0 boolean isCompoundSelection () Whether the selection item is a compound selection. Inherited from Selection Returns: boolean indicating whether the selection is a compound selection. Since: Jakarta Persistence (JPA) 1.0 boolean isCorrelated

jakarta.persistence.criteria.Join

Persistence (JPA) 1.0 boolean isCompoundSelection () Whether the selection item is a compound selection. Inherited from Selection Returns: boolean indicating whether the selection is a compound selection. Since: Jakarta Persistence (JPA) 1.0 boolean isCorrelated () Whether the From object has been obtained

jakarta.persistence.StoredProcedureQuery

Since: Jakarta Persistence (JPA) 2.1 Public Instance Methods boolean execute () Return true if the first ... back. Since: Jakarta Persistence (JPA) 1.0 boolean hasMoreResults () Return true if the next result ... value set and only the statement is rolled back. Since: Jakarta Persistence (JPA) 1.0 boolean isBound

jakarta.persistence.PersistenceUnitUtil

is found not to be an entity. Since: Jakarta Persistence (JPA) 3.2 boolean isInstance ( Object entity ... . Since: Jakarta Persistence (JPA) 3.2 boolean isLoaded ( Object entity , String attributeName ) Determine ... Persistence (JPA) 1.0 boolean isLoaded ( E entity , Attribute attribute ) Determine the load state of a given

jakarta.persistence.JoinColumn

of the referenced table. Default: "" Since: Jakarta Persistence (JPA) 1.0 boolean unique (Optional ... key. Default: false Since: Jakarta Persistence (JPA) 1.0 boolean nullable (Optional) Whether the foreign key column is nullable. Default: true Since: Jakarta Persistence (JPA) 1.0 boolean insertable

jakarta.persistence.MapKeyColumn

relationship field or property; " _ "; " KEY ". Default: "" Since: Jakarta Persistence (JPA) 1.0 boolean ... boolean nullable (Optional) Whether the database column is nullable. Default: false Since: Jakarta Persistence (JPA) 1.0 boolean insertable (Optional) Whether the column is included in SQL INSERT

jakarta.persistence.MapKeyJoinColumn

the primary key column of the referenced table. Default: "" Since: Jakarta Persistence (JPA) 1.0 boolean ... . Default: false Since: Jakarta Persistence (JPA) 1.0 boolean nullable (Optional) Whether the foreign key column is nullable. Default: false Since: Jakarta Persistence (JPA) 1.0 boolean insertable

jakarta.persistence.EntityTransaction

fails. Since: Jakarta Persistence (JPA) 1.0 boolean getRollbackOnly () Determine whether the current resource transaction has been marked for rollback. Returns: boolean indicating ... (JPA) 3.2 boolean isActive () Indicate whether a resource transaction is in progress. Returns: boolean

jakarta.persistence.metamodel.Attribute

Persistence (JPA) 1.0 boolean isAssociation () Is the attribute an association. Returns: boolean ... boolean isCollection () Is the attribute collection-valued (represents a Collection , Set , List , or Map ). Returns: boolean indicating whether the attribute is collection-valued. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.Root

testing for membership. Since: Jakarta Persistence (JPA) 1.0 boolean isCompoundSelection () Whether the selection item is a compound selection. Inherited from Selection Returns: boolean indicating whether the selection is a compound selection. Since: Jakarta Persistence (JPA) 1.0 boolean isCorrelated

jakarta.persistence.metamodel.IdentifiableType

Persistence (JPA) 1.0 boolean hasSingleIdAttribute () Whether the identifiable type has a single id ... : boolean indicating whether the identifiable type has a single id attribute. Since: Jakarta Persistence (JPA) 1.0 boolean hasVersionAttribute () Whether the identifiable type has a version attribute. Returns

jakarta.persistence.metamodel.EntityType

the identifiable type. Since: Jakarta Persistence (JPA) 1.0 boolean hasSingleIdAttribute ... false for an idclass. Inherited from IdentifiableType Returns: boolean indicating whether the identifiable type has a single id attribute. Since: Jakarta Persistence (JPA) 1.0 boolean

jakarta.persistence.metamodel.ListAttribute

. Since: Jakarta Persistence (JPA) 1.0 boolean isAssociation () Is the attribute an association. Inherited from Attribute Returns: boolean indicating whether the attribute corresponds to an association. Since: Jakarta Persistence (JPA) 1.0 boolean isCollection () Is the attribute collection-valued (represents

jakarta.persistence.metamodel.CollectionAttribute

: persistent attribute type. Since: Jakarta Persistence (JPA) 1.0 boolean isAssociation () Is the attribute an association. Inherited from Attribute Returns: boolean indicating whether the attribute corresponds to an association. Since: Jakarta Persistence (JPA) 1.0 boolean isCollection () Is the attribute

jakarta.persistence.metamodel.SetAttribute

Persistence (JPA) 1.0 boolean isAssociation () Is the attribute an association. Inherited from Attribute Returns: boolean indicating whether the attribute corresponds to an association. Since: Jakarta Persistence (JPA) 1.0 boolean isCollection () Is the attribute collection-valued (represents