Internal Website Search

1-50 of 200 results

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

objectdb-2.6.9_02 (with "objectdb.temp.no-enhancement-crc- check " system property ... : I discovered to my horror (using Java decompilers and .class file time stamp checks ... works fine). - I have used Java decompilers to check the ObjectDB enhancement carefully. I recommend

Enhancement Check

Hello, is there any possibility for a check whether all entities are already enhanced within a jar ... .SignedType. So you can check if an entity classes is OEM enhanced by: MyEntityClass instanceof com ... checks . support Support Hello again, build 2.7.6_03 fixes the issue. Thank you very much for your help

Option or strategy to disable/skip runtime enhancement checks (to improve load time)?

On startup of a Maven-based web app there is verbose logging of object checking ... layer. For example, it is checking whether PrimeFaces JSF toolkit classes are enhanced. I am using Maven-based compile-time enhancement applied to entity modules (only), so I know these checks

Check for index existence ?

Hello, Is there a simple way to check if indexes specified in entities are well taken into account ... ? If you do, set the server configuration and check the server logs (queries are executed on the server ... that specific configuration file. Check the location of the objectdb.conf file, the location

License Activation Change and Checking Activation

with either the WIFI adapter enabled or disabled. You can check whether ObjectDB is activated or not ... You are right. This hidden (and undocumented) feature was implemented for a specific check in embedded mode. In client server mode it didn't work well, because it checks activation on the client

Dirty checking

) so you can check if an entity object is dirty using the static JDOHelper.isDeleted method. support Support  You may also use JDO methods (even if your application uses JPA) so you can check if an entity ... of this forum thread ("Dirty checking "). support Support ok, thanks, there are 'embedded' objects

UserException: Invalid configuration in 'internal' - Check permissions

.UserException: Invalid configuration in 'internal' - Check permissions. : Is there any way to change ... : Invalid configuration in 'internal' - Check permissions. at com.objectdb.o.MSG.d(MSG.java:74 ... in 'internal' - Check permissions. at com.objectdb.o.MSG.d(MSG.java:74) at com.objectdb.o.CFG. (CFG

Memory Leaks after COMMIT operation (checked on versions 2.6.5 & 2.6.6.b01)

above (write a 10-15 Mbytes) need to check remaining memory in any available profiler. Stack trace ... they can be released by the GC. Since all the persisted objects are in one large collection, aDataKeys , please check

How to check if an entity exists in a Database without loading it?

Hi, I am trying to speed up some code - where i check if an entity exists in order to make a decision. In Java - It looks like this (pk - is the primary key of the entity): MyClass find = em.find(MyClass.class, pk); boolean exists = find != null; Is there a way to check the existence

How to check if the classes were enhanced correctly with valid OEM license?

Hello, is there a way/tool how to check whether build classes were enhanced with valid OEM license? Scenario: 1) Build and enhance Java application with some Object DB license key. 2) Pick ... , etc.) Thank you. Maruta M Sedlakova To check if class MyEntity is enhanced using the OEM Enhancer use

How to check that ObjectDb licenses are activated?

Hi Support, I have added license keys to objectDb.conf file and according to https://www.objectdb.com/forum/1384 I tried to check the activation status using following code EntityManagerFactory emf ... could be checked license status? Harman Alexander Golyshkin Are you sure version 2.8.4 is different from

Collections in JPQL and Criteria Queries

The IS [NOT] EMPTY operator checks whether a specified collection is empty or not. For example: c.languages ... to the number of languages in that collection. [NOT] MEMBER [OF] The [NOT] MEMBER OF operator checks ... an additional method for checking  if a specified element is contained in a collection. JPA

Database Explorer

range. Check [Disable Cache] to bypass query program and result caches. Click the Execute button ... execution plan. This is useful, for example, for checking which indexes are used. The Reset button clears ... at startup] check box specifies whether or not to open the last opened database when the Explorer starts

Retrieving JPA Entity Objects

is available in objects that are detached. JPA 2 introduces methods for checking if a specified entity object ... getPersistenceUtil method. It provides two isLoaded methods - one for checking an entity object and the other for checking a persistent field of an entity object. Retrieval by Query The most flexible

Database Management Settings

is slower and the recording files are much larger when "all" is used. The element The version- check ... ; version- check  attribute to false . The element The element specifies miscellaneous database

Strings in JPQL and Criteria Queries

. LIKE - String Pattern Matching with Wildcards The [NOT] LIKE operator checks if a specified string ... is always the string to check for a match (usually a path expression) and the right operand is always the pattern

JPA Metamodel API

= entityType. getSupertype (); // Checks if the type has a single ID attribute: boolean hasSingleId ... ;inherited: SingularAttribute id2 =   entityType. getDeclaredId (Long.class); // Checks

Locking in JPA

that has to be updated or deleted is checked . An exception is thrown if it is found out that an update ... a version field . During commit (and flush ), ObjectDB checks every database object that has to be updated

JPA Class Enhancer

is checked and automatically enhanced in memory (if applicable). Notice, however, that only classes

Defining a JPA Entity Class

(except that all JPA exceptions are unchecked whereas Java IO exceptions are checked ). Persistent Fields in

Database Doctor

The ObjectDB Doctor tool provides two related services: Diagnosis and validation of an ObjectDB database file Checks a given ObjectDB database file, verifies that it is healthy and valid, and if the file is not valid (it is corrupted), produces a detailed diagnosis report of all the errors. Repair

Query Parameters in JPA

a set ( getParameters ), and a method for checking if a specified parameter has a value ( isBound

Shared (L2) Entity Cache

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

Comparison in JPQL and Criteria API

unknown, i.e. to NULL . IS [NOT] NULL To check for NULL using standard JPQL you can use the special

Paths and Types in JPQL and Criteria API

. For example, the following criteria expression checks if the type of a specified entity e is not 

Working with JPA Entity Objects

references or soft references instead of weak references . The contains method can check if a specified

How to check what is taking most space in DB file

How to check what is taking most space in DB file

javax.persistence.EntityManager

;entity) Check if the instance is a managed entity instance belonging to the current persistence ... provider must perform optimistic version checks when obtaining the database lock. If these checks fail ... other than NONE is specified OptimisticLockException - if the optimistic version check fails

[ODB1] Chapter 9 - ObjectDB Explorer

of check boxes contains the following options: Whether or not to open the last locally opened ... of a class. The "Display" group of check boxes contains the following options: Default viewer window ... using SSL. The settings in this page are used only when the "Use SSL" check box in the "Open Remote

Spring MVC JPA Tutorial - IntelliJ Project

+F10 ). If the browser fails to open check the settings at  File Settings Web Browsers .

Step 1: Create a Maven Web Project

the project node and checking that the  Run As Run on Server command is available

Step 7: Run the Spring Web App

. To install a new server check the Manually define a new server radio button (after Run As Run on Server

Step 3: Create an ObjectDB Data Source

the Test Connection button to check the connection url: Click the Finish button to complete the creation

JPA Web App Tutorial - IntelliJ Project

at the toolbar and click the green run icon (or Shift+F10 ). If the browser fails to open check the settings at File Settings Web Browsers .

Java EE 6 JPA Tutorial - IntelliJ Project

and click the green run icon (or  Shift+F10 ). If the browser fails to open check the settings at  File Settings Web Browsers .

EntityManager.lock(entity,lockMode,properties) - JPA Method

attribute, the persistence provider must also perform optimistic version checks when obtaining the database lock. If these checks fail, the OptimisticLockException will be thrown. If the lock mode type ... locking is performed OptimisticLockException - if the optimistic version check fails

EntityManager.lock(entity,lockMode) - JPA Method

checks when obtaining the database lock. If these checks fail, the OptimisticLockException ... locking is performed OptimisticLockException - if the optimistic version check fails

EntityManager.find(entityClass,primaryKey,lockMode) - JPA Method

version checks when obtaining the database lock. If these checks fail, the OptimisticLockException ... OptimisticLockException - if the optimistic version check fails PessimisticLockException - if pessimistic locking

EntityManager.find(entityClass,primaryKey,lockMode,properties) - JPA Method

has a version attribute, the persistence provider must perform optimistic version checks when obtaining the database lock. If these checks fail, the OptimisticLockException will be thrown. If the lock ... OptimisticLockException - if the optimistic version check fails PessimisticLockException - if pessimistic

[ODB1] Chapter 8 - ObjectDB Server

to the configuration file is not explicitly specified when starting the server, default paths are checked . A valid ... how often (in seconds) the server checks the configuration file for changes. For instance, a value of 30 (as specified above) indicates a check every 30 seconds. If a change is found, the new

[ODB1] Chapter 5 - JDO Connections

checking . Username and password are optional in a client server connection only when the server ... block (unlike code working with files and I/O, for example, in which handling a checked exception

[ODB1] Chapter 2 - A Quick Tour

// Check the arguments: 11 if (args.length != 3) 12 { 13 System.out.println( 14 "Usage: java Main

[ODB1] Chapter 7 - JDOQL Queries

(); Collection result = (Collection)query.execute(); The compile() method checks the syntax

[ODB1] Chapter 4 - JDO Metadata

queries will check reference equality (as == operator in Java) and not value equality (as the equals

javax.jdo.spi.JDOImplHelper

manager, only the call to get an instance is checked . Once an implementation has an instance, any of the methods can be invoked without security checks . Since: JDO 1.0 Public Methods void ... instance. Parameters: pc - the instance to be checked sibr - the method object that delegates

JDOImplHelper.checkAuthorizedStateManager(sm) - JDO Static Method

; StateManager  sm ) Check that the parameter instance is of a class that is authorized ... is checked , and if not present, a regular permission check is made. The regular permission check ... for JDOPermission("setStateManager"). Parameters: sm - an instance of StateManager whose class is to be checked . Since: JDO 1.0

javax.jdo.spi.JDOPermission

checking . Since: JDO 1.0 GET_METADATA An instance of JDOPermission to be used for getMetadata permission checking . Since: JDO 1.0 MANAGE_METADATA An instance of JDOPermission to be used for manageMetadata permission checking . Since: JDO 1.0 SET_STATE_MANAGER An instance of JDOPermission to be used

javax.jdo.PersistenceManagerFactory

this PersistenceManagerFactory. Check for JDOPermission("closePersistenceManagerFactory") and if not authorized, throw SecurityException. If the authorization check succeeds, check

PersistenceManagerFactory.close() - JDO Method

JDO Method in javax.jdo.PersistenceManagerFactory void close () Close this PersistenceManagerFactory. Check for JDOPermission("closePersistenceManagerFactory") and if not authorized, throw SecurityException. If the authorization check succeeds, check to see that all PersistenceManager instances

javax.jdo.PersistenceManager

the consistency check . No datastore resources acquired during the execution of this method are held ... the instance dirty. No consistency checking is done during makePersistent of detached instances. If consistency checking is required by the application, then flush or checkConsistency should be called