001 package org.apache.ojb.odmg.collections;
002
003 /* Copyright 2002-2005 The Apache Software Foundation
004 *
005 * Licensed under the Apache License, Version 2.0 (the "License");
006 * you may not use this file except in compliance with the License.
007 * You may obtain a copy of the License at
008 *
009 * http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017
018 import java.io.Serializable;
019
020 /**
021 * Encapsulates an DSet entry object.
022 *
023 * @version $Id: DSetEntry.java,v 1.1 2007-08-24 22:17:37 ewestfal Exp $
024 */
025 public class DSetEntry extends DListEntry implements Serializable
026 {
027 private static final long serialVersionUID = 6334656303221694908L;
028
029 /**
030 * DSetEntry constructor comment.
031 */
032 public DSetEntry()
033 {
034 super();
035 }
036
037 /**
038 * DSetEntry constructor comment.
039 * @param theDSet org.apache.ojb.server.collections.DListImpl
040 * @param theObject java.lang.Object
041 */
042 public DSetEntry(DSetImpl theDSet, Object theObject)
043 {
044 this.position = theDSet.size();
045 this.dlistId = theDSet.getId();
046 this.realSubject = theObject;
047 this.pbKey = getPBKey();
048 }
049 }