com.knots.kcl.business
Class ItemContent
java.lang.Object com.knots.kcl.business.Business com.knots.kcl.business.ItemContent
public class ItemContent
- extends Business
Constructor Summary |
ItemContent(java.lang.String entityName) |
Method Summary |
int | add(int classId, java.lang.String name, java.lang.String description, java.lang.String content) |
int | countByClassId(int classId) |
Entity[] | getBasicByClassId(int classId) |
Entity[] | getBasicByClassId(int classId, java.lang.String fields, java.lang.Integer start, java.lang.Integer length) |
Entity[] | getByClassId(int classId, java.lang.String extraEntityName) |
Entity[] | getByClassId(int classId, java.lang.String extraEntityName, java.lang.String fields, java.lang.Integer start, java.lang.Integer length) |
Entity | getById(int id, java.lang.String extraEntityName) |
java.lang.String | getContentById(int id) |
Entity[] | getLiteFieldsByClassId(int classId) |
Entity[] | getLiteFieldsByClassId(int classId, java.lang.Integer start, java.lang.Integer length) |
void | remove(int id) |
void | setBasic(int id, java.lang.String name, java.lang.String description, java.lang.String content) |
void | setExtra(int id, java.lang.String extraEntityName, java.lang.String extraFields, java.lang.Object... extraValues) |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ItemContent
public ItemContent(java.lang.String entityName)
add
public int add(int classId, java.lang.String name, java.lang.String description, java.lang.String content) throws java.lang.Exception
- Throws:
java.lang.Exception
setBasic
public void setBasic(int id, java.lang.String name, java.lang.String description, java.lang.String content) throws java.lang.Exception
- Throws:
java.lang.Exception
setExtra
public void setExtra(int id, java.lang.String extraEntityName, java.lang.String extraFields, java.lang.Object... extraValues) throws java.lang.Exception
- Throws:
java.lang.Exception
remove
public void remove(int id) throws java.lang.Exception
- Throws:
java.lang.Exception
getById
public Entity getById(int id, java.lang.String extraEntityName) throws java.lang.Exception
- Throws:
java.lang.Exception
countByClassId
public int countByClassId(int classId) throws java.lang.Exception
- Throws:
java.lang.Exception
getContentById
public java.lang.String getContentById(int id) throws java.lang.Exception
- Throws:
java.lang.Exception
getBasicByClassId
public Entity[] getBasicByClassId(int classId) throws java.lang.Exception
- Throws:
java.lang.Exception
getBasicByClassId
public Entity[] getBasicByClassId(int classId, java.lang.String fields, java.lang.Integer start, java.lang.Integer length) throws java.lang.Exception
- Throws:
java.lang.Exception
getLiteFieldsByClassId
public Entity[] getLiteFieldsByClassId(int classId) throws java.lang.Exception
- Throws:
java.lang.Exception
getLiteFieldsByClassId
public Entity[] getLiteFieldsByClassId(int classId, java.lang.Integer start, java.lang.Integer length) throws java.lang.Exception
- Throws:
java.lang.Exception
getByClassId
public Entity[] getByClassId(int classId, java.lang.String extraEntityName) throws java.lang.Exception
- Throws:
java.lang.Exception
getByClassId
public Entity[] getByClassId(int classId, java.lang.String extraEntityName, java.lang.String fields, java.lang.Integer start, java.lang.Integer length) throws java.lang.Exception
- Throws:
java.lang.Exception