/* +-----------------------------------------------------------------------------+ | ILIAS open source | +-----------------------------------------------------------------------------+ | Copyright (c) 1998-2001 ILIAS open source, University of Cologne | | | | This program is free software; you can redistribute it and/or | | modify it under the terms of the GNU General Public License | | as published by the Free Software Foundation; either version 2 | | of the License, or (at your option) any later version. | | | | This program is distributed in the hope that it will be useful, | | but WITHOUT ANY WARRANTY; without even the implied warranty of | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | | GNU General Public License for more details. | | | | You should have received a copy of the GNU General Public License | | along with this program; if not, write to the Free Software | | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | +-----------------------------------------------------------------------------+ */ package de.ilias.services.lucene.index; import org.apache.log4j.Logger; /** * Represents a single entry from table search_command_queue * Read only: Updates should be handled in class CommandQueue * * @author Stefan Meyer * @version $Id$ */ public class CommandQueueElement { public static final String RESET = "reset"; public static final String RESET_ALL = "reset_all"; public static final String UPDATE = "update"; public static final String CREATE = "create"; public static final String DELETE = "delete"; protected static Logger logger = Logger.getLogger(CommandQueueElement.class); private int objId; private String objType; private int subId; private String subType; private String command; private boolean finished; /** * */ public CommandQueueElement() { } /** * @return the objId */ public int getObjId() { return objId; } /** * @param objId the objId to set */ public void setObjId(int objId) { this.objId = objId; } /** * @return the objType */ public String getObjType() { return objType; } /** * @param objType the objType to set */ public void setObjType(String objType) { this.objType = objType; } /** * @return the subId */ public int getSubId() { return subId; } /** * @param subId the subId to set */ public void setSubId(int subId) { this.subId = subId; } /** * @return the subType */ public String getSubType() { return subType; } /** * @param subType the subType to set */ public void setSubType(String subType) { this.subType = subType; } /** * @return the command */ public String getCommand() { return command; } /** * @param command the command to set */ public void setCommand(String command) { this.command = command; } /** * @return the finished */ public boolean isFinished() { return finished; } /** * @param finished the finished to set */ public void setFinished(boolean finished) { this.finished = finished; } }