Class CoreEntityWrapper<E>
Constructors
constructor
- new CoreEntityWrapper<E>(con, name, getIns): CoreEntityWrapper<E>
-
Parameters
-
-
name: string
-
getIns: (() => E)
Properties
cache
Protected
className
className: string
Protected
e_con
Private
genPropMap
genPropMap: any
getIns
getIns: (() => E)
propMap
Methods
createObject
- createObject(args): Promise<E>
-
Returns Promise<E>
delete
- delete(e_id): Promise<boolean>
-
Returns Promise<boolean>
findObj
- findObj(search): Promise<null | E>
-
Parameters
-
search: {
[P in string | number | symbol]?: E[P]
}
Returns Promise<null | E>
getObjById
- getObjById(id): Promise<null | E>
-
Returns Promise<null | E>
getObjList
- getObjList(query?): Promise<E[]>
-
Returns Promise<E[]>
getPropMap
- getPropMap(): ColumnPropMap<E>
-
init
- init(): Promise<boolean>
-
Returns Promise<boolean>
updateObject
- updateObject(e_id, args): Promise<boolean>
-
Returns Promise<boolean>