db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject cvs commit: db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests TestObjectCache.java TestQueryCustomizer.java
Date Sun, 28 Aug 2005 13:38:38 GMT
tomdz       2005/08/28 06:38:37

  Modified:    src/xdoclet/test/xdoclet/modules/ojb/tests
                        TestObjectCache.java TestQueryCustomizer.java
  Log:
  Fixed XDoclet-test implementations of ObjectCache and QueryCustomizer
  
  Revision  Changes    Path
  1.5       +47 -11    db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/TestObjectCache.java
  
  Index: TestObjectCache.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/TestObjectCache.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- TestObjectCache.java	11 Aug 2004 00:37:33 -0000	1.4
  +++ TestObjectCache.java	28 Aug 2005 13:38:37 -0000	1.5
  @@ -23,25 +23,61 @@
    */
   public class TestObjectCache implements ObjectCache
   {
  -    public void cache(Identity oid, Object obj)
  -    {
  +
  +    /* (non-Javadoc)
  +     * @see org.apache.ojb.broker.cache.ObjectCache#cache(org.apache.ojb.broker.Identity,
java.lang.Object)
  +     */
  +    public void cache(Identity oid, Object obj) {
  +        // TODO Auto-generated method stub
  +        
       }
   
  -    public void clear()
  -    {
  +    /* (non-Javadoc)
  +     * @see org.apache.ojb.broker.cache.ObjectCache#cacheIfNew(org.apache.ojb.broker.Identity,
java.lang.Object)
  +     */
  +    public boolean cacheIfNew(Identity oid, Object obj) {
  +        // TODO Auto-generated method stub
  +        return false;
       }
   
  -    public Object lookup(Identity oid)
  -    {
  +    /* (non-Javadoc)
  +     * @see org.apache.ojb.broker.cache.ObjectCache#clear()
  +     */
  +    public void clear() {
  +        // TODO Auto-generated method stub
  +        
  +    }
  +
  +    /* (non-Javadoc)
  +     * @see org.apache.ojb.broker.cache.ObjectCache#destroy()
  +     */
  +    public void destroy() {
  +        // TODO Auto-generated method stub
  +        
  +    }
  +
  +    /* (non-Javadoc)
  +     * @see org.apache.ojb.broker.cache.ObjectCache#getRegion()
  +     */
  +    public String getRegion() {
  +        // TODO Auto-generated method stub
           return null;
       }
   
  -    public void remove(Identity oid)
  -    {
  +    /* (non-Javadoc)
  +     * @see org.apache.ojb.broker.cache.ObjectCache#lookup(org.apache.ojb.broker.Identity)
  +     */
  +    public Object lookup(Identity oid) {
  +        // TODO Auto-generated method stub
  +        return null;
       }
   
  -    public boolean isShared()
  -    {
  -        return false;
  +    /* (non-Javadoc)
  +     * @see org.apache.ojb.broker.cache.ObjectCache#remove(org.apache.ojb.broker.Identity)
  +     */
  +    public void remove(Identity oid) {
  +        // TODO Auto-generated method stub
  +        
       }
  +
   }
  
  
  
  1.5       +36 -10    db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/TestQueryCustomizer.java
  
  Index: TestQueryCustomizer.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/xdoclet/test/xdoclet/modules/ojb/tests/TestQueryCustomizer.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- TestQueryCustomizer.java	14 Sep 2004 16:52:07 -0000	1.4
  +++ TestQueryCustomizer.java	28 Aug 2005 13:38:37 -0000	1.5
  @@ -15,6 +15,7 @@
    * limitations under the License.
    */
   
  +import java.util.Map;
   import java.util.Properties;
   
   import org.apache.ojb.broker.PersistenceBroker;
  @@ -28,27 +29,52 @@
    */
   public class TestQueryCustomizer implements QueryCustomizer
   {
  -    public Query customizeQuery(Object anObject, PersistenceBroker aBroker, CollectionDescriptor
aCod, QueryByCriteria aQuery)
  -    {
  +    /* (non-Javadoc)
  +     * @see org.apache.ojb.broker.accesslayer.QueryCustomizer#customizeQuery(java.lang.Object,
org.apache.ojb.broker.PersistenceBroker, org.apache.ojb.broker.metadata.CollectionDescriptor,
org.apache.ojb.broker.query.QueryByCriteria)
  +     */
  +    public Query customizeQuery(Object anObject, PersistenceBroker aBroker, CollectionDescriptor
aCod, QueryByCriteria aQuery) {
  +        // TODO Auto-generated method stub
           return null;
       }
   
  -    public void addAttribute(String attributeName, String attributeValue)
  -    {
  +    /* (non-Javadoc)
  +     * @see org.apache.ojb.broker.metadata.AttributeContainer#addAttribute(java.lang.String,
java.lang.String)
  +     */
  +    public void addAttribute(String attributeName, String attributeValue) {
  +        // TODO Auto-generated method stub
  +        
       }
   
  -    public String getAttribute(String attributeName, String defaultValue)
  -    {
  +    /* (non-Javadoc)
  +     * @see org.apache.ojb.broker.metadata.AttributeContainer#addAttributes(java.util.Map)
  +     */
  +    public void addAttributes(Map attributes) {
  +        // TODO Auto-generated method stub
  +        
  +    }
  +
  +    /* (non-Javadoc)
  +     * @see org.apache.ojb.broker.metadata.AttributeContainer#getAttribute(java.lang.String,
java.lang.String)
  +     */
  +    public String getAttribute(String attributeName, String defaultValue) {
  +        // TODO Auto-generated method stub
           return null;
       }
   
  -    public String getAttribute(String attributeName)
  -    {
  +    /* (non-Javadoc)
  +     * @see org.apache.ojb.broker.metadata.AttributeContainer#getAttribute(java.lang.String)
  +     */
  +    public String getAttribute(String attributeName) {
  +        // TODO Auto-generated method stub
           return null;
       }
   
  -    public Properties getAttributes()
  -    {
  +    /* (non-Javadoc)
  +     * @see org.apache.ojb.broker.metadata.AttributeContainer#getAttributes()
  +     */
  +    public Properties getAttributes() {
  +        // TODO Auto-generated method stub
           return null;
       }
  +
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message