dbsync_srvapp: Server app module

Table 1. DB Sync server app module (dbsync_srvapp.4gl)
Function Description
Central changes cancelation function.
FUNCTION central_change_done()
Central changes termination function.
FUNCTION central_change_init(
      tablist STRING
  )
  RETURNS INTEGER
Central changes initialization function.
Registers the point in time of last central data refresh.
FUNCTION cleanup()
Terminate module usage.
FUNCTION initialize()
DBSync server app lib initialization.
FUNCTION is_row_referenced(
      table_name STRING,
      jo_data util.JSONObject
  )
  RETURNS BOOLEAN
Checks if a given row is still referenced in other tables by foreign key.
FUNCTION register_central_app_params(
      dbschema_filename STRING,
      app_id dbsync_core.t_app_id,
      user_id dbsync_core.t_user_id
  )
Registers parameters for the DB Sync server-side app.
FUNCTION register_central_delete(
      tabname STRING,
      pkeyval BIGINT
  )
  RETURNS INTEGER
Register dbsync delete for a given central row.
FUNCTION register_central_delete_cpk2(
      tabname STRING,
      pkeyval_1 BIGINT,
      pkeyval_2 BIGINT
  )
  RETURNS INTEGER
Register dbsync delete for a given central row with a 2-col integer pkey.
FUNCTION register_central_delete_cpk3_s(
      tabname STRING,
      pkeyval_1 STRING,
      pkeyval_2 STRING,
      pkeyval_3 STRING
  )
  RETURNS INTEGER
Register dbsync delete for a given central row with a composite pkey.
FUNCTION register_central_delete_s(
      tabname STRING,
      pkeyval STRING
  )
  RETURNS INTEGER
Same as register_central_delete() but with string column.
FUNCTION register_central_insert(
      tabname STRING,
      pkeyval BIGINT
  )
  RETURNS INTEGER
Register dbsync insert for a given central row.
FUNCTION register_central_insert_cpk2(
      tabname STRING,
      pkeyval_1 BIGINT,
      pkeyval_2 BIGINT
  )
  RETURNS INTEGER
Register dbsync insert for a given central row with a 2-col integer pkey.
FUNCTION register_central_insert_cpk3_s(
      tabname STRING,
      pkeyval_1 STRING, 
      pkeyval_2 STRING,
      pkeyval_3 STRING
  )
  RETURNS INTEGER
Register dbsync insert for a given central row with a composite pkey.
FUNCTION register_central_insert_s(
      tabname STRING,
      pkeyval STRING
  )
  RETURNS INTEGER
Same as register_central_insert() but with string column.
FUNCTION register_central_update(
      tabname type1,
      pkeyval type2
  )
  RETURNS INTEGER
Register dbsync update for a given central row.
FUNCTION register_central_update_cpk2(
      tabname STRING,
      pkeyval_1 BIGINT,
      pkeyval_2 BIGINT
  )
  RETURNS INTEGER
Register dbsync update for a given central row with a 2-col integer pkey.
FUNCTION register_central_update_cpk3_s(
      tabname STRING,
      pkeyval_1 STRING,
      pkeyval_2 STRING,
      pkeyval_3 STRING
  )
  RETURNS INTEGER
Register dbsync update for a given central row with a composite pkey.
FUNCTION register_central_update_s(
      tabname STRING,
      pkeyval STRING
  )
  RETURNS INTEGER
Same as register_central_update() but with string column.