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

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class com.smeup.kokos.sdk.caller.KokosService

    out, printer
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract EntitySlice
    create(com.smeup.kokos.sdk.model.ExecutionContext executionContext, EntityContext entityContext, EntitySlice slice)
     
    void
    delBid(com.smeup.kokos.sdk.fun.Fun fun, com.smeup.kokos.sdk.model.ExecutionContext context)
    Call deleteById abstract method.
    abstract void
    delete(com.smeup.kokos.sdk.model.ExecutionContext executionContext, EntityContext entityContext, String id)
     
    find(com.smeup.kokos.sdk.model.ExecutionContext context, EntityContext entityContext)
     
    abstract EntitySlice
    findById(com.smeup.kokos.sdk.model.ExecutionContext executionContext, EntityContext entityContext, String id)
     
    findMany(com.smeup.kokos.sdk.model.ExecutionContext context, EntityContext entityContext, List<String> ids)
     
    void
    fndAll(com.smeup.kokos.sdk.fun.Fun fun, com.smeup.kokos.sdk.model.ExecutionContext context)
    Call findAll abstract method.
    void
    fndBid(com.smeup.kokos.sdk.fun.Fun fun, com.smeup.kokos.sdk.model.ExecutionContext context)
    Call findById abstract method.
    void
    fndMny(com.smeup.kokos.sdk.fun.Fun fun, com.smeup.kokos.sdk.model.ExecutionContext context)
    Call findMany abstract method.
    void
    insNew(com.smeup.kokos.sdk.fun.Fun fun, com.smeup.kokos.sdk.model.ExecutionContext context)
    Call insertNew abstract method.
    abstract void
    update(com.smeup.kokos.sdk.model.ExecutionContext executionContext, EntityContext entityContext, EntitySlice slice)
     
    void
    updBid(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, writeDataColumn, writeDataColumns, writeDataNode, writeDataNodeClosure, writeDataRow, writeLayout, writeMessage, writeRawData, writeSch, writeSetup, writeVariable

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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