org.apache.ojb.tutorials
Class ODMGExample

java.lang.Object
  extended byorg.apache.ojb.tutorials.ODMGExample

public class ODMGExample
extends java.lang.Object

ODMG API Usage Examples for the ODMG Tutorial

Version:

Constructor Summary
ODMGExample()
           
 
Method Summary
static void deleteProduct(Product product)
           
static Product findProductByName(java.lang.String name)
           
static void main(java.lang.String[] args)
           
static void persistChanges(Product product)
           
static void sellProduct(Product product, int number)
           
static void storeProduct(Product product)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ODMGExample

public ODMGExample()
Method Detail

storeProduct

public static void storeProduct(Product product)

findProductByName

public static Product findProductByName(java.lang.String name)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

sellProduct

public static void sellProduct(Product product,
                               int number)

deleteProduct

public static void deleteProduct(Product product)

persistChanges

public static void persistChanges(Product product)

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14