weaver      2004/07/09 11:21:43

  Added:       jetspeed-api/src/java/org/apache/jetspeed/components/persistence/store
                        UpdateAware.java
                        PersistenceStoreRuntimeExcpetion.java
                        RemovalAware.java
  Log:
  Implementation of JS2-92.
  
  Revision  Changes    Path
  1.1                  
jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/components/persistence/store/UpdateAware.java
  
  Index: UpdateAware.java
  ===================================================================
  /*
   * Copyright 2000-2001,2004 The Apache Software Foundation.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   * 
   *      http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  package org.apache.jetspeed.components.persistence.store;
  
  /**
   [EMAIL PROTECTED] <a href="mailto:[EMAIL PROTECTED]">Scott T. Weaver</a>
   *
   * Classes implementing this interface can specificy operations 
   * performed before and after update operations via the PersistenceStore.
   *
   */
  public interface UpdateAware
  {
      void preUpdate(PersistenceStore store);
      
      void postUpdate(PersistenceStore store);
  }
  
  
  
  1.1                  
jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/components/persistence/store/PersistenceStoreRuntimeExcpetion.java
  
  Index: PersistenceStoreRuntimeExcpetion.java
  ===================================================================
  /*
   * Copyright 2000-2001,2004 The Apache Software Foundation.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   * 
   *      http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  package org.apache.jetspeed.components.persistence.store;
  
  import org.apache.jetspeed.exception.JetspeedRuntimeException;
  
  /**
   * @author <a href="mailto:[EMAIL PROTECTED]">Scott T. Weaver</a>
   * 
   * Thrown when an unexpected problem arises while performing a 
   * persistence operation.
   *
   */
  public class PersistenceStoreRuntimeExcpetion extends JetspeedRuntimeException
  {
  
      /**
       * 
       */
      public PersistenceStoreRuntimeExcpetion()
      {
          super();
      }
  
      /**
       * @param message
       */
      public PersistenceStoreRuntimeExcpetion( String message )
      {
          super(message);
      }
  
      /**
       * @param nested
       */
      public PersistenceStoreRuntimeExcpetion( Throwable nested )
      {
          super(nested);
      }
  
      /**
       * @param msg
       * @param nested
       */
      public PersistenceStoreRuntimeExcpetion( String msg, Throwable nested )
      {
          super(msg, nested);
      }
  
  }
  
  
  
  1.1                  
jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/components/persistence/store/RemovalAware.java
  
  Index: RemovalAware.java
  ===================================================================
  /*
   * Copyright 2000-2001,2004 The Apache Software Foundation.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   * 
   *      http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  package org.apache.jetspeed.components.persistence.store;
  
  /**
   [EMAIL PROTECTED] <a href="mailto:[EMAIL PROTECTED]">Scott T. Weaver</a>
   *
   * Classes implementing this interface can specificy operations 
   * performed before and after removal operations via the PersistenceStore.
   *
   */
  public interface RemovalAware
  {
      void preRemoval(PersistenceStore store);
      
      void postRemoval(PersistenceStore store);
  }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to