Class: CustomEntityRepository
backend.CustomEntityRepository
#
Hierarchy↳
CustomEntityRepository
#
Table of contents#
Constructors#
Properties#
Methods- applyBaseFilter
- applyCustomEntityFilter
- applyDeleteMany
- applyGetEntityViews
- createCustomEntity
- createEntity
- deleteCustomEntity
- deleteEntity
- deleteMany
- deleteManyFilteredCustomEntities
- getAll
- getById
- getBySlug
- getCustomEntities
- getCustomEntitiesByIds
- getCustomEntityById
- getCustomEntityBySlug
- getEntityViews
- getFilteredCustomEntities
- getFilteredEntities
- getPaged
- getSqlBoolStr
- getSqlLike
- quote
- updateCustomEntity
- updateEntity
#
Constructors#
constructor• new CustomEntityRepository()
#
Overrides#
Defined insystem/core/backend/src/repositories/custom-entity.repository.ts:16
#
Properties#
dbType• dbType: "mysql"
| "mariadb"
| "postgres"
| "cockroachdb"
| "sqlite"
| "mssql"
| "sap"
| "oracle"
| "cordova"
| "nativescript"
| "react-native"
| "sqljs"
| "mongodb"
| "aurora-data-api"
| "aurora-data-api-pg"
| "expo"
| "better-sqlite3"
| "capacitor"
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:24
#
Methods#
applyBaseFilterâ–¸ applyBaseFilter<EntityType
>(qb
, filter?
): SelectQueryBuilder
<EntityType
>
#
Type parametersName | Type |
---|---|
EntityType | TBasePageEntity |
#
ParametersName | Type |
---|---|
qb | SelectQueryBuilder <EntityType > |
filter? | BaseFilterInput |
#
ReturnsSelectQueryBuilder
<EntityType
>
#
Inherited fromBaseRepository.applyBaseFilter
#
Defined insystem/core/backend/src/repositories/base.repository.ts:155
#
applyCustomEntityFilterâ–¸ applyCustomEntityFilter(qb
, filterParams?
): void
#
ParametersName | Type |
---|---|
qb | SelectQueryBuilder <CustomEntity > |
filterParams? | CustomEntityFilterInput |
#
Returnsvoid
#
Defined insystem/core/backend/src/repositories/custom-entity.repository.ts:82
#
applyDeleteManyâ–¸ applyDeleteMany(qb
, input
): Promise
<void
>
#
ParametersName | Type |
---|---|
qb | SelectQueryBuilder <CustomEntity > | DeleteQueryBuilder <CustomEntity > |
input | TDeleteManyInput |
#
ReturnsPromise
<void
>
#
Inherited fromBaseRepository.applyDeleteMany
#
Defined insystem/core/backend/src/repositories/base.repository.ts:108
#
applyGetEntityViewsâ–¸ applyGetEntityViews(qb
, entityType
): SelectQueryBuilder
<TBasePageEntity
>
#
ParametersName | Type |
---|---|
qb | SelectQueryBuilder <TBasePageEntity > |
entityType | EDBEntity |
#
ReturnsSelectQueryBuilder
<TBasePageEntity
>
#
Inherited fromBaseRepository.applyGetEntityViews
#
Defined insystem/core/backend/src/repositories/base.repository.ts:133
#
createCustomEntityâ–¸ createCustomEntity(inputData
, id?
): Promise
<CustomEntity
>
#
ParametersName | Type |
---|---|
inputData | TCustomEntityInput |
id? | null | number |
#
ReturnsPromise
<CustomEntity
>
#
Defined insystem/core/backend/src/repositories/custom-entity.repository.ts:51
#
createEntityâ–¸ createEntity(input
, id?
): Promise
<CustomEntity
>
#
ParametersName | Type |
---|---|
input | CustomEntity |
id? | null | number |
#
ReturnsPromise
<CustomEntity
>
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:70
#
deleteCustomEntityâ–¸ deleteCustomEntity(id
): Promise
<boolean
>
#
ParametersName | Type |
---|---|
id | number |
#
ReturnsPromise
<boolean
>
#
Defined insystem/core/backend/src/repositories/custom-entity.repository.ts:70
#
deleteEntityâ–¸ deleteEntity(id
): Promise
<boolean
>
#
ParametersName | Type |
---|---|
id | number |
#
ReturnsPromise
<boolean
>
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:97
#
deleteManyâ–¸ deleteMany(input
): Promise
<boolean
>
#
ParametersName | Type |
---|---|
input | TDeleteManyInput |
#
ReturnsPromise
<boolean
>
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:125
#
deleteManyFilteredCustomEntitiesâ–¸ deleteManyFilteredCustomEntities(input
, filterParams?
): Promise
<undefined
| boolean
>
#
ParametersName | Type |
---|---|
input | TDeleteManyInput |
filterParams? | CustomEntityFilterInput |
#
ReturnsPromise
<undefined
| boolean
>
#
Defined insystem/core/backend/src/repositories/custom-entity.repository.ts:109
#
getAllâ–¸ getAll(): Promise
<CustomEntity
[]>
#
ReturnsPromise
<CustomEntity
[]>
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:44
#
getByIdâ–¸ getById(id
, relations?
): Promise
<CustomEntity
>
#
ParametersName | Type |
---|---|
id | number |
relations? | string [] |
#
ReturnsPromise
<CustomEntity
>
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:49
#
getBySlugâ–¸ getBySlug(slug
, relations?
): Promise
<CustomEntity
>
#
ParametersName | Type |
---|---|
slug | string |
relations? | string [] |
#
ReturnsPromise
<CustomEntity
>
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:60
#
getCustomEntitiesâ–¸ getCustomEntities(params?
): Promise
<TPagedList
<CustomEntity
>>
#
ParametersName | Type |
---|---|
params? | TPagedParams <TCustomEntity > |
#
ReturnsPromise
<TPagedList
<CustomEntity
>>
#
Defined insystem/core/backend/src/repositories/custom-entity.repository.ts:20
#
getCustomEntitiesByIdsâ–¸ getCustomEntitiesByIds(ids
): Promise
<CustomEntity
[]>
#
ParametersName | Type |
---|---|
ids | number [] |
#
ReturnsPromise
<CustomEntity
[]>
#
Defined insystem/core/backend/src/repositories/custom-entity.repository.ts:30
#
getCustomEntityByIdâ–¸ getCustomEntityById(id
): Promise
<undefined
| CustomEntity
>
#
ParametersName | Type |
---|---|
id | number |
#
ReturnsPromise
<undefined
| CustomEntity
>
#
Defined insystem/core/backend/src/repositories/custom-entity.repository.ts:25
#
getCustomEntityBySlugâ–¸ getCustomEntityBySlug(slug
): Promise
<undefined
| CustomEntity
>
#
ParametersName | Type |
---|---|
slug | string |
#
ReturnsPromise
<undefined
| CustomEntity
>
#
Defined insystem/core/backend/src/repositories/custom-entity.repository.ts:35
#
getEntityViewsâ–¸ getEntityViews(entityId
, entityType
): Promise
<any
>
#
ParametersName | Type |
---|---|
entityId | number |
entityType | EDBEntity |
#
ReturnsPromise
<any
>
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:144
#
getFilteredCustomEntitiesâ–¸ getFilteredCustomEntities(pagedParams?
, filterParams?
): Promise
<TPagedList
<TCustomEntity
>>
#
ParametersName | Type |
---|---|
pagedParams? | PagedParamsInput <CustomEntity > |
filterParams? | CustomEntityFilterInput |
#
ReturnsPromise
<TPagedList
<TCustomEntity
>>
#
Defined insystem/core/backend/src/repositories/custom-entity.repository.ts:100
#
getFilteredEntitiesâ–¸ getFilteredEntities(pagedParams?
, filterParams?
): Promise
<TPagedList
<CustomEntity
>>
#
ParametersName | Type |
---|---|
pagedParams? | PagedParamsInput <CustomEntity > |
filterParams? | BaseFilterInput |
#
ReturnsPromise
<TPagedList
<CustomEntity
>>
#
Inherited fromBaseRepository.getFilteredEntities
#
Defined insystem/core/backend/src/repositories/base.repository.ts:164
#
getPagedâ–¸ getPaged(params?
): Promise
<TPagedList
<CustomEntity
>>
#
ParametersName | Type |
---|---|
params? | TPagedParams <CustomEntity > |
#
ReturnsPromise
<TPagedList
<CustomEntity
>>
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:38
#
getSqlBoolStrâ–¸ getSqlBoolStr(b
): "true"
| "false"
| "1"
| "0"
#
ParametersName | Type |
---|---|
b | boolean |
#
Returns"true"
| "false"
| "1"
| "0"
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:34
#
getSqlLikeâ–¸ getSqlLike(): "ILIKE"
| "LIKE"
#
Returns"ILIKE"
| "LIKE"
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:35
#
quoteâ–¸ quote(str
): string
#
ParametersName | Type |
---|---|
str | string |
#
Returnsstring
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:36
#
updateCustomEntityâ–¸ updateCustomEntity(id
, inputData
): Promise
<CustomEntity
>
#
ParametersName | Type |
---|---|
id | number |
inputData | TCustomEntityInput |
#
ReturnsPromise
<CustomEntity
>
#
Defined insystem/core/backend/src/repositories/custom-entity.repository.ts:61
#
updateEntityâ–¸ updateEntity(id
, input
): Promise
<CustomEntity
>
#
ParametersName | Type |
---|---|
id | number |
input | CustomEntity |
#
ReturnsPromise
<CustomEntity
>