ObjectDB ObjectDB

Internal Website Search

51-60 of 200 resultsRefresh
5

JPA Metamodel API

,String> strAttr1 = managedType.getAttribute("name"); // Get a specific attribute - excluding inherited: Attribute<MyClass,String> strAttr2 =   managedType.getDeclaredAttribute("name ... adds only one additional method for getting the entity name: String entityName = entityType
5

Posting Sample Code

{     public static void main(String[] args) {         EntityManagerFactory emf =             Persistence ... ();     }     @Entity     public static class MyEntity {         private String name;         MyEntity(String name) {             this.name = name;         }         @Override         public String
5

Collections in JPQL and Criteria Queries

: Expression<Collection<String>> languages = country.get("languages"); Expression<String> param = cb.parameter(String.class); // collection IS [NOT] EMPTY Predicate e1 = cb.isEmpty(languages
5

Defining a JPA Entity Class

; } // String Representation: @Override public String toString() { return String.format("(%d, %d)", this.x, this.y); } } As you can see above, an entity class
5

JPA Query API

Building queries by passing JPQL query strings directly to the createQuery method, as shown above, is referred to in JPA as dynamic query construction because the query string can be built dynamically ... on Java objects that represent query elements (replacing string based JPQL). JPA also provides a way
1

Step 2: Define a JPA Entity Class

; // Persistent Fields: @Id @GeneratedValue Long id; private String name; private Date signingDate; // Constructors: public Guest() { } public Guest(String name ... ()); } // String Representation: @Override public String toString() { return
0

javax.jdo.PersistenceManagerFactory

after close, then JDOUserException is thrown. Since: JDO 1.0.1 String getConnectionDriverName ... factory. Since: JDO 1.0 String getConnectionFactory2Name() Get the name for the second data store ... of the data store connection factory. Since: JDO 1.0 String getConnectionFactoryName() Get the name
0

javax.jdo.JDOEntityManager

: IllegalArgumentException - if not an entity Since: JPA 1.0 Query createNamedQuery(String name) Create an instance ... if the query string is found to be invalid Since: JPA 1.0 TypedQuery<T> createNamedQuery(String name, Class ... : IllegalArgumentException - if a query has not been defined with the given name or if the query string is found
0

[ODB1] Chapter 8 - ObjectDB Server

the connection URL string. 8.1 Running an ObjectDB Server The ObjectDB server is a pure Java application ... in the url connection string (as explained in section 5.1) when connecting to the database ... to the data directory. For instance, a url connection string "objectdb://localhost/my/db.odb" refers
0

[ODB1] Chapter 3 - Persistent Classes

and String. Selected classes in package java.util: Date, Locale, HashSet, TreeSet, ArrayList ... { public static void main(String[] args) { // Always start by calling the enhancer ... . The com.objectdb.Enhancer.enhance(...) static method accepts as an argument a string specifying

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