Hello All,
What is the best way to implement the subject short of directly using JDBC via native Java?
Consider a scenario where a user places an order. An order can have many items so it makes sense to batch up these insert statements. With sql support in B4J, there is the AddNonQueryToBatch and ExecNonQueryBatch but these are asynchronous methods. These will require the app to first inform the user that the order has been submitted and then later on (via push or web sockets) inform the user that the order has been placed. This is not very good from a usability point of view as the user will be shown multiple messages for a simple act of placing an order.
Will appreciate your input on implementing this.
Thanks.
What is the best way to implement the subject short of directly using JDBC via native Java?
Consider a scenario where a user places an order. An order can have many items so it makes sense to batch up these insert statements. With sql support in B4J, there is the AddNonQueryToBatch and ExecNonQueryBatch but these are asynchronous methods. These will require the app to first inform the user that the order has been submitted and then later on (via push or web sockets) inform the user that the order has been placed. This is not very good from a usability point of view as the user will be shown multiple messages for a simple act of placing an order.
Will appreciate your input on implementing this.
Thanks.