Class: JobVersion
jobs/src.JobVersion
Extends
Constructors
new JobVersion()
new JobVersion():
JobVersion
Returns
Inherited from
Properties
createdAt
createdAt:
Date
Inherited from
Source
libs/typeorm/src/lib/entity/entity-helper.ts:28
deletedAt
deletedAt?:
Date
Inherited from
Source
libs/typeorm/src/lib/entity/entity-helper.ts:48
id
id:
string
Inherited from
Source
libs/jobs/src/lib/entity/base/base-job-version.entity.ts:11
jobData
jobData?:
object
Inherited from
Source
libs/jobs/src/lib/entity/base/base-job-version.entity.ts:23
jobDefinition
jobDefinition?:
JobDefinition
Source
libs/jobs/src/lib/entity/job-version.entity.ts:14
jobDefinitionId
jobDefinitionId:
string
Inherited from
BaseJobVersion.jobDefinitionId
Source
libs/jobs/src/lib/entity/base/base-job-version.entity.ts:15
jobOptions
jobOptions?:
JobsOptions
Inherited from
Source
libs/jobs/src/lib/entity/base/base-job-version.entity.ts:27
jobVersion
jobVersion:
number
Inherited from
Source
libs/jobs/src/lib/entity/base/base-job-version.entity.ts:19
updatedAt
updatedAt:
Date
Inherited from
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<JobVersion>
Recovers a given entity in the database.
Parameters
▪ options?: SaveOptions
Returns
Promise<JobVersion>
Inherited from
Source
node_modules/typeorm/repository/BaseEntity.d.ts:47
reload
reload():
Promise<void>
Reloads entity data from the database.
Returns
Promise<void>
Inherited from
Source
node_modules/typeorm/repository/BaseEntity.d.ts:51
remove
remove(
options?):Promise<JobVersion>
Removes current entity from the database.
Parameters
▪ options?: RemoveOptions
Returns
Promise<JobVersion>
Inherited from
Source
node_modules/typeorm/repository/BaseEntity.d.ts:39
save
save(
options?):Promise<JobVersion>
Saves current entity in the database. If entity does not exist in the database then inserts, otherwise updates.
Parameters
▪ options?: SaveOptions
Returns
Promise<JobVersion>
Inherited from
Source
node_modules/typeorm/repository/BaseEntity.d.ts:35
softRemove
softRemove(
options?):Promise<JobVersion>
Records the delete date of current entity.
Parameters
▪ options?: SaveOptions
Returns
Promise<JobVersion>
Inherited from
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
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.
Type parameters
▪ T extends BaseEntity
Parameters
▪ this: () => T & typeof BaseEntity
▪ options?: FindManyOptions<T>
Returns
Promise<number>
Inherited from
Source
node_modules/typeorm/repository/BaseEntity.d.ts:199
countBy
staticcountBy<T>(this,where):Promise<number>
Counts entities that match given WHERE conditions.
Type parameters
▪ T extends BaseEntity
Parameters
▪ this: () => T & typeof BaseEntity
▪ where: FindOptionsWhere<T>
Returns
Promise<number>
Inherited from
Source
node_modules/typeorm/repository/BaseEntity.d.ts:205
create
create(this)
staticcreate<T>(this):T
Creates a new entity instance.
Type parameters
▪ T extends BaseEntity
Parameters
▪ this: () => T & typeof BaseEntity
Returns
T
Inherited from
Source
node_modules/typeorm/repository/BaseEntity.d.ts:88
create(this, entityLikeArray)
staticcreate<T>(this,entityLikeArray):T[]
Creates a new entities and copies all entity properties from given objects into their new entities. Note that it copies only properties that present in entity schema.
Type parameters
▪ T extends BaseEntity
Parameters
▪ this: () => T & typeof BaseEntity
▪ entityLikeArray: DeepPartial<T>[]
Returns
T[]
Inherited from
Source
node_modules/typeorm/repository/BaseEntity.d.ts:95
create(this, entityLike)
staticcreate<T>(this,entityLike):T
Creates a new entity instance and copies all entity properties from this object into a new entity. Note that it copies only properties that present in entity schema.
Type parameters
▪ T extends BaseEntity
Parameters
▪ this: () => T & typeof BaseEntity
▪ entityLike: DeepPartial<T>
Returns
T
Inherited from
Source
node_modules/typeorm/repository/BaseEntity.d.ts:102
createQueryBuilder
staticcreateQueryBuilder<T>(this,alias?):SelectQueryBuilder<T>
Creates a new query builder that can be used to build a SQL query.
Type parameters
▪ T extends BaseEntity
Parameters
▪ this: () => T & typeof BaseEntity
▪ alias?: string
Returns
SelectQueryBuilder<T>
Inherited from
BaseJobVersion.createQueryBuilder
Source
node_modules/typeorm/repository/BaseEntity.d.ts:82
delete
staticdelete<T>(this,criteria):Promise<DeleteResult>
Deletes entities by a given criteria. Unlike remove method executes a primitive operation without cascades, relations and other operations included. Executes fast and efficient DELETE query. Does not check if entity exist in the database.
Type parameters
▪ T extends BaseEntity