001/*
002 $Id: PeakBatcher.java 3207 2009-04-09 06:48:11Z gregory $
003
004 Copyright (C) 2006, 2007 Gregory Vincic
005
006 Files are copyright by their respective authors. The contributions to
007 files where copyright is not explicitly stated can be traced with the
008 source code revision system.
009
010 This file is part of Proteios.
011 Available at http://www.proteios.org/
012
013 Proteios-2.x is free software; you can redistribute it and/or
014 modify it under the terms of the GNU General Public License
015 as published by the Free Software Foundation; either version 2
016 of the License, or (at your option) any later version.
017
018 Proteios is distributed in the hope that it will be useful,
019 but WITHOUT ANY WARRANTY; without even the implied warranty of
020 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
021 GNU General Public License for more details.
022
023 You should have received a copy of the GNU General Public License
024 along with this program; if not, write to the Free Software
025 Foundation, Inc., 59 Temple Place - Suite 330,
026 Boston, MA  02111-1307, USA.
027 */
028package org.proteios.core;
029
030import org.proteios.core.data.PeakData;
031
032/**
033 * @author gregory
034 */
035public class PeakBatcher
036                extends BasicBatcher<PeakData>
037{
038        PeakBatcher(DbControl dc)
039        {
040                super(dc, PeakData.class, null);
041        }
042
043
044        @Override
045        public Item getType()
046        {
047                return Item.PROTEIOS_PEAK;
048        }
049
050
051        @Override
052        public void validate(PeakData data)
053                        throws InvalidDataException
054        {}
055
056
057        public void insert(Peak peak)
058        {
059                super.insert(peak.getData());
060        }
061}