Internal Website Search
1-50 of 200 resultsObjectDB Object Database Features Databases are also supported by ObjectDB. The combination of Object Database features ... . Up to 9,223,372,036,854,775,808 entity objects per database file. Unlimited database connections ... database files (the ObjectDB Doctor ). Standard Persistence APIs ObjectDB is the only Object -Oriented | |
ObjectDB - JPA Object Database for Java solution. Using a relational database management system (RDBMS) to store and retrieve Java objects requires slow conversions between graphs of Java objects and flat database table rows. Object Relational ... with a database . ObjectDB is an extremely easy to use pure Java Object Database , which supports JPA | |
Is ObjectDB better than competing object databases?. However, you should consider the following points when doing your own objective comparison of object databases : ObjectDB is unique in supporting the standard APIs. It is the only object database with built in ... of the Java Data Objects (JDO) API than competing object databases . By using a standard API such as JPA | |
Retrieving JPA Entity Objects The Java Persistence API (JPA) provides various ways to retrieve objects from the database ... of the database . The persistence context serves as a cache of retrieved entity objects . If a requested ... with data that is retrieved from the database (or from the L2 cache - if enabled). The new entity object | |
Database Explorer of a single field in a single database object . This type of viewer is useful for viewing data of a simple ... models, is preferred. A Tree window displays objects as a tree. Every database object is represented ... provide easier navigation. Because every reference between two database objects is represented by | |
Working with JPA Entity Objects), which can represent physical objects in the database . Managing an ObjectDB Object Database using JPA ... database objects . Entity Object Life Cycle The life cycle of entity objects consists of four states ... the database . An entity object becomes Managed when it is persisted to the database | |
Storing JPA Entity Objects New entity objects can be stored in the database either explicitly by invoking the persist method ... its state to Managed. The new entity object is stored in the database when the transaction ... class. Only instances of entity classes can be stored in the database independently. Objects | |
Detached Entity Objects Detached entity objects are objects in a special state in which they are not managed by any EntityManager but still represent objects in the database . Compared to managed entity objects , detached ... the database unless modified detached objects are merged back into an EntityManager to become managed | |
Deleting JPA Entity Objects Existing entity objects can be deleted from the database either explicitly by invoking the remove ... an object from the database it has to first be retrieved (no matter which way) and then in an active ... object is physically deleted from the database when the transaction is committed. Embedded objects | |
Updating JPA Entity Objects Modifying existing entity objects that are stored in the database is based on transparent ... Once an entity object is retrieved from the database (no matter which way) it can simply be modified in memory ... (); The entity object is physically updated in the database when the transaction is committed | |
Database Management Settings The configuration element specifies back end ( database engine) settings that are relevant ... : The element The element specifies the database file and page size settings: The initial attribute specifies the initial size of every new database file. The resize attribute specifies | |
Obtaining a JPA Database Connection In JPA a database connection is represented by the EntityManager interface. Therefore, in order to manipulate an ObjectDB database we need an EntityManager instance. Operations that modify database ... of EntityManagerFactory that represents the relevant database and then we can use that factory instance | |
Database Schema Evolution entity class. This is done automatically in memory each time the entity object is loaded. The database object is only updated to the new schema when that entity object is stored to the database ... of an entity class are detected by ObjectDB. New entity objects have to be stored in the new class | |
CRUD Database Operations with JPA Given an EntityManager , em , that represents a JPA connection to the object database , we can use it to store, retrieve, update and delete database objects . Storing New Entity Objects The following code fragment stores 1,000 Point objects in the database : em. getTransaction (). begin | |
Is ObjectDB better than Object Relational Mapping (ORM)? As noted above, using ObjectDB instead of a relational database and ORM combination  ... of a relational database is mandatory (e.g. as a result of a customer request or when a new application is developed for an existing old relational database ). By using the Java Persistence API (JPA | |
Can I use ObjectDB to access a relational database? To access relational databases using the Java Persistence API (JPA) you will need an Object ... . The DataNucleus ORM implementation supports also the Java Data Objects (JDO) API. ObjectDB is a full featured standalone Object Database Management System (ODBMS) and not an ORM tool, so it is not intended and cannot be used to access other database management systems. | |
Is ObjectDB a NoSQL Database?, but they are easier to use in object oriented languages such as Java. In addition, unlike most other NoSQL databases ... ObjectDB is a unique NoSQL database . It doesn't have the known disadvantages and limitations ... ). Therefore, ObjectDB can be used in applications that cannot use conventional non ACID NoSQL databases because of a requirement for a very high level of consistency. | |
Database Connection using JPA A connection to a database is represented by an EntityManager instance, which also provides functionality for performing operations on a database . Many applications require multiple database ... database connection, using a separate EntityManager instance, for every HTTP request. The main role | |
Database Replication and Clustering, the same database is managed on multiple machines (nodes), possibly in different geographic locations ... master-slave replication, the master node manages the main (master) database , which supports Read / Write operations. The other (slave) nodes in the cluster manage identical copies of the same database | |
Database Doctor database file Checks a given ObjectDB database file, verifies that it is healthy and valid ... of a corrupted ObjectDB database file Repairs a corrupted ObjectDB database file by creating a new fresh database file and then copying all the recoverable data in the corrupted database file | |
Database Transaction Replayer can apply recorded database operations on a matching database backup (if available). This ability is useful for two different purposes: It enables recovery from a database failure by replaying ... & Recording Files When recording is enabled , ObjectDB maintains for every database file a recording | |
Database Server ObjectDB Server is a tool that manages ObjectDB databases in a separate dedicated process, making these databases accessible to client applications in other processes including ones on other remote ... are: The ability to access and use databases from different processes simultaneously. The ability to access | |
ObjectDB DatabaseAll about ObjectDB Database in Java/JPA database - explanations, examples, references, links and related information. | |
Chapter 5 - Database Tools and UtilitiesDescribes the ObjectDB object database tools - the Explorer, the Server, the Enhancer, the Doctor and the Replayer. | |
JPA Primary Key Every entity object that is stored in the database has a primary key. Once assigned, the primary key cannot be modified. It represents the entity object as long as it exists in the database . As an object database , ObjectDB supports implicit object IDs, so an explicitly defined primary key is not | |
Locking in JPA in ObjectDB (and in JPA) is always at the database object level, i.e. each database object is locked separately. Optimistic locking is applied on transaction commit. Any database object ... is being performed on an old version of a database object , for which another update has already been committed | |
FROM clause (JPQL / Criteria API) are query identification variables that iterate over all the database objects of a specific entity ... over all the Country objects in the database : SELECT c FROM Country AS c The AS keyword is optional ... is required when using multiple range variables. Iteration over about 1,000,000 database objects | |
SELECT clause (JPQL / Criteria API) for managed entity objects , including transparent navigation to other database objects , transparent update ... The ability to retrieve managed entity objects is a major advantage of JPQL. For example, the following query returns Country objects that become managed by the EntityManager em : TypedQuery query | |
JPA Entity Fields the @Transient annotation). Storing an entity object in the database does not store methods or code ... for every entity object . The initial version of a new entity object (when stored in the database ... that do not participate in persistence and their values are never stored in the database (similar | |
DELETE Queries in JPA/JPQL As explained in chapter 2 , entity objects can be deleted from the database by ... the database , but when executed, delete specified entity objects from the database . Removing entity objects from the database using a DELETE query may be slightly more efficient than retrieving entity objects | |
Defining a JPA Entity Class To be able to store Point objects in the database using JPA we need to define an entity class ... that is marked (annotated) as having the ability to represent objects in the database . Conceptually ... class, and accordingly, provides the ability to store Point objects in the database and retrieve | |
JPA Persistable Types class can only be stored in the database as embedded objects , i.e. as part of a containing entity ... The term persistable types refers to data types that can be used for storing data in the database ... can be stored in the database directly. Other persistable types can be embedded in entity classes as fields | |
[ODB1] Chapter 6 - Persistent Objects This chapter describes how to use ObjectDB to manage database objects . 6.1 Making ... . represents some database content, or a transient object , i.e. not related to any database . Storing Objects ... the assignment of names to objects in the database and the storing of instances of any persistent type | |
Running JPA Queries (with getResultList) The following query retrieves all the Country objects in the database . The query ... reflecting the number of Country objects in the database : TypedQuery query = em. createQuery ( "SELECT ... our expectation for a single object result might fail, depending on the database content. For example | |
Shared (L2) Entity Cache. If an entity object is not available also in the shared cache - it is retrieved from the database and added ... Every EntityManager owns a persistence context , which is a collection of all the entity objects ... an entity object that is already managed by the EntityManager returns the existing instance from | |
UPDATE SET Queries in JPA/JPQL, but when executed, update the content of specified entity objects in the database . Updating entity objects in the database using an UPDATE query may be slightly more efficient than retrieving entity objects ... Existing entity objects can be updated, as explained in chapter 2 , by: Retrieving | |
GROUP BY and HAVING clauses clause. When a GROUP BY clause exists in a JPQL query, database objects (or tuples of database objects ... over all the Country objects in the database . The GROUP BY clause groups these Country objects by ... properties of generated groups instead of individual objects and fields. The position of a GROUP BY | |
JPA Query Structure (JPQL / Criteria) rather than just field values from database tables, as with SQL. That makes JPQL more object oriented friendly ... Query The following query retrieves all the Country objects in the database : SELECT c FROM Country ... over objects in the database . A query variable that is bound to an entity class is referred to as a range | |
Paths and Types in JPQL and Criteria API to iterate over all the Country objects in the database . For a country with no capital city, such as ... returns the number of all the entity objects in the database , excluding Country entity objects ... are assigned as arguments. Path expressions that navigate from one object to another. Instances of user | |
JPA Lifecycle Events ). @PostPersist - after storing a new entity in the database (during commit or flush ). @PostLoad - after an entity has been retrieved from the database . @PreUpdate - when an entity is identified as modified by the EntityManager . @PostUpdate - after updating an entity in the database (during commit or flush | |
ObjectDB Overview The ObjectDB Object Database ObjectDB is a powerful Object -Oriented Database Management ... Database Key Features 100% pure Java Object -Oriented Database Management System (ODBMS). No proprietary ... , GlassFish, JBoss and Spring. See the ObjectDB Object Database Features for more details. | |
What is the Java Data Objects (JDO)? The Java Data Objects (JDO) is another standard for accessing persistent data in databases , using ... with both relational and object databases . JDO is supported by many object databases , including ObjectDB, and it is probably the most popular Java API for object databases today. | |
[ODB1] Chapter 9 - ObjectDB Explorer information about the database and the bottom sub window displays a list of root objects that the database contains (root objects are discussed in chapter 6 ). The "Query" window enables a user to execute ... of database objects . The Table window displays a collection of objects following the approach | |
[ODB1] Chapter 5 - JDO Connections storing, retrieving, updating and deleting database objects , are provided in the next chapter ... an automatic lock mechanism in order to prevent a database object from being modified by two different users ... transaction, on every retrieval of an object from the database a READ lock on that object | |
[ODB1] Chapter 2 - A Quick Tour object database , can simply store a memory data structure in the database as is. If the database is not ... ). An object bound to the database during an active transaction, is expected to be stored physically in the database when the transaction is committed (line 37). Note: Memory objects that represent database | |
[ODB1] Chapter 1 - About ObjectDB ObjectDB for Java/JDO is a powerful Object Database Management System (ODBMS) written entirely in ... of them. ObjectDB is an Object Database Developing object oriented applications with ObjectDB is easier and much more effective because the content of the database is application objects | |
[ODB1] Chapter 3 - Persistent Classes. Instances of these classes that represent objects in the database are called persistent objects or persistent instances . Objects that do not represent anything in the database (including instances ... ). 3.2 Persistent Fields and Types Storing a persistent object in the database does not | |
[ODB1] Chapter 4 - JDO Metadata, which are defined in the JDO specification, are ignored by ObjectDB if specified (as a pure object database , ObjectDB always uses datastore identity with its own object -id class). 4.3   ... object is retrieved from the database its fields are not ready yet. Only when the program accesses | |
[ODB1] Chapter 7 - JDOQL Queries There are various ways to retrieve objects from an ObjectDB database , as shown in section 6.3 ... SQL for RDBMS. It provides object retrieval from the database according to a specified selectioPlan ... . If the query compilation succeeds, the Extent of Person instances in the database is iterated object by | |
Which API should I use - JPA or JDO? databases is more important than general portability to both object and relational databases . JPA is designated to be used mainly with relational databases . ObjectDB is the only object database ... databases and it is probably the most popular Java API for object databases today. |