KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectstyle > cayenne > wocompat > EODbAttribute


1 package org.objectstyle.cayenne.wocompat;
2
3 import org.objectstyle.cayenne.map.DbAttribute;
4 import org.objectstyle.cayenne.map.DbEntity;
5
6 /* ====================================================================
7  *
8  * The ObjectStyle Group Software License, version 1.1
9  * ObjectStyle Group - http://objectstyle.org/
10  *
11  * Copyright (c) 2002-2005, Andrei (Andrus) Adamchik and individual authors
12  * of the software. All rights reserved.
13  *
14  * Redistribution and use in source and binary forms, with or without
15  * modification, are permitted provided that the following conditions
16  * are met:
17  *
18  * 1. Redistributions of source code must retain the above copyright
19  * notice, this list of conditions and the following disclaimer.
20  *
21  * 2. Redistributions in binary form must reproduce the above copyright
22  * notice, this list of conditions and the following disclaimer in
23  * the documentation and/or other materials provided with the
24  * distribution.
25  *
26  * 3. The end-user documentation included with the redistribution, if any,
27  * must include the following acknowlegement:
28  * "This product includes software developed by independent contributors
29  * and hosted on ObjectStyle Group web site (http://objectstyle.org/)."
30  * Alternately, this acknowlegement may appear in the software itself,
31  * if and wherever such third-party acknowlegements normally appear.
32  *
33  * 4. The names "ObjectStyle Group" and "Cayenne" must not be used to endorse
34  * or promote products derived from this software without prior written
35  * permission. For written permission, email
36  * "andrus at objectstyle dot org".
37  *
38  * 5. Products derived from this software may not be called "ObjectStyle"
39  * or "Cayenne", nor may "ObjectStyle" or "Cayenne" appear in their
40  * names without prior written permission.
41  *
42  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
43  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
44  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
45  * DISCLAIMED. IN NO EVENT SHALL THE OBJECTSTYLE GROUP OR
46  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
47  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
48  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
49  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
50  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
51  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
52  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
53  * SUCH DAMAGE.
54  * ====================================================================
55  *
56  * This software consists of voluntary contributions made by many
57  * individuals and hosted on ObjectStyle Group web site. For more
58  * information on the ObjectStyle Group, please see
59  * <http://objectstyle.org/>.
60  */

61
62 /**
63  * EOModel-friendly DbAttribute subclass.
64  *
65  * @since 1.2
66  */

67 public class EODbAttribute extends DbAttribute {
68
69     protected String JavaDoc eoAttributeName;
70
71     public EODbAttribute() {
72     }
73
74     public EODbAttribute(String JavaDoc name, int type, DbEntity entity) {
75         super(name, type, entity);
76     }
77
78     public String JavaDoc getEoAttributeName() {
79         return eoAttributeName;
80     }
81
82     public void setEoAttributeName(String JavaDoc eoAttributeName) {
83         this.eoAttributeName = eoAttributeName;
84     }
85 }
Popular Tags