001: /**
002: * Speedo: an implementation of JDO compliant personality on top of JORM generic
003: * I/O sub-system.
004: * Copyright (C) 2001-2004 France Telecom R&D
005: *
006: * This library is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public
008: * License as published by the Free Software Foundation; either
009: * version 2 of the License, or (at your option) any later version.
010: *
011: * This library is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * Lesser General Public License for more details.
015: *
016: * You should have received a copy of the GNU Lesser General Public
017: * License along with this library; if not, write to the Free Software
018: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
019: *
020: *
021: *
022: * Contact: speedo@objectweb.org
023: *
024: */package org.objectweb.speedo.mim.jdo.lib;
025:
026: import java.util.Collection;
027:
028: import javax.jdo.FetchPlan;
029:
030: import org.objectweb.speedo.mim.lib.SpeedoFetchPlan;
031:
032: /**
033: * @author Y.Bersihand
034: */
035: public class JDOFetchPlan extends SpeedoFetchPlan implements FetchPlan {
036:
037: public JDOFetchPlan() {
038: super ();
039: }
040:
041: public JDOFetchPlan(String fgName) {
042: super (fgName);
043: }
044:
045: /**
046: * Add a group into the fetch plan.
047: */
048: public FetchPlan addGroup(String fetchGroupName) {
049: return (FetchPlan) super .speedoAddGroup(fetchGroupName);
050: }
051:
052: /**
053: * Remove a group from the fetch plan.
054: */
055: public FetchPlan removeGroup(String fetchGroupName) {
056: return (FetchPlan) super .speedoRemoveGroup(fetchGroupName);
057: }
058:
059: public Collection getGroups() {
060: return super .speedoGetGroups();
061: }
062:
063: public FetchPlan setGroups(Collection fetchGroupNames) {
064: return (FetchPlan) super .speedoSetGroups(fetchGroupNames);
065: }
066:
067: public FetchPlan clearGroups() {
068: return (FetchPlan) super .speedoClearGroups();
069: }
070:
071: public FetchPlan setGroup(String fetchGroupName) {
072: return (FetchPlan) super .speedoSetGroup(fetchGroupName);
073: }
074:
075: public FetchPlan setGroups(String[] fetchGroupNames) {
076: return (FetchPlan) super .speedoSetGroups(fetchGroupNames);
077: }
078:
079: public FetchPlan setFetchSize(int fetchSize) {
080: return (FetchPlan) super .speedoSetFetchSize(fetchSize);
081: }
082:
083: public int getFetchSize() {
084: return super .speedoGetFetchSize();
085: }
086:
087: public int getDetachmentOptions() {
088: // TODO implements JDO FetchPlan getDetachmentOptions()
089: return 0;
090: }
091:
092: public FetchPlan setDetachmentOptions(int arg0) {
093: // TODO implements JDO FetchPlan setDetachmentOptions(int)
094: return null;
095: }
096:
097: public Class[] getDetachmentRootClasses() {
098: // TODO implements JDO FetchPlan getDetachmentRootClasses()
099: return null;
100: }
101:
102: public FetchPlan setDetachmentRootClasses(Class[] arg0) {
103: // TODO implements JDO FetchPlan setDetachmentRootClasses(Class[])
104: return null;
105: }
106:
107: public Collection getDetachmentRoots() {
108: // TODO implements JDO FetchPlan getDetachmentRoots()
109: return null;
110: }
111:
112: public FetchPlan setDetachmentRoots(Collection arg0) {
113: // TODO implements JDO FetchPlan setDetachmentRoots(Collection)
114: return null;
115: }
116:
117: public int getMaxFetchDepth() {
118: // TODO implements JDO FetchPlan getMaxFetchDepth()
119: return 0;
120: }
121:
122: public FetchPlan setMaxFetchDepth(int arg0) {
123: // TODO implements JDO FetchPlan setMaxFetchDepth(int)
124: return null;
125: }
126: }
|