1 23 package org.infoglue.cms.entities.management.impl.simple; 24 25 import org.infoglue.cms.entities.kernel.BaseEntityVO; 26 import org.infoglue.cms.entities.management.PropertiesCategory; 27 import org.infoglue.cms.entities.management.PropertiesCategoryVO; 28 29 32 public class PropertiesCategoryImpl implements PropertiesCategory 33 { 34 private PropertiesCategoryVO valueObject = new PropertiesCategoryVO(); 35 private CategoryImpl category; 36 37 public PropertiesCategoryImpl() 38 {} 39 40 public PropertiesCategoryImpl(Integer id) 41 { 42 setPropertiesCategoryId(id); 43 } 44 45 public PropertiesCategoryImpl(PropertiesCategoryVO vo) 46 { 47 valueObject = (vo != null)? vo : new PropertiesCategoryVO(); 48 } 49 50 51 public BaseEntityVO getVO() { return (BaseEntityVO) getValueObject(); } 52 public void setVO(BaseEntityVO vo) { setValueObject((PropertiesCategoryVO) vo); } 53 54 public Integer getId() { return getPropertiesCategoryId(); } 55 public Object getIdAsObject() { return getId(); } 56 57 public PropertiesCategoryVO getValueObject() { return valueObject; } 58 public void setValueObject(PropertiesCategoryVO c) { valueObject = c; } 59 60 public Integer getPropertiesCategoryId() { return valueObject.getPropertiesCategoryId(); } 61 public void setPropertiesCategoryId(Integer i) { valueObject.setPropertiesCategoryId(i); } 62 63 public String getAttributeName() { return valueObject.getAttributeName(); } 64 public void setAttributeName(String s) { valueObject.setAttributeName(s); } 65 66 public String getEntityName() { return valueObject.getEntityName(); } 67 public void setEntityName(String s) { valueObject.setEntityName(s); } 68 69 public Integer getEntityId() { return valueObject.getEntityId(); } 70 public void setEntityId(Integer i) { valueObject.setEntityId(i); } 71 72 public CategoryImpl getCategory() 73 { 74 return category; 75 } 76 77 public void setCategory(CategoryImpl c) 78 { 79 category = c; 80 valueObject.setCategory(c.getValueObject()); 81 } 82 83 } 84 | Popular Tags |