com.knots.kcl.business
Class EntityStore
java.lang.Object com.knots.kcl.business.Business com.knots.kcl.business.EntityStore
public class EntityStore
- extends Business
Entity Store
Method Summary |
static int | count(java.lang.String entityName) |
static int | count(java.lang.String entityName, Condition condition) |
static boolean | find(java.lang.String entityName, Condition condition) |
static boolean | find(java.lang.String entityName, int entityId) |
static Entity[] | load(java.lang.String entityName) |
static Entity[] | load(java.lang.String entityName, Condition condition) |
static Entity[] | load(java.lang.String entityName, Condition condition, java.lang.Integer start, java.lang.Integer length) |
static Entity[] | load(java.lang.String entityName, Condition condition, java.lang.String fields) |
static Entity[] | load(java.lang.String entityName, Condition condition, java.lang.String fields, java.lang.Integer start, java.lang.Integer length) |
static Entity[] | load(java.lang.String entityName, Condition condition, java.lang.String fields, Order[] orders, java.lang.Integer start, java.lang.Integer length) |
static Entity | load(java.lang.String entityName, int entityId) |
static Entity[] | load(java.lang.String entityName, java.lang.Integer start, java.lang.Integer length) |
static Entity | load(java.lang.String entityName, int entityId, java.lang.String fields) |
static Entity[] | load(java.lang.String entityName, java.lang.String fields) |
static void | remove(java.lang.String entityName, Condition condition) |
static void | remove(java.lang.String entityName, int entityId) |
static int | save(Entity... entities) |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityStore
public EntityStore()
count
public static int count(java.lang.String entityName) throws java.lang.Exception
- Throws:
java.lang.Exception
count
public static int count(java.lang.String entityName, Condition condition) throws java.lang.Exception
- Throws:
java.lang.Exception
find
public static boolean find(java.lang.String entityName, int entityId) throws java.lang.Exception
- Throws:
java.lang.Exception
find
public static boolean find(java.lang.String entityName, Condition condition) throws java.lang.Exception
- Throws:
java.lang.Exception
save
public static int save(Entity... entities) throws java.lang.Exception
- Throws:
java.lang.Exception
remove
public static void remove(java.lang.String entityName, int entityId) throws java.lang.Exception
- Throws:
java.lang.Exception
remove
public static void remove(java.lang.String entityName, Condition condition) throws java.lang.Exception
- Throws:
java.lang.Exception
load
public static Entity load(java.lang.String entityName, int entityId) throws java.lang.Exception
- Throws:
java.lang.Exception
load
public static Entity load(java.lang.String entityName, int entityId, java.lang.String fields) throws java.lang.Exception
- Throws:
java.lang.Exception
load
public static Entity[] load(java.lang.String entityName) throws java.lang.Exception
- Throws:
java.lang.Exception
load
public static Entity[] load(java.lang.String entityName, Condition condition) throws java.lang.Exception
- Throws:
java.lang.Exception
load
public static Entity[] load(java.lang.String entityName, java.lang.String fields) throws java.lang.Exception
- Throws:
java.lang.Exception
load
public static Entity[] load(java.lang.String entityName, java.lang.Integer start, java.lang.Integer length) throws java.lang.Exception
- Throws:
java.lang.Exception
load
public static Entity[] load(java.lang.String entityName, Condition condition, java.lang.String fields) throws java.lang.Exception
- Throws:
java.lang.Exception
load
public static Entity[] load(java.lang.String entityName, Condition condition, java.lang.Integer start, java.lang.Integer length) throws java.lang.Exception
- Throws:
java.lang.Exception
load
public static Entity[] load(java.lang.String entityName, Condition condition, java.lang.String fields, java.lang.Integer start, java.lang.Integer length) throws java.lang.Exception
- Throws:
java.lang.Exception
load
public static Entity[] load(java.lang.String entityName, Condition condition, java.lang.String fields, Order[] orders, java.lang.Integer start, java.lang.Integer length) throws java.lang.Exception
- Throws:
java.lang.Exception