Class: abstract BaseJobDefinitionEntity
jobs/src.BaseJobDefinitionEntity
Extends
Constructors
new BaseJobDefinitionEntity()
new BaseJobDefinitionEntity():
BaseJobDefinitionEntity
Returns
Inherited from
BaseTrackedEntityHelper.constructor
Properties
createdAt
createdAt:
Date
Inherited from
BaseTrackedEntityHelper.createdAt
Source
libs/typeorm/src/lib/entity/entity-helper.ts:28
deletedAt
deletedAt?:
Date
Inherited from
BaseTrackedEntityHelper.deletedAt
Source
libs/typeorm/src/lib/entity/entity-helper.ts:48
id
id:
string
Source
libs/jobs/src/lib/entity/base/base-job-definition.entity.ts:11
jobName
jobName:
string
Source
libs/jobs/src/lib/entity/base/base-job-definition.entity.ts:15
queueName
queueName:
string
Source
libs/jobs/src/lib/entity/base/base-job-definition.entity.ts:19
updatedAt
updatedAt:
Date
Inherited from
BaseTrackedEntityHelper.updatedAt
Source
libs/typeorm/src/lib/entity/entity-helper.ts:38
Accessors
target
getstatictarget():EntityTarget<any>
Returns object that is managed by this repository. If this repository manages entity from schema, then it returns a name of that schema instead.
Returns
EntityTarget<any>
Source
node_modules/typeorm/repository/BaseEntity.d.ts:67
Methods
hasId
hasId():
boolean
Checks if entity has an id. If entity composite compose ids, it will check them all.
Returns
boolean
Inherited from
Source
node_modules/typeorm/repository/BaseEntity.d.ts:30
recover
recover(
options?):Promise<BaseJobDefinitionEntity>
Recovers a given entity in the database.
Parameters
▪ options?: SaveOptions
Returns
Promise<BaseJobDefinitionEntity>
Inherited from
BaseTrackedEntityHelper.recover
Source
node_modules/typeorm/repository/BaseEntity.d.ts:47
reload
reload():
Promise<void>
Reloads entity data from the database.
Returns
Promise<void>
Inherited from
BaseTrackedEntityHelper.reload
Source
node_modules/typeorm/repository/BaseEntity.d.ts:51
remove
remove(
options?):Promise<BaseJobDefinitionEntity>
Removes current entity from the database.
Parameters
▪ options?: RemoveOptions
Returns
Promise<BaseJobDefinitionEntity>
Inherited from
BaseTrackedEntityHelper.remove
Source
node_modules/typeorm/repository/BaseEntity.d.ts:39
save
save(
options?):Promise<BaseJobDefinitionEntity>
Saves current entity in the database. If entity does not exist in the database then inserts, otherwise updates.
Parameters
▪ options?: SaveOptions
Returns
Promise<BaseJobDefinitionEntity>
Inherited from
Source
node_modules/typeorm/repository/BaseEntity.d.ts:35
softRemove
softRemove(
options?):Promise<BaseJobDefinitionEntity>
Records the delete date of current entity.
Parameters
▪ options?: SaveOptions
Returns
Promise<BaseJobDefinitionEntity>
Inherited from
BaseTrackedEntityHelper.softRemove
Source
node_modules/typeorm/repository/BaseEntity.d.ts:43
average
staticaverage<T>(this,columnName,where):Promise<number>
Return the AVG of a column
Type parameters
▪ T extends BaseEntity
Parameters
▪ this: () => T & typeof BaseEntity
▪ columnName: PickKeysByType<T, number>
▪ where: FindOptionsWhere<T>
Returns
Promise<number>
Inherited from
BaseTrackedEntityHelper.average
Source
node_modules/typeorm/repository/BaseEntity.d.ts:217
clear
staticclear<T>(this):Promise<void>
Clears all the data from the given table/collection (truncates/drops it).
Type parameters
▪ T extends BaseEntity
Parameters
▪ this: () => T & typeof BaseEntity
Returns
Promise<void>
Inherited from
Source
node_modules/typeorm/repository/BaseEntity.d.ts:319
count
staticcount<T>(this,options?):Promise<number>
Counts entities that match given options.