org.apache.ojb.tutorials
Class OTMExample

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

public class OTMExample
extends java.lang.Object


Constructor Summary
OTMExample()
           
 
Method Summary
 java.util.Iterator findByCriteria(Query query)
           
 java.util.Iterator findByCriteriaWithLock(Query query, int lock)
           
 java.util.Iterator findByOQL(java.lang.String query, java.lang.Object[] bindings)
           
 java.util.Iterator moreRealisticQueryByCriteria(Query query, int lock)
           
static void removeProduct(Product product)
           
 void renameWidgetExample()
           
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

OTMExample

public OTMExample()
Method Detail

storeProduct

public static void storeProduct(Product product)
                         throws LockingException
Throws:
LockingException

removeProduct

public static void removeProduct(Product product)
                          throws LockingException
Throws:
LockingException

findByCriteria

public java.util.Iterator findByCriteria(Query query)

findByCriteriaWithLock

public java.util.Iterator findByCriteriaWithLock(Query query,
                                                 int lock)

findByOQL

public java.util.Iterator findByOQL(java.lang.String query,
                                    java.lang.Object[] bindings)
                             throws java.lang.Exception
Throws:
java.lang.Exception

moreRealisticQueryByCriteria

public java.util.Iterator moreRealisticQueryByCriteria(Query query,
                                                       int lock)

renameWidgetExample

public void renameWidgetExample()


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