You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by br...@apache.org on 2003/01/19 13:25:58 UTC

cvs commit: jakarta-ojb/src/java/org/apache/ojb/broker/accesslayer LookupException.java MaterializationListener.java

brj         2003/01/19 04:25:58

  Modified:    src/java/org/apache/ojb/broker/accesslayer
                        LookupException.java MaterializationListener.java
  Log:
  cvs version keyword
  
  Revision  Changes    Path
  1.3       +55 -0     jakarta-ojb/src/java/org/apache/ojb/broker/accesslayer/LookupException.java
  
  Index: LookupException.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ojb/src/java/org/apache/ojb/broker/accesslayer/LookupException.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- LookupException.java	9 Sep 2002 23:31:20 -0000	1.2
  +++ LookupException.java	19 Jan 2003 12:25:58 -0000	1.3
  @@ -1,11 +1,66 @@
   package org.apache.ojb.broker.accesslayer;
   
  +/* ====================================================================
  + * The Apache Software License, Version 1.1
  + *
  + * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * reserved.
  + *
  + * Redistribution and use in source and binary forms, with or without
  + * modification, are permitted provided that the following conditions
  + * are met:
  + *
  + * 1. Redistributions of source code must retain the above copyright
  + *    notice, this list of conditions and the following disclaimer.
  + *
  + * 2. Redistributions in binary form must reproduce the above copyright
  + *    notice, this list of conditions and the following disclaimer in
  + *    the documentation and/or other materials provided with the
  + *    distribution.
  + *
  + * 3. The end-user documentation included with the redistribution,
  + *    if any, must include the following acknowledgment:
  + *       "This product includes software developed by the
  + *        Apache Software Foundation (http://www.apache.org/)."
  + *    Alternately, this acknowledgment may appear in the software itself,
  + *    if and wherever such third-party acknowledgments normally appear.
  + *
  + * 4. The names "Apache" and "Apache Software Foundation" and
  + *    "Apache ObjectRelationalBridge" must not be used to endorse or promote products
  + *    derived from this software without prior written permission. For
  + *    written permission, please contact apache@apache.org.
  + *
  + * 5. Products derived from this software may not be called "Apache",
  + *    "Apache ObjectRelationalBridge", nor may "Apache" appear in their name, without
  + *    prior written permission of the Apache Software Foundation.
  + *
  + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  + * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  + * SUCH DAMAGE.
  + * ====================================================================
  + *
  + * This software consists of voluntary contributions made by many
  + * individuals on behalf of the Apache Software Foundation.  For more
  + * information on the Apache Software Foundation, please see
  + * <http://www.apache.org/>.
  + */
  +
   import org.apache.ojb.broker.OJBException;
   
   /**
    * Thrown if a resource lookup failed.
    *
    * @author <a href="mailto:armin@codeAuLait.de">Armin Waibel</a>
  + * @version $Id$
    */
   public class LookupException extends OJBException
   {
  
  
  
  1.3       +31 -30    jakarta-ojb/src/java/org/apache/ojb/broker/accesslayer/MaterializationListener.java
  
  Index: MaterializationListener.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ojb/src/java/org/apache/ojb/broker/accesslayer/MaterializationListener.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MaterializationListener.java	17 Jun 2002 19:34:06 -0000	1.2
  +++ MaterializationListener.java	19 Jan 2003 12:25:58 -0000	1.3
  @@ -1,4 +1,4 @@
  -package org.apache.ojb.broker.accesslayer;
  +package org.apache.ojb.broker.accesslayer;
   
   /* ====================================================================
    * The Apache Software License, Version 1.1
  @@ -53,32 +53,33 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  -
  -import org.apache.ojb.broker.Identity;
  -
  -
  -/**
  - * This is a callback interface that allows interaction with the
  - * Materialization process of the IndirectionHandler
  - * The ODMG TransactionImpl implements this interface to
  - * provide a delayed registration mechanism for proxies.
  - * @author Thomas Mahler
  - */
  -public interface MaterializationListener
  -{
  -    /**
  -     *  this callback is invoked before an Object is materialized
  -     *  within an IndirectionHandler.
  -     *  @param handler the invoking handler
  -     *  @param oid the identity of the object to be materialized
  -     */
  -    public abstract void beforeMaterialization(IndirectionHandler handler, Identity oid);
  -
  -    /**
  -     *  this callback is invoked after an Object is materialized
  -     *  within an IndirectionHandler.
  -     *  @param handler the invoking handler
  -     *  @param materializedObject the materialized Object
  -     */
  -    public abstract void afterMaterialization(IndirectionHandler handler, Object materializedObject);
  -}
  +
  +import org.apache.ojb.broker.Identity;
  +
  +
  +/**
  + * This is a callback interface that allows interaction with the
  + * Materialization process of the IndirectionHandler
  + * The ODMG TransactionImpl implements this interface to
  + * provide a delayed registration mechanism for proxies.
  + * @author Thomas Mahler
  + * @version $Id$
  + */
  +public interface MaterializationListener
  +{
  +    /**
  +     *  this callback is invoked before an Object is materialized
  +     *  within an IndirectionHandler.
  +     *  @param handler the invoking handler
  +     *  @param oid the identity of the object to be materialized
  +     */
  +    public abstract void beforeMaterialization(IndirectionHandler handler, Identity oid);
  +
  +    /**
  +     *  this callback is invoked after an Object is materialized
  +     *  within an IndirectionHandler.
  +     *  @param handler the invoking handler
  +     *  @param materializedObject the materialized Object
  +     */
  +    public abstract void afterMaterialization(IndirectionHandler handler, Object materializedObject);
  +}