ObjectDB ObjectDB

Internal Website Search

101-110 of 200 resultsRefresh
5

Auto Generated Values

a primary key for every new entity object. These generated values are unique at the database level ... also generates an automatic value during commit for every new entity object. The difference is that a separate ... and IDENTITY, the SEQUENCE strategy generates an automatic value as soon as a new entity object
5

Literals in JPQL and Criteria Queries

.literal("JPA"); // Date and Time literals: Expression<java.sql.Date> today = cb.literal(new java.sql.Date()); Expression<java.sql.Time> time = cb.literal(new java.sql.Time()); Expression<java.sql.Timestamp> now = cb.literal(new java.sql.Timestamp()); // Enum literal: Expression
5

Database Connection using JPA

, String> properties = new HashMap<String, String>();   properties.put("javax.persistence.jdbc.user ... not yet exist a new database file is created. When the application is finished using ... default user name and password have to be specified: Map<String, String> properties = new
5

ObjectDB Object Database Features

) Complete JDO 2 support (passed the JDO 2 TCK). Support for JDO 3 new features is in progress - see issue ... versioning. Class hierarchy changes are handled automatically. New added fields are handled ... executions. Result range settings (first, max) - for paging. Query Structure SELECT (including NEW
5

Working with JPA Entity Objects

: New, Managed, Removed and Detached. When an entity object is initially created its state is New. In ... , the owning EntityManager stores the new entity object to the database. More details on storing objects
4

JPA Lifecycle Events

specifies when the callback method is invoked: @PrePersist - before a new entity is persisted (added to the EntityManager). @PostPersist - after storing a new entity in the database (during commit or
1

Step 3: Add a Main Class

the database: Right click the tutorial package in the [Package Explorer] window and select New > Class ... void main(String[] args) { // Open a database connection // (create a new database ... (); for (int i = 0; i < 1000; i++) { Point p = new Point(i, i
1

Step 1: Create a Java EE Web Project

We start by creating a new Java EE 6 Web Application project in NetBeans: Open the [New Project] dialog box, e.g. by using File > New Project... Select Java Web > Web Application and click Next. Choose a Project Name (e.g. Guestbook) and click Next. Select GlassFish Server 3 (or above) and Java EE
1

Step 4: Create an ObjectDB Data Set

the [New Data Set] dialog box by right clicking the Data Sets node in the [Data Explorer] window and selecting New Data Set. Select the data source that was created in the previous step (e.g. ObjectDB ... and paste to enter the above query and click Finish. When the data set is created successfully - a new
0

javax.jdo.spi.StateManager

- the field number currentValue - the current value of the field Returns: the new value for the field ... instance field - the field number currentValue - the current value of the field Returns: the new ... Returns: the new value for the field Since: JDO 1.0 double getDoubleField( PersistenceCapable pc, int

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support