| Classes in this File | Line Coverage | Branch Coverage | Complexity | |||||||
| EOAccessGenericFaultHandler |
|
| 1.0;1 |
| 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.access; |
|
| 19 | ||
| 20 | import net.wotonomy.control.EOEditingContext; |
|
| 21 | import net.wotonomy.control.EOFaultHandler; |
|
| 22 | ||
| 23 | /** |
|
| 24 | * A generic fault handler for EOAccess. |
|
| 25 | * |
|
| 26 | * @author ezamudio@nasoft.com |
|
| 27 | * @author $Author: cgruber $ |
|
| 28 | * @version $Revision: 894 $ |
|
| 29 | */ |
|
| 30 | public abstract class EOAccessGenericFaultHandler extends EOFaultHandler { |
|
| 31 | ||
| 32 | protected EODatabaseContext _dbContext; |
|
| 33 | protected EOEditingContext _ec; |
|
| 34 | ||
| 35 | public EOAccessGenericFaultHandler() { |
|
| 36 | 0 | super(); |
| 37 | 0 | } |
| 38 | ||
| 39 | /* (non-Javadoc) |
|
| 40 | * @see net.wotonomy.control.EOFaultHandler#faultWillFire(java.lang.Object) |
|
| 41 | */ |
|
| 42 | public void faultWillFire(Object obj) { |
|
| 43 | // TODO Auto-generated method stub |
|
| 44 | ||
| 45 | 0 | } |
| 46 | ||
| 47 | protected void setContext(EODatabaseContext dbc, EOEditingContext ec) { |
|
| 48 | 0 | _dbContext = dbc; |
| 49 | 0 | _ec = ec; |
| 50 | 0 | } |
| 51 | ||
| 52 | public EODatabaseContext databaseContext() { |
|
| 53 | 0 | return _dbContext; |
| 54 | } |
|
| 55 | ||
| 56 | public EOEditingContext editingContext() { |
|
| 57 | 0 | return _ec; |
| 58 | } |
|
| 59 | ||
| 60 | } |
|
| 61 | /* |
|
| 62 | * $Log$ |
|
| 63 | * Revision 1.2 2006/02/16 16:47:14 cgruber |
|
| 64 | * Move some classes in to "internal" packages and re-work imports, etc. |
|
| 65 | * |
|
| 66 | * Also use UnsupportedOperationExceptions where appropriate, instead of WotonomyExceptions. |
|
| 67 | * |
|
| 68 | * Revision 1.1 2006/02/16 13:19:57 cgruber |
|
| 69 | * Check in all sources in eclipse-friendly maven-enabled packages. |
|
| 70 | * |
|
| 71 | * Revision 1.1 2003/08/19 19:53:20 chochos |
|
| 72 | * EOAccess fault handlers (still incomplete) |
|
| 73 | * |
|
| 74 | */ |
|
| 75 |