ObjectDB Database Search
1-50 of 200 resultsDatabase Schema Evolution of an entity class are detected by ObjectDB. New entity objects have to be stored in the new class ... , have to be converted to the new schema. Note: In client-server mode the ObjectDB server must be restarted ... object is only updated to the new schema when that entity object is stored to the database | |
Database Explorer is a descendant of itself in the tree). To open a new viewer window either write a query in the [Query ... ). You can open a new viewer window using the Window Open Tree Window and Window Open Table ... of databases but it can also function as an editor. New Entity Objects To construct new entity objects | |
Schema Update - will create new , separate persistable classes with no instances. Therefore, you should backup ... ... ... A element has two roles: If the optional new -name attribute is specified, the package name is changed from the original name, which is specified by the required name attribute, to the new name | |
Retrieving JPA Entity Objects entity object is not found in the persistence context a new object is constructed and filled with data that is retrieved from the database (or from the L2 cache - if enabled). The new entity object ... . Notice that construction of a new managed object during retrieval uses the no-arg constructor | |
Storing JPA Entity Objects New entity objects can be stored in the database either explicitly by invoking the persist method ... an instance of the Employee entity class in the database: Employee employee = new Employee("Samuel ... is New . An explicit call to persist associates the object with an owner EntityManager em and changes | |
Database Management Settings attribute specifies the initial size of every new database file. The resize attribute specifies ... is reached - new requests are pending until previous requests are completed. The optimal number ... indexes are handled. When a new index is defined for an existing entity class that already has instances | |
Database Doctor of a corrupted ObjectDB database file Repairs a corrupted ObjectDB database file by creating a new ... to the new database file. Corrupted Database Files Database files may be damaged and become corrupted ... two command line arguments: $ java -cp objectdb.jar com.objectdb.Doctor old.odb new .odb The first argument | |
Shared (L2) Entity Cache to the shared cache. On commit - new and modified entity objects are added to the shared cache. JPA ... " property specifies if new data should be added to the cache on commit and on retrieval. The property ... . BYPASS - cache is not updated with new data. CacheStoreMode . USE - new data is stored in the cache | |
Eclipse Public License - v 1.0 reserves the right to publish new versions (including revisions) of this Agreement from time to time ... the Agreement Steward to a suitable separate entity. Each new version of the Agreement ... subject to the version of the Agreement under which it was received. In addition, after a new version | |
Query Parameters in JPA with different parameter values (arguments) is more efficient than using a new query string for every query ... a parameter for the queried name, the new method embeds the name as a String literal ... its own query compilation, which is very inefficient. On the other hand, when using parameters, even if a new | |
BIRT/ODA ObjectDB Driver Developers extension. To install it: Open the [Install] dialog box by selecting Help Install New Software ... the [ New Data Source] dialog box by right clicking the Data Sources node in the [Data Explorer] window and selecting New Data Source . Select ObjectDB Data Source from the list of available | |
Locking in JPA object. The initial version of a new entity object (when it is stored in the database for the first ... - using the createEntityManagerFacotory method: Map properties = new HashMap();   ... ); For an EntityManager - using the createEntityManager method: Map properties = new HashMap | |
SELECT clause (JPQL / Criteria API) is specified in a NEW expression, as follows: SELECT NEW example.CountryAndCapital(c.name, c.capital.name ... = "SELECT NEW example.CountryAndCapital(c.name, c.capital.name) " + "FROM Country AS c"; TypedQuery query ... objects are created in the NEW state , which means that they are not managed. Such entity objects | |
Step 2: Entity Class and Persistence Unit the [ New Java Class] dialog box, e.g. by right clicking the project node (in the [Package Explorer] window) and selecting New Class . Enter guest as the package name - use exactly that case ... class name. Click Finish to create the new class. A new class that should represent Guest | |
Step 2: Entity Class and Persistence Unit the project node (in the [Package Explorer] window), select New Source Folder , enter src/main/java as Folder Name and click Finish . Open the [ New Java Class] dialog box, e.g. by right clicking the new source directory node (in the [Package Explorer] window) and selecting  | |
javax.jdo.ObjectState.PERSISTENT_NEW JDO Enum Constant in javax.jdo.ObjectState PERSISTENT_ NEW Since: JDO 1.0 | |
javax.jdo.ObjectState.PERSISTENT_NEW_DELETED JDO Enum Constant in javax.jdo.ObjectState PERSISTENT_ NEW _DELETED Since: JDO 1.0 | |
javax.jdo.annotations.InheritanceStrategy.NEW_TABLE JDO Enum Constant in javax.jdo.annotations.InheritanceStrategy NEW _TABLE Since: JDO 2.1 | |
Step 4: Add a Controller Class In this step we will add a Spring Controller to manage guestbook web requests: Open the [ New Java ... New Java Class ... Enter GuestController as the class name - use exactly that case sensitive class name. The Package should be guest. Click Finish to create the new Spring Controller class. Now | |
Step 4: Add a Controller Class In this step we will add a Spring Controller to manage guestbook web requests: Open the [ New Java ... ) and selecting New Class . The package name should be guest . Enter GuestController as ... the new Spring Controller class. Now replace the content of the new source file with the following code | |
Step 4: Add a Servlet Class In this step we will add a servlet to manage guestbook web requests: Open the [ New Servlet] dialog box by right clicking the guest package node (in the [Projects] window) and selecting New Servlet ... package name should be guest. Click Finish to create the new servlet class. Now replace the content | |
Step 4: Add a Servlet Class In this step we will add a servlet to manage guestbook web requests: Open the [ New Servlet] dialog box by right clicking the guest package node (in the [Projects] window) and selecting New Servlet ... package name should be guest. Click Finish to create the new servlet class. Now replace the content | |
Step 2: Entity Class and Persistence Unit the [ New Entity Class] dialog box, e.g. by right clicking the project node (in the [Projects] window) and selecting New Entity Class ... (or New Other... Persistence Entity Class and clicking Next ). Enter ... - use exactly that case sensitive package name. Click Next to create the new entity class. In | |
Step 2: Entity Class and Persistence Unit the [ New Entity Class] dialog box, e.g. by right clicking the project node (in the [Projects] window) and selecting New Entity Class ... (or New Other... Persistence Entity Class and clicking ... as the package name - use exactly that case sensitive package name. Click Next to create the new | |
Step 2: Define a JPA Entity Class the [ New Java Class] dialog box, e.g. by right clicking the project node (in the [Package Explorer] window) and selecting New Class . Enter guest as the package name - use exactly that case sensitive package ... to create the new class. The new class should represent Guest objects in the database. Use copy | |
Step 4: Add a Servlet Class New Other... Web Servlet and clicking Next . The Java package name should be guest ... to create the new servlet class. Now replace the content of the new source file with the following code ... a new guest (if any): String name = request.getParameter("name"); if (name != null) { em | |
Step 4: Add a Servlet Class; New Other... Web Servlet and clicking Next . The Java package name should be guest. Enter ... the new servlet class. Now replace the content of the new source file with the following code: package ... a new guest: String name = request.getParameter("name"); if (name != null) guestDao.persist( new | |
[ODB1] Chapter 9 - ObjectDB Explorer to browse databases, execute JDOQL queries, create new databases and edit the content of existing ... a new viewer window, first select a target element: Select a persistent class in the "Class" tabbed ... to explore it in a new viewer window. When the target element is selected, you can open a new viewer | |
Step 1: Create a Web Project We start by creating a new Eclipse Dynamic Web Project: Open the [ New Project] dialog box, e.g. by using File New Project... Select Web Dynamic Web Project and click Next . Choose a Project Name (e ... as a new server by clicking the New Runtime... button . Follow the instructions and specify the path | |
Step 2: Define a JPA Entity Class the [ New Java Class] dialog box, e.g. by right clicking the project node (in the [Projects] window) and selecting New Java Class ... Enter Guest as the class name - use exactly that case sensitive class name ... to create the new class. Use copy and paste to replace the new source file content with the following | |
Step 3: Define an EJB Session Bean that we will define in this step: Open the [ New Session Bean] dialog box by right clicking the guest package node (in the [Projects] window), selecting New Other... Java EE (or Enterprise JavaBeans) Session ... name. The Java package name should be guest. Click Finish to create the new session bean (EJB | |
Step 3: Define an EJB Session Bean that we will define in this step: Open the [ New Java Class] dialog box by right clicking the guest package node (in the [Package Explorer] window) and selecting New Class . The package name should be guest ... to create the new session bean (EJB) class. Now replace the content of the new source file | |
Step 3: Define a Spring DAO Component) that we will define in this step as a Spring MVC component: Open the [ New Java Class] dialog box by right clicking the guest package node (in the [Projects] window under Source Packages) and selecting New ... name. The Package should be guest. Click Finish to create the new DAO Spring component class. Now | |
Step 3: Define a Spring DAO Component) that we will define in this step as a Spring MVC component: Open the [ New Java Class] dialog box by right clicking the guest package node (in the [Package Explorer] window) and selecting New Class ... that case sensitive class name. Click Finish to create the new DAO Spring component class. Now | |
Step 1: Create a Java Project We start by creating a new Java project, using: File New Project... If you are using Eclipse IDE for Java EE Developers, you can see in the [ New ] menu a command for creating a [JPA Project]. We are not using that type of project in this tutorial but rather an ordinary Java Project. In the [ New | |
Step 2: Define a JPA Entity Class the [ New Java Class] dialog box, e.g. by right clicking the tutorial package node (in the [Projects] window) and selecting New Java Class ... Enter Point as the class name - use exactly that case sensitive class name. The package name should be tutorial . Click Finish to create the new class. Use copy | |
Step 1: Create a Java EE 6 Web Project We start by creating a new Java EE dynamic web project in Eclipse: Open the [ New Project] dialog box, e.g. by using File New Project... Select Web Dynamic Web Project and click Next . Choose ... runtime. Note: You may have to add GlassFish 3 as a new server by clicking the New Runtime... button | |
Step 1: Create a Maven Web Project We start by creating a new Maven-WTP dynamic web project in Eclipse: Open the [ New Project] dialog box, e.g. by using File New Project... Select Maven Maven Project and click  ... of the new created project is contained in a pom.xml file that was created in the project main | |
[ODB1] Chapter 2 - A Quick Tour - construct and store a new list: 24 list = new ArrayList(); 25 Utilities.bind(pm, list, "Hello World"); 26 } 27 28 // Add a new string to the persistent list: 29 list.add("Hello World " + list.size()); 30 31 ... file does not exist in that path, a new database file is created automatically. To enable updating | |
[ODB1] Chapter 3 - Persistent Classes support for additional types is to define new persistent classes. For example, the class java.awt.Image is not supported by JDO. You can store images in byte[] fields or you can define a new persistent ... /*.class [ObjectDB Enhancer] 2 new persistence capable classes have been enhanced. [ObjectDB Enhancer] 1 | |
[ODB1] Chapter 6 - Persistent Objects When a new object is constructed by the new operator, it always starts as a transient object, regardless ... the following code: pm.currentTransaction().begin(); Person person = new Person("George", "Bush"); Address address = new Address("White House"); person.setAddress(address); pm.makePersistent(person); pm | |
Step 1: Create a Java Project We start by creating a new NetBeans Project: Open the [ New Project] dialog box, e.g. by using File New Project... Select Java Java Application and click Next . Choose a Project Name (e.g. Tutorial ... of the ObjectDB installation directory and click Open . Now you should have a new NetBeans project | |
Step 3: Add a Context Listener Class down), by closing the EntityManagerFactory . To register a ServletContextListener : Open the [ New File] dialog box by right clicking the guest package node (in the [Projects] window) and selecting New ... to create the new listener class. Now replace the content of the new source file with the following | |
Step 5: Add a JSP Page In this step we will add the JSP that generates the guestbook page output: Open the [ New JSP File] dialog box by right clicking the Web Pages node (in the [Projects] window) and selecting New JSP ... to create the new JSP file. Now replace the content of the new jsp file with the following content: JPA | |
Step 1: Create a Web Project We start by creating a new NetBeans Web Application Project: Open the [ New Project] dialog box, e.g. by using File New Project... Select Java Web Web Application and click Next . Choose a Project ... : You may have to add Tomcat 6 as a new server by clicking the Add... button . Follow the instructions and specify | |
Step 5: Add a JSP Page In this step we will add the JSP that generates the guestbook page output: Open the [ New JSP File ... New Other... Web JSP File and clicking Next . Enter guest as the jsp file name - use exactly that case sensitive class name. Click Finish to create the new JSP file. Now replace the content | |
Step 3: Add a Context Listener Class closing the EntityManagerFactory . To register a ServletContextListener : Open the [ New Listener] dialog box by right clicking the guest package node (in the [Package Explorer] window), selecting New ... All to enable the Finish button. Click Finish to create the new listener class. Now replace the content | |
Step 5: Add a JSP Page In this step we will add the JSP that generates the guestbook page output: Open the [ New JSP File] dialog box by right clicking the Web Pages node (in the [Projects] window) and selecting New JSP ... to create the new JSP file. Now replace the content of the new jsp file with the following content: JPA | |
[ODB1] Chapter 5 - JDO Connections is the same for both new database connections and database connections obtained from a pool ... .util.Properties; import javax.jdo.*; : : Properties properties = new Properties(); properties ... ( ... ) static method constructs and returns a new PersistenceManagerFactory instance, based on the specified | |
[ODB1] Chapter 8 - ObjectDB Server is listening for new connections is specified in the configuration file (as explained in section 8.2 ... . Therefore, you may need a new command window for the stop and restart commands. The –conf and –port commands ... edit this file directly. Rather, you should copy it to the bin subdirectory and then edit the new |