Reserved counters for registration keys
# new ubs_numcounterreserv_ns ()
Members
# attrs : ubsNumcounterreservAttrs static
Attributes defined in metadata. Property does not exist in real life and added for IDE
# entity : UBEntity instance
Reference to entity metadata
Methods
# addNew (ctx: ubMethodParams) instance
Create record with filled default values and return it to caller.
Newly created record is not inserted to database. For inserting record to the database insert
method should be called
Arguments:
ctx
: ubMethodParamsmParams
: objectOptional values for attributes of new record
# delete (ctx: ubMethodParams) instance
Delete record by ID
Arguments:
ctx
: ubMethodParamsmParams
: objectDelete method parameters
# insert (ctx: ubMethodParams) instance
New record insertion
Arguments:
ctx
: ubMethodParamsmParams
: objectInsert method parameters
# select (ctx: ubMethodParams) instance
ORM query for read records
Arguments:
ctx
: ubMethodParamsmParams
: UBQLORM query in UBQL format
# update (ctx: ubMethodParams) instance
Update existed record
Arguments:
ctx
: ubMethodParams
# getReservedRC (ctxt: ubMethodParams) → boolean instance
Get first reserved number for regKey
and remove returned number from reservation entity.
Actual result returned as mParams.getReservedRC
Arguments:
ctxt
: ubMethodParams
# getReservedRegnum (regKey: string) → number instance
Gets first reserved number for regkey and remove returned number from reservation entity
Return:
Reserved number
Arguments:
regKey
: stringRegistration Key
# reserveRC (ctxt: ubMethodParams) → boolean instance
Reserves some numbers for future use
Arguments:
ctxt
: ubMethodParams
# reserveRegnum (regkey: string, regNum: number, reservedDateopt: Date, noteopt: string) → boolean instance
Reserves numbers for future use
Return:
success