View Javadoc

1   /*
2    Wotonomy: OpenStep design patterns for pure Java applications.
3    Copyright (C) 2001 Michael Powers
4   
5    This library is free software; you can redistribute it and/or
6    modify it under the terms of the GNU Lesser General Public
7    License as published by the Free Software Foundation; either
8    version 2.1 of the License, or (at your option) any later version.
9   
10   This library is distributed in the hope that it will be useful,
11   but WITHOUT ANY WARRANTY; without even the implied warranty of
12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13   Lesser General Public License for more details.
14  
15   You should have received a copy of the GNU Lesser General Public
16   License along with this library; if not, see http://www.gnu.org
17   */
18  package net.wotonomy.jdbcadaptor;
19  
20  import net.wotonomy.access.EOAttribute;
21  import net.wotonomy.access.EOEntity;
22  import net.wotonomy.access.EOSQLExpression;
23  import net.wotonomy.foundation.NSDictionary;
24  import net.wotonomy.foundation.NSMutableDictionary;
25  
26  
27  /***
28  * Concrete implementation of EOSQLExpression for use with JDBC.
29  *
30  * @author ezamudio@nasoft.com
31  * @author $Author: cgruber $
32  * @version $Revision: 903 $
33  */
34  public class JDBCExpression extends EOSQLExpression {
35  
36  	protected NSDictionary _jdbcInfo;
37  
38  	/***
39  	 * @param entity
40  	 */
41  	public JDBCExpression(EOEntity entity) {
42  		super(entity);
43  	}
44  
45  	public void setJdbcInfo(NSDictionary info) {
46  		_jdbcInfo = info;
47  	}
48  	public NSDictionary jdbcInfo() {
49  		return _jdbcInfo;
50  	}
51  
52  	/* (non-Javadoc)
53  	 * @see net.wotonomy.access.EOSQLExpression#bindVariableDictionaryForAttribute(net.wotonomy.access.EOAttribute, java.lang.Object)
54  	 */
55  	public NSMutableDictionary bindVariableDictionaryForAttribute(
56  		EOAttribute attr, Object variable) {
57  		// TODO Auto-generated method stub
58  		return null;
59  	}
60  
61  }
62  /*
63   * $Log$
64   * Revision 1.2  2006/02/18 22:59:22  cgruber
65   * make it compile with maven dependencies and add a cvsignore.
66   *
67   * Revision 1.1  2006/02/16 13:22:23  cgruber
68   * Check in all sources in eclipse-friendly maven-enabled packages.
69   *
70   * Revision 1.1  2003/08/13 20:14:38  chochos
71   * subclass of EOSQLExpression. Still needs a lot of work for bindings, mostly.
72   *
73   */