/*
- * Copyright (C) 2016 Roland Häder
+ * Copyright (C) 2016, 2017 Roland Häder
*
* 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
package org.mxchange.jproduct.model.category;
import java.io.Serializable;
+import java.util.Date;
/**
* An interface for categories
public interface Category extends Serializable {
/**
- * Copies all properties from other category to this
+ * Getter for created timestamp
* <p>
- * @param category Source category instance
+ * @return Created timestamp
*/
- void copyAll (final Category category);
+ Date getCategoryCreated ();
+
+ /**
+ * Setter for created timestamp
+ * <p>
+ * @param categoryCreated Created timestamp
+ */
+ void setCategoryCreated (final Date categoryCreated);
/**
* Id number of category
*/
void setCategoryId (final Long id);
+ /**
+ * Getter for if category is shown in any statistics
+ * <p>
+ * @return Whether this category is shown in any statistics
+ */
+ Boolean getCategoryShownInStatistics ();
+
+ /**
+ * Setter for if category is shown in any statistics
+ * <p>
+ * @param categoryShownInStatistics Whether this category is shown in any
+ * statistics
+ */
+ void setCategoryShownInStatistics (final Boolean categoryShownInStatistics);
+
/**
* Parent category
* <p>
* <p>
* @return the title
*/
- String getCategoryTitle ();
+ String getCategoryI18nKey ();
/**
* Title of category
* <p>
* @param title the title to set
*/
- void setCategoryTitle (final String title);
+ void setCategoryI18nKey (final String title);
@Override
boolean equals (final Object object);