ObjectDB Database Search
101-150 of 200 resultsThreading Problem (maybe with Criteria) thread safe (as would a ConcurrentLinkedHashMap). FETCH thread nr (36) count: 982 UIDs in 26 msek FETCH thread nr (41) count: 982 UIDs in 29 msek FETCH thread nr (44) count: 982 UIDs in 14 msek FETCH thread nr (39) count: 982 UIDs in 25 msek FETCH thread nr (42) count: 982 UIDs in 31 msek FETCH | |
General Performance Issues Illustrated with a Specific Method(cascade = CascadeType.ALL, fetch = FetchType.EAGER) private Person person; @Index private String phn; private String comments; /* Create Properties */ @ManyToOne( fetch = FetchType.LAZY) private WebUser ... .persistence.TemporalType.DATE) private Date createdOn; @ManyToOne( fetch = FetchType.LAZY) private | |
significant performance decrease; @OneToMany( fetch =FetchType.LAZY) public List actions = new ArrayList (); @OneToMany( fetch =FetchType.LAZY) public List childNodes = new ArrayList (); @OneToMany( fetch =FetchType.LAZY) public List container = new ArrayList (); @OneToOne( fetch =FetchType.LAZY) public ObjectNode currentLocation; @OneToOne | |
persisting object with long[][] arrays of array; @OneToMany( fetch = FetchType.EAGER, cascade = CascadeType.ALL) public long[] time; @OneToMany( fetch = FetchType.EAGER, cascade = CascadeType.ALL) private long[][] a1; @OneToMany( fetch = FetchType.EAGER, cascade = CascadeType.ALL) private long[][] a2;   | |
Missing (null) elements in eager loaded references has a OneToMany relationship to DataElement. Every relationship is eagerly fetched Problem ... amount: Element.getCosts().get(0).getAmount() X Could it be that despite being fetched eager ... ; etc... } @MappedSuperclass public abstract class BaseCostElement extends BaseElement { @ElementCollection ( fetch | |
Transaction isolation support?. (Especially if using LAZY fetch sub object). Do I always just get the list of objects as it looks when the fetch start? Martin mt Martin Every EntityManager manages its own memory objects ... own defined as @OneToMany( fetch =FetchType.LAZY) List bookList; (And in this example, there is only 1 object in | |
Object as parameter results in exception T fetch (Company company, Long primaryKey) { mLogger.info(" Fetching type: {} with id ... ;@Override public T fetch (Company company, Long primaryKey) { mLogger.info(" Fetching type ... T fetch (Company company, Long primaryKey) { mLogger.info(" Fetching type: {} with id | |
EntityManager JPA or JDO impl and different behavior, and particularly how exactly that map is defined and with which fetch type. If the problem ... ; @OneToMany(cascade=CascadeType.PERSIST, fetch =FetchType.EAGER)   ... ; fetch =FetchType.EAGER, orphanRemoval=true)   | |
Listing large number of complicated objects with paging.). The problem is probably with the extensive EAGER setting in Product , and particularly with eager fetch of inverse (mapped by) collections. Massive inverse fetch is currently inefficient and has to be improved ... ( setMaxResults ). Does that number affect? You may try running the query with a lazy fetch hint (as done by | |
javax.persistence.EntityManager may be lazily fetched . If the requested instance does not exist in the database | |
EntityManager.getReference(entityClass,primaryKey) - JPA Method JPA Method in javax.persistence.EntityManager T getReference ( Class entityClass, Object primaryKey ) Get an instance, whose state may be lazily fetched . If the requested instance does not exist in the database, the EntityNotFoundException is thrown | |
javax.persistence.FetchType.LAZY JPA Enum Constant in javax.persistence.FetchType LAZY Defines that data can be lazily fetched . Since: JPA 1.0 | |
javax.persistence.FetchType.EAGER JPA Enum Constant in javax.persistence.FetchType EAGER Defines that data must be eagerly fetched . Since: JPA 1.0 | |
javax.persistence.criteria.JoinType JPA Enum JoinType java.lang.Object ∟ java.lang.Enum ∟ javax.persistence.criteria.JoinType Defines the three types of joins. Right outer joins and right outer fetch joins are not required to be supported. Applications that use RIGHT join types will not be portable. Since: JPA 2.0 Enum | |
Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct)() { return ownedElements; } private Element owner; @ManyToOne( fetch = FetchType.LAZY) @JoinTable(name ... might be the problem here. Try setting the fetch type of ownedElements to EAGER and check ... (the default fetch type for to-many) - the entity objects are detached without that field | |
Best practise loading big data a boolean flag. @Entity class MyStepBlockCollection { @OneToMany ( cascase = ALL , fetch = Lazy ... = ALL , fetch = Lazy , target = MyStep } ArrayList steps; } @Entity { class MyStep { @ElementCollection ( fetch = LAZY ) ArrayList values; } @Embeddable class MyValue { @Basic boolean flag; @Basic String | |
New entity objects are duplicated on merge cascading; @OneToMany(cascade= CascadeType.ALL, fetch = FetchType.EAGER ... ; @OneToOne( fetch = FetchType.LAZY, cascade = CascadeType.ALL)   ... ; @ManyToOne( fetch = FetchType.LAZY)   | |
javax.jdo.Query the FetchPlan used by this Query . Modifications of the returned fetch plan will not cause this query's owning PersistenceManager 's FetchPlan to be modified. Return: the fetch plan used by this query | |
Query.getFetchPlan() - JDO Method JDO Method in javax.jdo.Query FetchPlan getFetchPlan () Returns the FetchPlan used by this Query . Modifications of the returned fetch plan will not cause this query's owning PersistenceManager 's FetchPlan to be modified. Return: the fetch plan used by this query Since: JDO 2.0 | |
javax.jdo.annotations.FetchGroup.fetchGroups JDO Annotation Attribute in javax.jdo.annotations.FetchGroup String[] fetchGroups default {} Fetch groups to be nested (included) in this fetch group. Since: JDO 2.1 | |
javax.jdo.annotations.FetchGroups JDO Annotation FetchGroups Target: ElementType.TYPE Implemented Interfaces: Annotation Annotation for a group of fetch -group objects Since: JDO 2.1 Public Annotation Attributes FetchGroup[] value default null The Fetch Groups Since: JDO 2.1 | |
javax.jdo.annotations.FetchPlan.fetchGroups JDO Annotation Attribute in javax.jdo.annotations.FetchPlan String[] fetchGroups default {} The fetch groups in this fetch plan. Since: JDO 2.1 | |
javax.jdo.annotations.Persistent defaultFetchGroup default "" Whether this member is in the default fetch group. Since: JDO 2.1 String ... "" Name of the fetch -group to use when this member is loaded due to being referenced when not | |
FetchGroup.hashCode() - JDO Method JDO Method in javax.jdo.FetchGroup int hashCode () Return the hashCode for this instance. The hash code should combine both the class and fetch group name. The hash codes for two equal instances must be identical. Return: the hash code Since: JDO 2.2 | |
FetchGroup.equals(other) - JDO Method JDO Method in javax.jdo.FetchGroup boolean equals ( Object other ) Return whether this instance is equal to the other. The equals method must compare the class for identity and the fetch group name for equality. Return: whether this instance is equal to the other Since: JDO 2.2 | |
javax.jdo.FetchPlan.DETACH_UNLOAD_FIELDS JDO Static Field in javax.jdo.FetchPlan DETACH_UNLOAD_FIELDS For use with PersistenceManager.detachCopy and setDetachmentOptions . Specifies that fields that are loaded but not in the current fetch plan should be unloaded prior to detachment. Since: JDO 2.0 | |
javax.jdo.FetchPlan.DETACH_LOAD_FIELDS JDO Static Field in javax.jdo.FetchPlan DETACH_LOAD_FIELDS For use with PersistenceManager.detachCopy and setDetachmentOptions . Specifies that fields that are not loaded but are in the current fetch plan should be loaded prior to detachment. Since: JDO 2.0 | |
FetchPlan.clearGroups() - JDO Method JDO Method in javax.jdo.FetchPlan FetchPlan clearGroups () Remove all active groups leaving no active fetch group. Return: the FetchPlan Since: JDO 2.0 | |
FetchPlan.setGroups(fetchGroupNames) - JDO Method JDO Method in javax.jdo.FetchPlan FetchPlan setGroups ( Collection fetchGroupNames ) Set a collection of groups. Parameters: fetchGroupNames - a collection of names of fetch groups Return: the FetchPlan Since: JDO 2.0 | |
FetchPlan.setGroups(fetchGroupNames) - JDO Method JDO Method in javax.jdo.FetchPlan FetchPlan setGroups ( String... fetchGroupNames ) Set a collection of groups. Parameters: fetchGroupNames - a String array of names of fetch groups Return: the FetchPlan Since: JDO 2.0 | |
PersistenceManager.makeTransient(pc,useFetchPlan) - JDO Method: pc - the root instance to make transient. useFetchPlan - whether to use the current fetch plan | |
PersistenceManager.makeTransientAll(pcs,useFetchPlan) - JDO Method. useFetchPlan - whether to use the current fetch plan to determine which fields to load | |
PersistenceManager.makeTransientAll(useFetchPlan,pcs) - JDO Method. useFetchPlan - whether to use the current fetch plan to determine which fields to load and which instances to make transient Since: JDO 2.1 | |
PersistenceManager.makeTransientAll(pcs,useFetchPlan) - JDO Method. useFetchPlan - whether to use the current fetch plan to determine which fields to load and which instances to make transient Since: JDO 2.0 | |
PersistenceManagerFactory.addFetchGroups(groups) - JDO Method JDO Method in javax.jdo.PersistenceManagerFactory void addFetchGroups ( FetchGroup... groups ) Add the FetchGroup s to the set of active fetch groups. FetchGroup s are made unmodifiable before being added. FetchGroup s that match existing FetchGroup s replace the corresponding | |
PersistenceManagerFactory.getFetchGroup(cls,name) - JDO Method . Parameters: cls - the class or interface for the FetchGroup name - the name of the fetch group | |
javax.jdo.annotations.FetchGroup.name JDO Annotation Attribute in javax.jdo.annotations.FetchGroup String name default "" Name of the fetch group. Since: JDO 2.1 | |
javax.jdo.annotations.FetchGroup.members JDO Annotation Attribute in javax.jdo.annotations.FetchGroup Persistent [] members default null Members (fields and properties) of the fetch group. The members should contain only name and recursionDepth. Since: JDO 2.1 | |
javax.jdo.annotations.FetchGroups.value JDO Annotation Attribute in javax.jdo.annotations.FetchGroups FetchGroup[] value default null The Fetch Groups Since: JDO 2.1 | |
javax.jdo.annotations.FetchPlan.name JDO Annotation Attribute in javax.jdo.annotations.FetchPlan String name default "" Name of the fetch plan. Since: JDO 2.1 | |
javax.jdo.annotations.FetchPlans JDO Annotation FetchPlans Target: ElementType.TYPE Implemented Interfaces: Annotation Annotation for a group of FetchPlan objects Since: JDO 2.1 Public Annotation Attributes FetchPlan[] value default null The Fetch Plans Since: JDO 2.1 | |
javax.jdo.annotations.FetchPlans.value JDO Annotation Attribute in javax.jdo.annotations.FetchPlans FetchPlan[] value default null The Fetch Plans Since: JDO 2.1 | |
javax.jdo.annotations.Persistent.defaultFetchGroup JDO Annotation Attribute in javax.jdo.annotations.Persistent String defaultFetchGroup default "" Whether this member is in the default fetch group. Since: JDO 2.1 | |
javax.jdo.annotations.Persistent.loadFetchGroup JDO Annotation Attribute in javax.jdo.annotations.Persistent String loadFetchGroup default "" Name of the fetch -group to use when this member is loaded due to being referenced when not already loaded. Since: JDO 2.1 | |
javax.jdo.annotations.Query "" The name of the fetch plan used by this query Since: JDO 2.1 String language default "JDOQL" The query | |
javax.jdo.annotations.Query.fetchPlan JDO Annotation Attribute in javax.jdo.annotations.Query String fetchPlan default "" The name of the fetch plan used by this query Since: JDO 2.1 | |
javax.jdo.spi.JDOImplHelper to the single field identity constructor ObjectIdFieldSupplier : the field value is fetched from | |
JDOImplHelper.newObjectIdInstance(pcClass,obj) - JDO Method is fetched from the ObjectIdFieldSupplier and passed to the single field identity constructor String | |
javax.jdo.spi.PersistenceCapable ObjectIdFieldSupplier : the field value is fetched from the ObjectIdFieldSupplier and passed to the single field | |
PersistenceCapable.jdoNewObjectIdInstance(o) - JDO Method constructor ObjectIdFieldSupplier : the field value is fetched from the ObjectIdFieldSupplier and passed |