]> git.mxchange.org Git - jcustomer-core.git/blobdiff - src/org/mxchange/jshopcore/model/category/Category.java
auto-formatted project + updated jars
[jcustomer-core.git] / src / org / mxchange / jshopcore / model / category / Category.java
index 1fb60e81633f2502f3e961bfebc036cc05ce7a8b..43b2d26e7dc5c151faea3c7f0f958ecbb213d808 100644 (file)
@@ -20,52 +20,57 @@ import java.io.Serializable;
 
 /**
  * An interface for categories
- *
- * @author Roland Haeder
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
  */
-public interface Category extends Comparable<Category>, Serializable {
+public interface Category extends Serializable {
+
+       /**
+        * Copies all properties from other category to this
+        * <p>
+        * @param category Source category instance
+        */
+       public void copyAll (final Category category);
 
        /**
         * Id number of category
+        * <p>
         * @return the id
         */
        public Long getCategoryId ();
 
        /**
         * Id number of category
+        * <p>
         * @param id the id to set
         */
        public void setCategoryId (final Long id);
 
        /**
-        * Parent category id
-        * @return the parent
+        * Parent category
+        * <p>
+        * @return the parent category
         */
-       public Long getParentId ();
+       public Category getParentCategory ();
 
        /**
-        * Parent category id
-        * @param parent the parent to set
+        * Parent category
+        * <p>
+        * @param parentCategory the parent category to set
         */
-       public void setParentId (final Long parent);
+       public void setParentCategory (final Category parentCategory);
 
        /**
         * Title of category
+        * <p>
         * @return the title
         */
-       public String getTitle ();
+       public String getCategoryTitle ();
 
        /**
         * Title of category
+        * <p>
         * @param title the title to set
         */
-       public void setTitle (final String title);
-
-       /**
-        * Compare method
-        * @param category Category to compare to
-        * @return Comparison value
-        */
-       @Override
-       public int compareTo (final Category category);
+       public void setCategoryTitle (final String title);
 }