Internal Website Search

101-150 of 200 results

best practice for configuration settings

setting ? synchronized there is no documentation about this setting , what does it do/mean ? hgzwicker Hans ... settings under the real conditions. If synchronized is true requests to the database are synchronized

Safe Settings

Hi, I am trying to set up ObjectDb in a safe way that allows turning the machine ... with both configuration settings with the debugger and I put a breakpoint in FileDescriptor#sync(). It never got triggered with no setting that I could come up with. How come? Thanks in advance

ManyToMany Set is null

")     private Set contracts = new HashSet (); ---------- @Entity public class Contract ... = "contracts")     private Set persons = new HashSet (); [...] itsme Martin Petzold

-XMX settings recommendation

The default is 256M  what is the recommended settings based on?  It is the size of the DB? number of connections?  If the DB has over 200GB of data and max connection of 400 then will I need to make this settings higher?  Thanks. Trianglehead Json Error There is no magic

Fetch Set from DB only works on debug mode

I have a class A, that contains a LinkedHashSet of  another class named B. When I try to fetch that hash set , it returns a null pointer. BUT, when I run the program in debug mode, it works fine ... the EntityManager . In debug mode, by examining the set you load the data before closing the  EntityManager

Objectdb Server Mode set up with glassfish

Hi I'm new to Java, glassfish and objectdb, so please forgive my ignorance. I have a glassfish server working with the embeded mode of objectdb. I now want to set up objectdb in server mode. I ... my project ? How do I configure my persitence.xml file ? Do I need to set up something in Glassfish

NullPointerException while setting a new property value

to entities from 2 threads: 1. Creating a list of entities, default values are set from imported file 2 ... and re- setting some properties to entities from the collection. NPE is thrown at some point

Is there a way to set EAGER fetch on all "ToMany" collection relationships

Given that the default seems to be FetchType.LAZY for all collections @OneToMany and @ManyToMany. Such as a configuration option. Instead of having to explicitly set fetch in annotation code in every relationship. webel Dr Darren Kelly No. There is no such configuration option, since having EAGER

Set timeout for BatchQueryItr

( unknown source ) xirt Sylvain You can set a query execution timeout as a query hint . The many

UPDATE query to set a new field after schema change

I've added a new property/field to one of my objects and want to set the value of this (boolean) property to false for all existing entities in the DB. I tried to execute an update statement with the Explorer tool. The statement ends and tells me that 1000 entities have been updated. I then save

Global way to set Lazy-loading fetch functionality for all the fields

if neither objectdb nor JPA offers it). ouba64 Ouba Mahamane Lazy / Eager can only be set locally

client server set up and load

is less affected by number of users and more by the actual activity, how indexes are set , etc. support Support

Unexpected internal exception during set field of an Embeddable to null

that. But the setting of "original value" for Class IntegerSignalValueImpl works once on a attched

Unable to update a OneToMany Set

Unable to update a OneToMany Set

setting activation code in persistence.xml or env file or system properties

setting activation code in persistence.xml or env file or system properties

Iterating over large result set

Iterating over large result set

Enum fields are set to null and embeddable enum class does not show in explorer

I switched to version 2.8.2 and now it seems that my enum types are not recognized and the field in the related objects is set to null. This is highly critical because it will cause data loss! The enum type is also not listed in the explorer. I am talking about an enum class, which implements

ObjectDb Doctor : Failed to locate set method for field property com.test.Video$VideoId.sourceId using reflection (error 316)

Hello everyone ! I have just launched the ObjectDb Doctor for testing purposes. But while inspecting my base, the Doctor throws me a strange error : [ObjectDB 2.4.6] Invalid ID class com.test.Video$VideoId for type com.test.Video (Failed to locate set method for field property com.test.Video

Object creation in the Explorer requires automatically set primary keys

The feature of creating new objects in the Explorer is currently supported only for entity classes that have primary keys that are set automatically. support Support

UPDATE query cannot set a new field after schema change

I've added a new property/field to one of my objects and want to set the value of this (boolean) property to false for all existing entities in the DB. I tried to execute an update statement with the Explorer tool. The statement ends and tells me that 1000 entities have been updated. I then save

javax.persistence.StoredProcedureQuery

with the following: The setParameter methods are used to set the values of all required IN and INOUT parameters. It is not required to set the values of stored procedure parameters for which default values ... the most general case (multiple result sets and/or update counts, possibly also in combination

After using the enhancer, Lazy loaded collections are no longer loading. They are set as null

After using the enhancer, Lazy loaded collections are no longer loading. They are set as null

javax.persistence.Query

- if the statement execution exceeds the query timeout value set and only the statement is rolled back PersistenceException - if the query execution exceeds the query timeout value set and the transaction ... was set to retrieve. Returns 0 if setFirstResult was not applied to the query object. Return

javax.persistence.TypedQuery

timeout value set and only the statement is rolled back PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back Inherited from: Query Since: JPA 1.0 int getFirstResult () The position of the first result the query object was set

javax.persistence.metamodel.IdentifiableType

Since: JPA 2.0 Set getAttributes () Return the attributes of the managed type. Return: attributes ... declared in the managed type Inherited from: ManagedType Since: JPA 2.0 Set getDeclaredAttributes () Return the attributes declared by the managed type. Returns empty set if the managed type

javax.persistence.metamodel.EmbeddableType

in the managed type Inherited from: ManagedType Since: JPA 2.0 Set getAttributes () Return ... : ManagedType Since: JPA 2.0 Set getDeclaredAttributes () Return the attributes declared by the managed type. Returns empty set if the managed type has no declared attributes. Return: declared attributes

javax.persistence.metamodel.ManagedType

is not present in the managed type Since: JPA 2.0 Set getAttributes () Return the attributes ... : IllegalArgumentException - if attribute of the given name is not declared in the managed type Since: JPA 2.0 Set getDeclaredAttributes () Return the attributes declared by the managed type. Returns empty set

javax.persistence.EntityManager

. An EntityManager instance is associated with a persistence context. A persistence context is a set of entity ... , and to query over entities. The set of entities that can be managed by a given EntityManager instance is defined by a persistence unit. A persistence unit defines the set of all classes that are related or

javax.persistence.criteria.From

Since: JPA 2.0 Set getFetches () Return the fetch joins that have been made from this type. Returns empty set if no fetch joins have been made from this type. Modifications to the set do not affect the query. Return: fetch joins made from this type Inherited from: FetchParent Since: JPA 2.0 Set

javax.persistence.criteria.Join

. Return: join type Since: JPA 2.0 Set getJoins () Return the joins that have been made from this bound type. Returns empty set if no joins have been made from this bound type. Modifications to the set ... ( SetAttribute   set ) Create an inner join to the specified Set -valued attribute. Parameters: set - target

javax.persistence.NamedStoredProcedureQuery

classes) that are used to map the results. The resultSetMappings element names one or more result set mappings, as defined by the SqlResultSetMapping annotation. If there are multiple result sets , it is assumed that they will be mapped using the same mechanism — e.g., either all via a set of result

javax.persistence.criteria.Subquery

;parentSet) Create a subquery set join object correlated to a set join object of the enclosing query ... , CriteriaUpdate, CriteriaDelete, or a Subquery. Return: the enclosing query or subquery Since: JPA 2.1 Set getCorrelatedJoins () Return the correlated joins of the subquery. Returns empty set if the subquery

javax.persistence.criteria.CriteriaQuery

the query. Return: the list of ordering expressions Since: JPA 2.0 Set getParameters () Return the parameters of the query. Returns empty set if there are no parameters. Modifications to the set ... Inherited from: AbstractQuery Since: JPA 2.0 Set getRoots () Return the query roots. These are the roots

javax.persistence.ManyToMany

_PHONES") public Set getPhones() { return phones; } // In PhoneNumber class: @ManyToMany(mappedBy="phones") public Set getCustomers() { return customers; } Example 2: // In Customer class: @ManyToMany(targetEntity=com.acme.PhoneNumber.class) public Set getPhones() { return phones; } // In PhoneNumber

StoredProcedureQuery.getSingleResult() - JPA Method

result from the next result set . The provider will call execute on the query if needed. A REF_CURSOR result set , if any, will be retrieved in the order the REF_CURSOR parameter was registered with the query. Return: the result or null if the next item is not a result set Throws: NoResultException

javax.persistence.criteria.AbstractQuery

must have: a set of root entities (which may in turn own joins). All queries may have: a conjunction ... 2.0 Set getRoots () Return the query roots. These are the roots that have been defined ... . Returns empty set if no roots have been defined. Modifications to the set do not affect the query. Return

StoredProcedureQuery.getResultList() - JPA Method

of results from the next result set . The provider will call execute on the query if needed. A REF_CURSOR result set , if any, will be retrieved in the order the REF_CURSOR parameter was registered with the query. Return: a list of the results or null is the next item is not a result set Throws

javax.persistence.FlushModeType

.FlushModeType Flush mode setting . When queries are executed within a transaction, if FlushModeType.AUTO is set on the Query or javax.persistence.TypedQuery object, or if the flush mode setting for the persistence context is AUTO (the default) and a flush mode setting has not been specified for the Query or

javax.persistence.criteria.CriteriaUpdate

Root getRoot () Return the query root. Return: the query root Since: JPA 2.1 CriteriaUpdate set ... Since: JPA 2.1 CriteriaUpdate set (Path  attribute, X value) Update the value ... : the modified update query Since: JPA 2.1 CriteriaUpdate set ( SingularAttribute  attribute, 

javax.persistence.criteria.SetJoin

of the target Set Super Interfaces: Expression , FetchParent , From , Join , Path , PluralJoin , Selection ... over an association or element collection that has been specified as a java.util. Set . Since: JPA 2.0 Public Methods SetAttribute getModel () Return the metamodel representation for the set attribute. Return

javax.persistence.metamodel.Metamodel

entity type Throws: IllegalArgumentException - if not an entity Since: JPA 2.0 Set getEmbeddables () Return the metamodel embeddable types. Returns empty set if there are no embeddable types. Return: the metamodel embeddable types Since: JPA 2.0 Set getEntities () Return the metamodel entity types

javax.jdo.PersistenceManager

. Transactional instances are subject to eviction based on the RetainValues setting . See Also: evict ... . If exceptions occur during flush, the implementation will set the current transaction's ... the copyOnAttach setting . Return: the copyOnAttach setting . See Also: setCopyOnAttach Since: JDO 2.1

javax.jdo.Query

declareImports (String imports) Set the import statements to be used to identify the fully qualified name ... with the parameters set by the Map values. Each Map entry consists of a key which is the name ... Since: JDO 2.0 boolean getIgnoreCache () Get the ignoreCache option setting . Return: the ignoreCache

javax.jdo.FetchGroup

.getFetchGroup , it is unscoped. When a FetchGroup is added to the set of active FetchGroups ... is removed from the set of active FetchGroups via PersistenceManagerFactory.removeFetchGroups ... ) Add the members (fields or properties) of the named category to the set of members in

javax.jdo.FetchPlan

to the same settings as that of the PersistenceManager . Subsequent modifications of the Query or ... Methods FetchPlan addGroup (String fetchGroupName) Add the fetch group to the set of active ... int getFetchSize () Return the fetch size, or FETCH_SIZE_OPTIMAL if not set , or FETCH_SIZE_GREEDY

javax.jdo.spi.PersistenceCapable

, with the jdoStateManager set to the parameter, and jdoFlags set to LOAD_REQUIRED. This method is used as ... ;Object oid) Return a new instance of this class, with the jdoStateManager set to the parameter, key fields initialized to the values in the oid, and jdoFlags set to LOAD_REQUIRED. This method

javax.jdo.Transaction

() Begin a transaction. The type of transaction is determined by the setting of the Optimistic flag ... -only status is false. Either the application or the JDO implementation may set this flag using ... is not active. Since: JDO 1.0 void setIsolationLevel (String level) Set the value for transaction

Query.setIgnoreCache(ignoreCache) - JDO Method

JDO Method in javax.jdo.Query void setIgnoreCache (   boolean ignoreCache ) Set the ignoreCache option. The default value for this option was set by the PersistenceManagerFactory or the PersistenceManager used to create this Query . The ignoreCache option setting specifies

PersistenceManagerFactory.setCopyOnAttach(flag) - JDO Method

;flag ) Sets the default copyOnAttach setting for all PersistenceManager instances obtained from this factory. CopyOnAttach set to true specifies that during makePersistent, copies are made of detached parameter instances. With this flag set to false , detached parameter instances are attached

PersistenceManager.setDetachAllOnCommit(flag) - JDO Method

JDO Method in javax.jdo.PersistenceManager void setDetachAllOnCommit (   boolean flag ) Sets the detachAllOnCommit setting . DetachAllOnCommit set to false specifies that the state ... set to true, during beforeCompletion all cached instances are prepared for detachment according