public class ProductGroup extends CafetData
| Constructor and Description |
|---|
ProductGroup(int id,
String name,
String displayName) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Delete this group from the database
|
Product[] |
getAllProducts()
Return products of this group included unviewable ones
|
String |
getDisplayName()
Return the displayName
|
int |
getId()
Return the id
|
String |
getName()
Return the name
|
Product[] |
getProducts()
Return products of this group exept unviewable ones
|
void |
setDisplayName(String displayName)
Sets displayName
|
void |
setId()
ID cannot be reset!
|
void |
setName(String name)
Sets name
|
String |
toString() |
public final int getId()
public final String getName()
public final String getDisplayName()
public final Product[] getProducts() throws APIException, IOException
IOExceptionAPIExceptionpublic final Product[] getAllProducts() throws APIException, IOException
IOExceptionAPIExceptionpublic final void setId()
public final void setName(String name) throws APIException, IOException
name - the name to setIOExceptionAPIExceptionpublic final void setDisplayName(String displayName) throws APIException, IOException
displayName - the displayName to setIOExceptionAPIExceptionpublic final void delete()
throws APIException,
IOException
IOExceptionAPIExceptionCopyright © 2019 Nowtryz. All rights reserved.