commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From froehl...@apache.org
Subject cvs commit: jakarta-commons-sandbox/simplestore/src/java/org/apache/commons/simplestore/persistence Storage.java MetaClass.java
Date Mon, 11 Feb 2002 20:30:16 GMT
froehlich    02/02/11 12:30:16

  Modified:    simplestore/src/java/org/apache/commons/simplestore/persistence
                        Storage.java MetaClass.java
  Log:
  fixed imports and formating
  
  Revision  Changes    Path
  1.2       +2 -1      jakarta-commons-sandbox/simplestore/src/java/org/apache/commons/simplestore/persistence/Storage.java
  
  Index: Storage.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/simplestore/src/java/org/apache/commons/simplestore/persistence/Storage.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Storage.java	11 Feb 2002 20:23:30 -0000	1.1
  +++ Storage.java	11 Feb 2002 20:30:16 -0000	1.2
  @@ -55,12 +55,13 @@
   package org.apache.commons.simplestore.persistence;
   
   import org.apache.commons.simplestore.cache.Cache;
  +
   import java.util.Set;
   
   /**
    *@author     Juozas Baliuka <a href="mailto:baliuka@mwm.lt">
    *      baliuka@mwm.lt</a>
  - *@version    $Id: Storage.java,v 1.1 2002/02/11 20:23:30 froehlich Exp $
  + *@version    $Id: Storage.java,v 1.2 2002/02/11 20:30:16 froehlich Exp $
    */
   
   public interface Storage {
  
  
  
  1.2       +80 -62    jakarta-commons-sandbox/simplestore/src/java/org/apache/commons/simplestore/persistence/MetaClass.java
  
  Index: MetaClass.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/simplestore/src/java/org/apache/commons/simplestore/persistence/MetaClass.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MetaClass.java	11 Feb 2002 20:23:30 -0000	1.1
  +++ MetaClass.java	11 Feb 2002 20:30:16 -0000	1.2
  @@ -56,71 +56,89 @@
   
   import java.lang.reflect.Method;
   
  -/** Meta data
  - * @author Juozas Baliuka <a href="mailto:baliuka@mwm.lt">
  +/**
  + * Meta data
  + *
  + *@author     Juozas Baliuka <a href="mailto:baliuka@mwm.lt">
    *     baliuka@mwm.lt</a>
  - * @version $Id: MetaClass.java,v 1.1 2002/02/11 20:23:30 froehlich Exp $
  + *@version    $Id: MetaClass.java,v 1.2 2002/02/11 20:30:16 froehlich Exp $
    */
   
   public interface MetaClass {
  - 
  -    /** Returns Table name for DB storage
  -     * @return name in storage
  -     */    
  -  public  String getName();
  -  
  -  /** Factory method
  -   * @param clasz used defined interface Class
  -   * @return Meta data for class
  -   */  
  -  public MetaClass forClass( Class clasz );
  -  
  -  /** forClass(clasz).getPersitentClass().equals(clasz) must return true
  -   * @return User defined persitent class
  -   */  
  -  public Class getPersitentClass();
  -  
  -  /** returns index for property
  -   * @param method read or write method
  -   * @return index
  -   */  
  -  public int getPropertyIndex( Method method  );
  -  
  -  /** return field name for DB storage
  -   * @param index property index
  -   * @return field name
  -   */  
  -  public String getPropertyName( int index );
  -  
  -  /** Some jdbc type for DB storage
  -   * @param index property index
  -   * @return type
  -   */  
  -  public Class getPropertyType( int index );
  -  
  -  
  -  
  -  // public boolean isNotNull( int index ); validator ?
  -  
  -  // Validator getValidator( int index ); we can reuse something from commons
  -  
  -  /** Primary key fields
  -   * @return indexes for primary key fields
  -   */  
  -  public int [] getOIDPropreties();
  -  
  -  /** All foreign classes (Tables)
  -   * @return array of property index
  -   */  
  -  public MetaClass [] references();
  -  
  -  /** Index for foreign key property
  -   * @param ref reference meta class
  -   * @return property index
  -   */  
  -  public int getReferncePropertyIndex( MetaClass ref );
  -  
  -  
  -  
  +
  +    /**
  +     * Returns Table name for DB storage
  +     *
  +     *@return    name in storage
  +     */
  +    public String getName();
  +
  +    /**
  +     * Factory method
  +     *
  +     *@param  clasz  used defined interface Class
  +     *@return        Meta data for class
  +     */
  +    public MetaClass forClass(Class clasz);
  +
  +    /**
  +     * forClass(clasz).getPersitentClass().equals(clasz) must return true
  +     *
  +     *@return    User defined persitent class
  +     */
  +    public Class getPersitentClass();
  +
  +    /**
  +     * returns index for property
  +     *
  +     *@param  method  read or write method
  +     *@return         index
  +     */
  +    public int getPropertyIndex(Method method);
  +
  +    /**
  +     * return field name for DB storage
  +     *
  +     *@param  index  property index
  +     *@return        field name
  +     */
  +    public String getPropertyName(int index);
  +
  +    /**
  +     * Some jdbc type for DB storage
  +     *
  +     *@param  index  property index
  +     *@return        type
  +     */
  +    public Class getPropertyType(int index);
  +
  +
  +    // public boolean isNotNull( int index ); validator ?
  +
  +    // Validator getValidator( int index ); we can reuse something from commons
  +
  +    /**
  +     * Primary key fields
  +     *
  +     *@return    indexes for primary key fields
  +     */
  +    public int[] getOIDPropreties();
  +
  +    /**
  +     * All foreign classes (Tables)
  +     *
  +     *@return    array of property index
  +     */
  +    public MetaClass[] references();
  +
  +    /**
  +     * Index for foreign key property
  +     *
  +     *@param  ref  reference meta class
  +     *@return      property index
  +     */
  +    public int getReferncePropertyIndex(MetaClass ref);
  +
  +
   }
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message