db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From quint...@apache.org
Subject cvs commit: jakarta-turbine-torque/src/java/org/apache/torque/om BaseObject.java
Date Tue, 28 Jan 2003 16:43:28 GMT
quintonm    2003/01/28 08:43:27

  Modified:    src/java/org/apache/torque/om BaseObject.java
  Log:
  setPrimaryKey() methods now throw TorqueException
  
  Revision  Changes    Path
  1.17      +9 -7      jakarta-turbine-torque/src/java/org/apache/torque/om/BaseObject.java
  
  Index: BaseObject.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-torque/src/java/org/apache/torque/om/BaseObject.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- BaseObject.java	9 Jan 2003 17:46:20 -0000	1.16
  +++ BaseObject.java	28 Jan 2003 16:43:27 -0000	1.17
  @@ -57,6 +57,8 @@
   import java.io.Serializable;
   import org.apache.log4j.Category;
   import org.apache.log4j.Logger;
  +import org.apache.torque.TorqueException;
  +
   import java.sql.Connection;
   
   /**
  @@ -158,11 +160,11 @@
        * Sets the PrimaryKey for the object.
        *
        * @param primaryKey The new PrimaryKey for the object.
  -     * @exception Exception This method will not throw any exceptions
  +     * @exception TorqueException This method will not throw any exceptions
        * but this allows for children to override the method more easily
        *
        */
  -    public void setPrimaryKey(String primaryKey) throws Exception
  +    public void setPrimaryKey(String primaryKey) throws TorqueException
       {
           this.primaryKey = new StringKey(primaryKey);
       }
  @@ -171,10 +173,10 @@
        * Sets the PrimaryKey for the object as an Object.
        *
        * @param primaryKey The new PrimaryKey for the object.
  -     * @exception Exception This method will not throw any exceptions
  +     * @exception TorqueException This method will not throw any exceptions
        * but this allows for children to override the method more easily
        */
  -    public void setPrimaryKey(SimpleKey[] primaryKey) throws Exception
  +    public void setPrimaryKey(SimpleKey[] primaryKey) throws TorqueException
       {
           this.primaryKey = new ComboKey(primaryKey);
       }
  @@ -183,10 +185,10 @@
        * Sets the PrimaryKey for the object as an Object.
        *
        * @param primaryKey The new PrimaryKey for the object.
  -     * @exception Exception This method will not throw any exceptions
  +     * @exception TorqueException This method will not throw any exceptions
        * but this allows for children to override the method more easily
        */
  -    public void setPrimaryKey(ObjectKey primaryKey) throws Exception
  +    public void setPrimaryKey(ObjectKey primaryKey) throws TorqueException
       {
           this.primaryKey = primaryKey;
       }
  
  
  

Mime
View raw message