@Entity public class MetaSelect extends AuditableModel
Constructor and Description |
---|
MetaSelect() |
MetaSelect(String name) |
Modifier and Type | Method and Description |
---|---|
void |
addItem(MetaSelectItem item)
Add the given
MetaSelectItem item to the items . |
void |
clearItems()
Clear the
items collection. |
boolean |
equals(Object obj) |
Long |
getId() |
List<MetaSelectItem> |
getItems() |
String |
getModule() |
String |
getName() |
Integer |
getPriority() |
String |
getXmlId() |
int |
hashCode() |
void |
removeItem(MetaSelectItem item)
Remove the given
MetaSelectItem item from the items . |
void |
setId(Long id) |
void |
setItems(List<MetaSelectItem> items) |
void |
setModule(String module) |
void |
setName(String name) |
void |
setPriority(Integer priority) |
void |
setXmlId(String xmlId) |
String |
toString() |
getCreatedBy, getCreatedOn, getUpdatedBy, getUpdatedOn
getArchived, getVersion, isSelected, setArchived, setSelected, setVersion
public MetaSelect()
public MetaSelect(String name)
public String getXmlId()
public void setXmlId(String xmlId)
public String getName()
public void setName(String name)
public Integer getPriority()
public void setPriority(Integer priority)
public String getModule()
public void setModule(String module)
public List<MetaSelectItem> getItems()
public void setItems(List<MetaSelectItem> items)
public void addItem(MetaSelectItem item)
MetaSelectItem
item to the items
.
It sets item.select = this
to ensure the proper relationship.
item
- the item to addpublic void removeItem(MetaSelectItem item)
MetaSelectItem
item from the items
.item
- the item to removepublic void clearItems()
items
collection.
If you have to query MetaSelectItem
records in same transaction, make sure to call
EntityManager.flush()
to avoid unexpected errors.