Package com.smeup.kokos.sdk.entity
Class KokosEntityDAOService
java.lang.Object
com.smeup.kokos.sdk.caller.KokosService
com.smeup.kokos.sdk.entity.KokosEntityDAOService
public abstract class KokosEntityDAOService
extends com.smeup.kokos.sdk.caller.KokosService
- Author:
- FORDAR
KokosEntityDAOService is a specific KokosService used to funized a DAO
This service when invoked receive in the P() field all information about the entity to be managed. The P() field is a JSON serialized map with the following keys: ENTITY_TYPE : entity type ENTITY_PARAMETER : entity parameter ENTITY_KEY : entity key ENTITY_OAV_CODES : semicolon separated list of oav codes to be managed
-
Field Summary
FieldsFields inherited from class com.smeup.kokos.sdk.caller.KokosService
out, printer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract EntitySlicecreate(com.smeup.kokos.sdk.model.ExecutionContext executionContext, EntityContext entityContext, EntitySlice slice) voiddelBid(com.smeup.kokos.sdk.fun.Fun fun, com.smeup.kokos.sdk.model.ExecutionContext context) Call deleteById abstract method.abstract voiddelete(com.smeup.kokos.sdk.model.ExecutionContext executionContext, EntityContext entityContext, String id) abstract Iterator<EntitySlice> find(com.smeup.kokos.sdk.model.ExecutionContext context, EntityContext entityContext) abstract EntitySlicefindById(com.smeup.kokos.sdk.model.ExecutionContext executionContext, EntityContext entityContext, String id) abstract Iterator<EntitySlice> findMany(com.smeup.kokos.sdk.model.ExecutionContext context, EntityContext entityContext, List<String> ids) voidfndAll(com.smeup.kokos.sdk.fun.Fun fun, com.smeup.kokos.sdk.model.ExecutionContext context) Call findAll abstract method.voidfndBid(com.smeup.kokos.sdk.fun.Fun fun, com.smeup.kokos.sdk.model.ExecutionContext context) Call findById abstract method.voidfndMny(com.smeup.kokos.sdk.fun.Fun fun, com.smeup.kokos.sdk.model.ExecutionContext context) Call findMany abstract method.voidinsNew(com.smeup.kokos.sdk.fun.Fun fun, com.smeup.kokos.sdk.model.ExecutionContext context) Call insertNew abstract method.abstract voidupdate(com.smeup.kokos.sdk.model.ExecutionContext executionContext, EntityContext entityContext, EntitySlice slice) voidupdBid(com.smeup.kokos.sdk.fun.Fun fun, com.smeup.kokos.sdk.model.ExecutionContext context) Call updateById abstract method.Methods inherited from class com.smeup.kokos.sdk.caller.KokosService
execute, writeAction, writeButtons, writeCursor, writeDataColumn, writeDataColumns, writeDataNode, writeDataNodeClosure, writeDataRow, writeLayout, writeMessage, writeRawData, writeSch, writeSetup, writeVariable
-
Field Details
-
ID_COLUMN_CODE
- See Also:
-
-
Constructor Details
-
KokosEntityDAOService
public KokosEntityDAOService()
-
-
Method Details
-
fndBid
public void fndBid(com.smeup.kokos.sdk.fun.Fun fun, com.smeup.kokos.sdk.model.ExecutionContext context) throws Exception Call findById abstract method. Return the single instance.
F(EXB;XXX;FND.BID) 1([T];[P];[K]). K is Id.- Throws:
Exception
-
fndAll
public void fndAll(com.smeup.kokos.sdk.fun.Fun fun, com.smeup.kokos.sdk.model.ExecutionContext context) throws Exception Call findAll abstract method. Return the list.
F(EXB;XXX;FND.ALL) 1(OG;;[T][P]).- Throws:
Exception
-
fndMny
public void fndMny(com.smeup.kokos.sdk.fun.Fun fun, com.smeup.kokos.sdk.model.ExecutionContext context) throws Exception Call findMany abstract method. Return the list.
F(EXB;XXX;FND.MNY) 1(OG;;[T][P]) INPUT(IDS(xxx;yyy;zzz))- Throws:
Exception
-
delBid
public void delBid(com.smeup.kokos.sdk.fun.Fun fun, com.smeup.kokos.sdk.model.ExecutionContext context) throws Exception Call deleteById abstract method. Delete one entity by id.
F(FBK;XXX;DEL.BID) 1([T];[P];[K])- Throws:
Exception
-
insNew
public void insNew(com.smeup.kokos.sdk.fun.Fun fun, com.smeup.kokos.sdk.model.ExecutionContext context) throws Exception Call insertNew abstract method. Insert new entity.
F(EXB;XXX;INS.NEW) 1([T];[P];[K]) INPUT(OAVS(oav_key(oav_value) oav_key(oav_value)...))- Throws:
Exception
-
updBid
public void updBid(com.smeup.kokos.sdk.fun.Fun fun, com.smeup.kokos.sdk.model.ExecutionContext context) throws Exception Call updateById abstract method. Update entity by id.
F(EXB;XXX;UPD.BID) 1([T];[P];[K]) INPUT(OAVS(oav_key(oav_value) oav_key(oav_value)...))- Throws:
Exception
-
findById
public abstract EntitySlice findById(com.smeup.kokos.sdk.model.ExecutionContext executionContext, EntityContext entityContext, String id) throws Exception - Throws:
Exception
-
findMany
public abstract Iterator<EntitySlice> findMany(com.smeup.kokos.sdk.model.ExecutionContext context, EntityContext entityContext, List<String> ids) throws Exception - Throws:
Exception
-
find
public abstract Iterator<EntitySlice> find(com.smeup.kokos.sdk.model.ExecutionContext context, EntityContext entityContext) throws Exception - Throws:
Exception
-
create
public abstract EntitySlice create(com.smeup.kokos.sdk.model.ExecutionContext executionContext, EntityContext entityContext, EntitySlice slice) throws Exception - Throws:
Exception
-
update
public abstract void update(com.smeup.kokos.sdk.model.ExecutionContext executionContext, EntityContext entityContext, EntitySlice slice) throws Exception - Throws:
Exception
-
delete
public abstract void delete(com.smeup.kokos.sdk.model.ExecutionContext executionContext, EntityContext entityContext, String id) throws Exception - Throws:
Exception
-