[jbosscache-commits] JBoss Cache SVN: r6861 - core/branches/flat/src/main/java/org/jboss/starobrno/commands/read.
jbosscache-commits at lists.jboss.org
jbosscache-commits at lists.jboss.org
Wed Oct 8 06:45:27 EDT 2008
Author: mircea.markus
Date: 2008-10-08 06:45:26 -0400 (Wed, 08 Oct 2008)
New Revision: 6861
Added:
core/branches/flat/src/main/java/org/jboss/starobrno/commands/read/AbtractDataCommand.java
Removed:
core/branches/flat/src/main/java/org/jboss/starobrno/commands/read/AbstractDataCommand.java
Log:
_____ ____ ____
\/__/\ \ \ \L\ \\ \ \/\_\
_\ \ \ \ _ <'\ \ \/_/_
/\ \_\ \ \ \L\ \\ \ \L\ \
\ \____/\ \____/ \ \____/
\/___/ \/___/ \/___/
Deleted: core/branches/flat/src/main/java/org/jboss/starobrno/commands/read/AbstractDataCommand.java
===================================================================
--- core/branches/flat/src/main/java/org/jboss/starobrno/commands/read/AbstractDataCommand.java 2008-10-08 10:42:17 UTC (rev 6860)
+++ core/branches/flat/src/main/java/org/jboss/starobrno/commands/read/AbstractDataCommand.java 2008-10-08 10:45:26 UTC (rev 6861)
@@ -1,87 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2000 - 2008, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.starobrno.commands.read;
-
-import org.jboss.starobrno.commands.DataCommand;
-import org.jboss.starobrno.DataContainer;
-
-/**
- * An abstract class providing basic functionality of all {@link org.jboss.cache.commands.DataCommand}s.
- *
- * @author Manik Surtani (<a href="mailto:manik at jboss.org">manik at jboss.org</a>)
- * @since 2.2.0
- */
-public abstract class AbstractDataCommand implements DataCommand
-{
- protected DataContainer dataContainer;
-
- public void initialize(DataContainer dataContainer)
- {
- this.dataContainer = dataContainer;
- }
-
- private Object key;
-
- /**
- * Basic versions of these methods
- */
- public Object[] getParameters()
- {
- return new Object[]{key};
- }
-
- /**
- * Basic versions of these methods
- */
- public void setParameters(int commandId, Object[] args)
- {
- key = args[0];
- }
-
- public boolean equals(Object o)
- {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
-
- AbstractDataCommand that = (AbstractDataCommand) o;
-
- if (key != null ? !key.equals(that.key) : that.key != null) return false;
-
- return true;
- }
-
- public int hashCode()
- {
- int result;
- result = (dataContainer != null ? dataContainer.hashCode() : 0);
- result = 31 * result + (key != null ? key.hashCode() : 0);
- return result;
- }
-
-
- public String toString()
- {
- return "AbstractDataCommand{" +
- "key=" + key +
- '}';
- }
-}
\ No newline at end of file
Added: core/branches/flat/src/main/java/org/jboss/starobrno/commands/read/AbtractDataCommand.java
===================================================================
--- core/branches/flat/src/main/java/org/jboss/starobrno/commands/read/AbtractDataCommand.java (rev 0)
+++ core/branches/flat/src/main/java/org/jboss/starobrno/commands/read/AbtractDataCommand.java 2008-10-08 10:45:26 UTC (rev 6861)
@@ -0,0 +1,51 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.starobrno.commands.read;
+
+import org.jboss.starobrno.commands.DataCommand;
+
+/**
+ * @author Mircea.Markus at jboss.com
+ */
+public abstract class AbtractDataCommand implements DataCommand
+{
+ protected Object key;
+
+ public Object getKey()
+ {
+ return key;
+ }
+
+ public void setKey(Object key)
+ {
+ this.key = key;
+ }
+
+ protected AbtractDataCommand(Object key)
+ {
+ this.key = key;
+ }
+
+ protected AbtractDataCommand()
+ {
+ }
+}
More information about the jbosscache-commits
mailing list