View RSS Feed

JDO

Java Data Objects

  1. Java Data Object (basics)

    by , 11-21-2011 at 04:42 PM (My Java Tips)
    Java Data Object (JDO) can be used to build an application that creates, reads, updates, and deletes persistent instances of Java classes. These objects can be persisted on to relation database, object oriented database or on to XML files. This depends on the implementation of JDO you are using.

    One needs to get the basics before starting working with JDO. Once you have the basics, you can map java objects to the data source transparently.

    JDO allows you to map your ...
    Categories
    JDO
  2. JDO Ė Byte Code Enhancement

    by , 11-21-2011 at 04:39 PM (My Java Tips)
    In order to store instances of a class into data store, a class has to be persistence capable. There are different ways to make a class persistence capable. One of the way is Byte Code Enhancement.


    When a Java class is compiled, a class file is generated. It contains the byte code. To make a class persistence capable, some extra code will surely be added to our source. In order to make the process transparent, byte code modification can be done. So this works even, if you donít have ...
  3. @SuppressWarnings annotation

    by , 11-21-2011 at 04:34 PM (My Java Tips)
    In this post, I will be talking briefly about SuppressWarnings annotation.


    Java compiler gives you warnings to assure that you know what is happening. Sometimes, you want donít want the warnings. Java 5.0 provides a way for this.

    One had to use SuppressWarnings annotation to ignore the warnings. Annotations are followed by @.

    For example: consider the following code:
    Java Code:
    int a;
    Object object = new Object();
    I declared two variables ...