Internal Website Search

1-46 of 46 results

Query vs Extent for retrieving data

retrieve it using an Extent everything is present. We have a very simple class: public class ... is there. If I call Extent extent =     pm.getExtent(PositionReportManagerBean.class, true); I get an Extent back with all of the data as I would expect. However, if I execute a Query

Eclipse Public License - v 1.0

against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial ... to the minimum extent necessary to make such provision valid and enforceable. If Recipient institutes patent

Privacy Policy

to the extent necessary to comply with our legal obligations (for example, if we are required

Database Explorer

an entity object that is represented by a child of an Extent node in a viewer window deletes the object

[ODB1] Chapter 6 - Persistent Objects

of persistent classes are not included in the extents of their classes, so they cannot be iterated ... an Extent instance to iterate over all the objects of a specific class, retrieving them from the database ... are supported by ObjectDB but not by JDO. Retrieval by an Extent An Extent enables iteration

[ODB1] Chapter 7 - JDOQL Queries

. An Extent , for instance, can be used to retrieve all the instances of a specified persistent class ... three components: A candidate collection containing persistent objects (usually an Extent ) A candidate class ... collection is not specified explicitly, as it is in this query, the entire Extent of the candidate

Remove not working

because, in the same transaction, I gather an Extent , delete an object, then try to gather the same Extent again.  The Extent traversal throws the error because it encounters the object that was deleted. The fix was to do a PersistenceManager.flush() before trying to gather the Extent

[ODB1] Chapter 4 - JDO Metadata

of the super class, which includes the package name, has to be specified. requires- extent (true | false) By default, JDO manages an extent for every persistent class. An extent enables iteration ... of queries against the class instances. However, maintaining an extent for a class has some overhead

[ODB1] Chapter 2 - A Quick Tour

all the Persons in the database: 40 Extent extent = pm.getExtent(Person.class, false); 41 Iterator itr = extent .iterator(); 42 while (itr.hasNext()) 43 System.out.println(itr.next()); 44 extent .closeAll ... JDO by an Extent instance (line 40). The second argument of the getExtent( ... ) method indicates

[ODB1] Chapter 9 - ObjectDB Explorer

" context menu command. Select an Extent in a viewer window and then use the "Edit | Add To" menu ... . On the other hand, deleting a persistent object (which is represented by a child of an Extent node in ... Extent objects or from roots using persistence reference fields) are deleted from the database

How best to unbind all names?

this code: pm.currentTransaction().begin(); Extent extent = pm.getExtent(ABC.class, true); Query q = pm.newQuery( extent ); long deletedCount = q.deletePersistentAll(); pm.currentTransaction().commit ... (bookmarks). Instead of the above code, I could iterate over the Extent and delete the entities

Embedded in JDO metadata not working in objectDB 2.x ?

files. In those metadata files I have few persistence-capable classes which had extents in ObjectDB 1 (with an OID for every instance) and all other classes were embedded (so without extent ... as not embedded, with own extent and OID for every instance. So my questions are: 1

javax.jdo.Extent

JDO Interface Extent Super Interfaces: Iterable Instances of the Extent class represent the entire ... its subclasses or subinterfaces. The Extent instance has two possible uses: to iterate all instances ... an Iterator associated with this Extent instance. Iterator s closed by this method will return false

Extent.getCandidateClass() - JDO Method

JDO Method in javax.jdo. Extent Class getCandidateClass () An Extent contains all instances of a particular class or interface in the data store; this method returns the Class of the instances represented by this Extent . Return: the Class of instances of this Extent . Since: JDO 1.0

Extent.close(it) - JDO Method

JDO Method in javax.jdo. Extent void close (   Iterator  it ) Close an Iterator associated with this Extent instance. Iterator s closed by this method will return false to hasNext() and will throw NoSuchElementException on next() . The Extent instance can still be used as a parameter

Extent.hasSubclasses() - JDO Method

JDO Method in javax.jdo. Extent boolean hasSubclasses () Returns whether this Extent was defined to contain subclasses. Return: true if this Extent was defined to contain instances that are of a subclass type. Since: JDO 1.0

Extent.iterator() - JDO Method

JDO Method in javax.jdo. Extent Iterator iterator () Returns an iterator over all the instances in the Extent . The behavior of the returned iterator might depend on the setting of the ignoreCache flag in the owning PersistenceManager . Return: an iterator over all instances in the Extent Since: JDO 1.0

Extent.closeAll() - JDO Method

JDO Method in javax.jdo. Extent void closeAll () Close all Iterator s associated with this Extent instance. Iterator s closed by this method will return false to hasNext() and will throw NoSuchElementException on next() . The Extent instance can still be used as a parameter of Query.setExtent , and to get an Iterator . Since: JDO 1.0

Extent.getPersistenceManager() - JDO Method

JDO Method in javax.jdo. Extent PersistenceManager getPersistenceManager () An Extent is managed by a PersistenceManager ; this method gives access to the owning PersistenceManager . Return: the owning PersistenceManager Since: JDO 1.0

Extent.getFetchPlan() - JDO Method

JDO Method in javax.jdo. Extent FetchPlan getFetchPlan () Get the fetch plan associated with this Extent . Return: the fetch plan Since: JDO 2.0

Trouble viewing db in Explorer.

I am having trouble with the Explorer.  I can open the db just fine. I can open a few simple extents and view/navigate fine also.  The problem occurs when I view the more complex extents . The Explorer will not repaint the right pane.  I drag off screen to force repaint and get(right

Type xxx is not found (error 301)

) is preferred. Regarding Extent in JPA, your "SELECT a FROM User a" query is the standard replacement of JPA for JDO extents . Alternatively, if you want, you may use JDO from JPA application by obtaining

DB reading fails in debug mode in Eclipse

you can see the classes are not embedded, so they have their own extent and IDs in the DB

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

per relationship, and for some extent also per query (using JOIN FETCH ). support Support

Inserted entities with strings as keys and indices needs more and more ram memory in comparing to primitive integers as keys and indices

step; btc_es BTC EmbeddedSystems To some extent , yes, but it depends. For example, are the long values

500Mb ObjectDb database opening issue

read the database file header). To some extent it is affected by the number of persistent types in

First query takes 4+ minutes to complete

this further and we will also be able to check the second query. Your other questions are covered, at least to some extent in

objectdb-2.6.9_02 (with "objectdb.temp.no-enhancement-crc-check") vs. generic classes with interfaces: detailed investigation

classes with ObjectDB may work to some extent . You can use a generics class parameter as the type

Post-compilation enhancement vs Automatic Run-time enhancement

exactly the same code modifications. There may be a difference with the extent of enhanced code. Automatic

ObjectDB 2.6.9_06 (embedded): Cascading merge resulting in duplicate objects

entries in the Address extent , i.e. there is a duplicate entity that is not related to any

javax.jdo.PersistenceManager

Extent getExtent (Class  persistenceCapableClass) Equivalent to getExtent (persistenceCapableClass, true) . See Also: getExtent Since: JDO 2.0 Extent getExtent (Class   ... the data store based on the class of the instances. This method returns an Extent of instances in the data

PersistenceManager.getExtent(persistenceCapableClass,subclasses) - JDO Method

JDO Method in javax.jdo.PersistenceManager Extent getExtent (   Class   ... of instances in the data store based on the class of the instances. This method returns an Extent of instances in the data store that might be iterated or given to a Query . The Extent

javax.jdo.Query

collection or extent , result class, and range limits are not used. The String parameters are trimmed ... the parameter is null, then the candidate collection is the extent of the candidate class. The String ... . Since: JDO 1.0 void setCandidates ( Extent  pcs) Set the candidate Extent to query. Parameters

PersistenceManager.newQuery(cln,filter) - JDO Method

JDO Method in javax.jdo.PersistenceManager Query newQuery (    Extent  cln,    String filter ) Create a new Query with the candidate Extent and filter; the class is taken from the Extent . Parameters: cln - the Extent of candidate instances filter - the filter for candidate instances Return: the new Query Since: JDO 1.0

ObjectDB 2.7.4

Fixed a bug in persisting objects with same ids in a class hierarchy in one transaction. Fixed a bug in using JDO Extent of a super class with shared primary key values in subclasses. Added a warning if a JDO SingleFieldIdentity class is used as a primary key field type.

ObjectDB-2.6.9: Failed to commit transaction: Failed to set numeric value of field property Element.id using reflection

with ObjectDB may work to some extent . You can use a generics class parameter as the type of a persistent

Query.setCandidates(pcs) - JDO Method

JDO Method in javax.jdo.Query void setCandidates (    Extent  pcs ) Set the candidate Extent to query. Parameters: pcs - the candidate Extent . Since: JDO 1.0

PersistenceManager.newQuery(cln) - JDO Method

JDO Method in javax.jdo.PersistenceManager Query newQuery (    Extent  cln ) Create a new Query with the Class of the candidate instances and candidate Extent . Parameters: cln - the Extent of candidate instances Return: the new Query Since: JDO 1.0

javax.jdo.FetchPlan

of this interface can be obtained from PersistenceManager.getFetchPlan , Extent .getFetchPlan , and Query. When a Query or Extent is retrieved from a PersistenceManager , its FetchPlan is initialized ... Extent 's FetchPlan are not reflected in the FetchPlan of the PersistenceManager . Since: JDO 2.0 Public

Query.addSubquery(sub,variableDeclaration,candidateCollectionExpression,parameters) - JDO Method

with a PersistenceManager, the candidate collection or extent , result class, and range limits are not used ... is the empty String, or the parameter is null, then the candidate collection is the extent

javax.jdo.annotations.PersistenceCapable

"" Whether this class or interface manages an extent . Since: JDO 2.1 String schema default "" Schema to use

javax.jdo.annotations.PersistenceCapable.requiresExtent

JDO Annotation Attribute in javax.jdo.annotations.PersistenceCapable String requiresExtent default "" Whether this class or interface manages an extent . Since: JDO 2.1

PersistenceManager.setMultithreaded(flag) - JDO Method

instances of PersistenceCapable classes, as well as helper instances such as Query , Transaction , or Extent

PersistenceManager.getExtent(persistenceCapableClass) - JDO Method

JDO Method in javax.jdo.PersistenceManager Extent getExtent (   Class  persistenceCapableClass ) Equivalent to getExtent (persistenceCapableClass, true) . See Also: getExtent Since: JDO 2.0

javax.jdo.annotations.FetchPlan

JDO Annotation FetchPlan Target: ElementType.TYPE Implemented Interfaces: Annotation Annotation for the fetch plan of a persistence manager, query, or extent . Corresponds to the xml element "fetch-plan". Since: JDO 2.1 Public Annotation Attributes String[] fetchGroups default {} The fetch groups

PersistenceManager.newQuery(compiled) - JDO Method

, except for the candidate Collection or Extent . Parameters: compiled - another Query from the same JDO implementation Return: the new Query Since: JDO 1.0