Class: ProductReviewRepository
backend.ProductReviewRepository
#
Hierarchy↳
ProductReviewRepository
#
Table of contents#
Constructors#
Properties#
Methods- applyBaseFilter
- applyDeleteMany
- applyGetEntityViews
- applyProductReviewFilter
- createEntity
- createProductReview
- deleteEntity
- deleteMany
- deleteManyFilteredProductReviews
- deleteProductReview
- getAll
- getById
- getBySlug
- getEntityViews
- getFilteredEntities
- getFilteredProductReviews
- getPaged
- getProductReview
- getProductReviews
- getSqlBoolStr
- getSqlLike
- handleProductReviewInput
- quote
- updateEntity
- updateProductReview
#
Constructors#
constructor• new ProductReviewRepository()
#
Overrides#
Defined insystem/core/backend/src/repositories/product-review.repository.ts:21
#
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
#
applyDeleteManyâ–¸ applyDeleteMany(qb
, input
): Promise
<void
>
#
ParametersName | Type |
---|---|
qb | SelectQueryBuilder <ProductReview > | DeleteQueryBuilder <ProductReview > |
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
#
applyProductReviewFilterâ–¸ applyProductReviewFilter(qb
, filterParams?
): void
#
ParametersName | Type |
---|---|
qb | SelectQueryBuilder <TProductReview > |
filterParams? | ProductReviewFilter |
#
Returnsvoid
#
Defined insystem/core/backend/src/repositories/product-review.repository.ts:91
#
createEntityâ–¸ createEntity(input
, id?
): Promise
<ProductReview
>
#
ParametersName | Type |
---|---|
input | ProductReview |
id? | null | number |
#
ReturnsPromise
<ProductReview
>
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:70
#
createProductReviewâ–¸ createProductReview(createProductReview
, id?
): Promise
<TProductReview
>
#
ParametersName | Type |
---|---|
createProductReview | TProductReviewInput |
id? | null | number |
#
ReturnsPromise
<TProductReview
>
#
Defined insystem/core/backend/src/repositories/product-review.repository.ts:60
#
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
#
deleteManyFilteredProductReviewsâ–¸ deleteManyFilteredProductReviews(input
, filterParams?
): Promise
<undefined
| boolean
>
#
ParametersName | Type |
---|---|
input | TDeleteManyInput |
filterParams? | ProductReviewFilter |
#
ReturnsPromise
<undefined
| boolean
>
#
Defined insystem/core/backend/src/repositories/product-review.repository.ts:138
#
deleteProductReviewâ–¸ deleteProductReview(id
): Promise
<boolean
>
#
ParametersName | Type |
---|---|
id | number |
#
ReturnsPromise
<boolean
>
#
Defined insystem/core/backend/src/repositories/product-review.repository.ts:80
#
getAllâ–¸ getAll(): Promise
<ProductReview
[]>
#
ReturnsPromise
<ProductReview
[]>
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:44
#
getByIdâ–¸ getById(id
, relations?
): Promise
<ProductReview
>
#
ParametersName | Type |
---|---|
id | number |
relations? | string [] |
#
ReturnsPromise
<ProductReview
>
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:49
#
getBySlugâ–¸ getBySlug(slug
, relations?
): Promise
<ProductReview
>
#
ParametersName | Type |
---|---|
slug | string |
relations? | string [] |
#
ReturnsPromise
<ProductReview
>
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:60
#
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
#
getFilteredEntitiesâ–¸ getFilteredEntities(pagedParams?
, filterParams?
): Promise
<TPagedList
<ProductReview
>>
#
ParametersName | Type |
---|---|
pagedParams? | PagedParamsInput <ProductReview > |
filterParams? | BaseFilterInput |
#
ReturnsPromise
<TPagedList
<ProductReview
>>
#
Inherited fromBaseRepository.getFilteredEntities
#
Defined insystem/core/backend/src/repositories/base.repository.ts:164
#
getFilteredProductReviewsâ–¸ getFilteredProductReviews(pagedParams?
, filterParams?
): Promise
<TPagedList
<TProductReview
>>
#
ParametersName | Type |
---|---|
pagedParams? | PagedParamsInput <TProductReview > |
filterParams? | ProductReviewFilter |
#
ReturnsPromise
<TPagedList
<TProductReview
>>
#
Defined insystem/core/backend/src/repositories/product-review.repository.ts:130
#
getPagedâ–¸ getPaged(params?
): Promise
<TPagedList
<ProductReview
>>
#
ParametersName | Type |
---|---|
params? | TPagedParams <ProductReview > |
#
ReturnsPromise
<TPagedList
<ProductReview
>>
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:38
#
getProductReviewâ–¸ getProductReview(id
): Promise
<ProductReview
>
#
ParametersName | Type |
---|---|
id | number |
#
ReturnsPromise
<ProductReview
>
#
Defined insystem/core/backend/src/repositories/product-review.repository.ts:29
#
getProductReviewsâ–¸ getProductReviews(params
): Promise
<TPagedList
<TProductReview
>>
#
ParametersName | Type |
---|---|
params | TPagedParams <TProductReview > |
#
ReturnsPromise
<TPagedList
<TProductReview
>>
#
Defined insystem/core/backend/src/repositories/product-review.repository.ts:25
#
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
#
handleProductReviewInputâ–¸ handleProductReviewInput(productReview
, input
, action
): Promise
<void
>
#
ParametersName | Type |
---|---|
productReview | ProductReview |
input | TProductReviewInput |
action | "update" | "create" |
#
ReturnsPromise
<void
>
#
Defined insystem/core/backend/src/repositories/product-review.repository.ts:34
#
quoteâ–¸ quote(str
): string
#
ParametersName | Type |
---|---|
str | string |
#
Returnsstring
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:36
#
updateEntityâ–¸ updateEntity(id
, input
): Promise
<ProductReview
>
#
ParametersName | Type |
---|---|
id | number |
input | ProductReview |
#
ReturnsPromise
<ProductReview
>
#
Inherited from#
Defined insystem/core/backend/src/repositories/base.repository.ts:82
#
updateProductReviewâ–¸ updateProductReview(id
, updateProductReview
): Promise
<ProductReview
>
#
ParametersName | Type |
---|---|
id | number |
updateProductReview | TProductReviewInput |
#
ReturnsPromise
<ProductReview
>
#
Defined insystem/core/backend/src/repositories/product-review.repository.ts:71