01: /*
02: * $Id: AbstractCondition.java 881 2007-02-12 07:54:31Z hengels $
03: * (c) Copyright 2004 con:cern development team.
04: *
05: * This file is part of con:cern (http://concern.sf.net).
06: *
07: * con:cern is free software; you can redistribute it and/or modify
08: * it under the terms of the GNU Lesser General Public License
09: * as published by the Free Software Foundation; either version 2.1
10: * of the License, or (at your option) any later version.
11: *
12: * Please see COPYING for the complete licence.
13: */
14: package org.concern.controller;
15:
16: import org.concern.*;
17:
18: import java.util.List;
19: import java.util.Iterator;
20:
21: import org.hibernate.LockMode;
22: import org.hibernate.HibernateException;
23:
24: public abstract class AbstractCondition<S> extends AbstractNode
25: implements Condition<S> {
26: protected AbstractCondition() {
27: }
28:
29: protected AbstractCondition(String name) {
30: getEnvironment().put("condition.name", name);
31: }
32:
33: public final String getName() {
34: return (String) environment.get("condition.name");
35: }
36: }
|