org.apache.ojb.tutorials
Class ODMGExample
java.lang.Object
org.apache.ojb.tutorials.ODMGExample
- public class ODMGExample
- extends java.lang.Object
ODMG API Usage Examples for the ODMG Tutorial
- Version:
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ODMGExample
public ODMGExample()
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