Skip to main content

Class: ProductReviewRepository

backend.ProductReviewRepository

Hierarchy#

Table of contents#

Constructors#

Properties#

Methods#

Constructors#

constructor#

• new ProductReviewRepository()

Overrides#

BaseRepository.constructor

Defined in#

system/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#

BaseRepository.dbType

Defined in#

system/core/backend/src/repositories/base.repository.ts:24

Methods#

applyBaseFilter#

â–¸ applyBaseFilter<EntityType>(qb, filter?): SelectQueryBuilder<EntityType>

Type parameters#

NameType
EntityTypeTBasePageEntity

Parameters#

NameType
qbSelectQueryBuilder<EntityType>
filter?BaseFilterInput

Returns#

SelectQueryBuilder<EntityType>

Inherited from#

BaseRepository.applyBaseFilter

Defined in#

system/core/backend/src/repositories/base.repository.ts:155


applyDeleteMany#

â–¸ applyDeleteMany(qb, input): Promise<void>

Parameters#

NameType
qbSelectQueryBuilder<ProductReview> | DeleteQueryBuilder<ProductReview>
inputTDeleteManyInput

Returns#

Promise<void>

Inherited from#

BaseRepository.applyDeleteMany

Defined in#

system/core/backend/src/repositories/base.repository.ts:108


applyGetEntityViews#

â–¸ applyGetEntityViews(qb, entityType): SelectQueryBuilder<TBasePageEntity>

Parameters#

NameType
qbSelectQueryBuilder<TBasePageEntity>
entityTypeEDBEntity

Returns#

SelectQueryBuilder<TBasePageEntity>

Inherited from#

BaseRepository.applyGetEntityViews

Defined in#

system/core/backend/src/repositories/base.repository.ts:133


applyProductReviewFilter#

â–¸ applyProductReviewFilter(qb, filterParams?): void

Parameters#

NameType
qbSelectQueryBuilder<TProductReview>
filterParams?ProductReviewFilter

Returns#

void

Defined in#

system/core/backend/src/repositories/product-review.repository.ts:91


createEntity#

â–¸ createEntity(input, id?): Promise<ProductReview>

Parameters#

NameType
inputProductReview
id?null | number

Returns#

Promise<ProductReview>

Inherited from#

BaseRepository.createEntity

Defined in#

system/core/backend/src/repositories/base.repository.ts:70


createProductReview#

â–¸ createProductReview(createProductReview, id?): Promise<TProductReview>

Parameters#

NameType
createProductReviewTProductReviewInput
id?null | number

Returns#

Promise<TProductReview>

Defined in#

system/core/backend/src/repositories/product-review.repository.ts:60


deleteEntity#

â–¸ deleteEntity(id): Promise<boolean>

Parameters#

NameType
idnumber

Returns#

Promise<boolean>

Inherited from#

BaseRepository.deleteEntity

Defined in#

system/core/backend/src/repositories/base.repository.ts:97


deleteMany#

â–¸ deleteMany(input): Promise<boolean>

Parameters#

NameType
inputTDeleteManyInput

Returns#

Promise<boolean>

Inherited from#

BaseRepository.deleteMany

Defined in#

system/core/backend/src/repositories/base.repository.ts:125


deleteManyFilteredProductReviews#

â–¸ deleteManyFilteredProductReviews(input, filterParams?): Promise<undefined | boolean>

Parameters#

NameType
inputTDeleteManyInput
filterParams?ProductReviewFilter

Returns#

Promise<undefined | boolean>

Defined in#

system/core/backend/src/repositories/product-review.repository.ts:138


deleteProductReview#

â–¸ deleteProductReview(id): Promise<boolean>

Parameters#

NameType
idnumber

Returns#

Promise<boolean>

Defined in#

system/core/backend/src/repositories/product-review.repository.ts:80


getAll#

â–¸ getAll(): Promise<ProductReview[]>

Returns#

Promise<ProductReview[]>

Inherited from#

BaseRepository.getAll

Defined in#

system/core/backend/src/repositories/base.repository.ts:44


getById#

â–¸ getById(id, relations?): Promise<ProductReview>

Parameters#

NameType
idnumber
relations?string[]

Returns#

Promise<ProductReview>

Inherited from#

BaseRepository.getById

Defined in#

system/core/backend/src/repositories/base.repository.ts:49


getBySlug#

â–¸ getBySlug(slug, relations?): Promise<ProductReview>

Parameters#

NameType
slugstring
relations?string[]

Returns#

Promise<ProductReview>

Inherited from#

BaseRepository.getBySlug

Defined in#

system/core/backend/src/repositories/base.repository.ts:60


getEntityViews#

â–¸ getEntityViews(entityId, entityType): Promise<any>

Parameters#

NameType
entityIdnumber
entityTypeEDBEntity

Returns#

Promise<any>

Inherited from#

BaseRepository.getEntityViews

Defined in#

system/core/backend/src/repositories/base.repository.ts:144


getFilteredEntities#

â–¸ getFilteredEntities(pagedParams?, filterParams?): Promise<TPagedList<ProductReview>>

Parameters#

NameType
pagedParams?PagedParamsInput<ProductReview>
filterParams?BaseFilterInput

Returns#

Promise<TPagedList<ProductReview>>

Inherited from#

BaseRepository.getFilteredEntities

Defined in#

system/core/backend/src/repositories/base.repository.ts:164


getFilteredProductReviews#

â–¸ getFilteredProductReviews(pagedParams?, filterParams?): Promise<TPagedList<TProductReview>>

Parameters#

NameType
pagedParams?PagedParamsInput<TProductReview>
filterParams?ProductReviewFilter

Returns#

Promise<TPagedList<TProductReview>>

Defined in#

system/core/backend/src/repositories/product-review.repository.ts:130


getPaged#

â–¸ getPaged(params?): Promise<TPagedList<ProductReview>>

Parameters#

NameType
params?TPagedParams<ProductReview>

Returns#

Promise<TPagedList<ProductReview>>

Inherited from#

BaseRepository.getPaged

Defined in#

system/core/backend/src/repositories/base.repository.ts:38


getProductReview#

â–¸ getProductReview(id): Promise<ProductReview>

Parameters#

NameType
idnumber

Returns#

Promise<ProductReview>

Defined in#

system/core/backend/src/repositories/product-review.repository.ts:29


getProductReviews#

â–¸ getProductReviews(params): Promise<TPagedList<TProductReview>>

Parameters#

NameType
paramsTPagedParams<TProductReview>

Returns#

Promise<TPagedList<TProductReview>>

Defined in#

system/core/backend/src/repositories/product-review.repository.ts:25


getSqlBoolStr#

â–¸ getSqlBoolStr(b): "true" | "false" | "1" | "0"

Parameters#

NameType
bboolean

Returns#

"true" | "false" | "1" | "0"

Inherited from#

BaseRepository.getSqlBoolStr

Defined in#

system/core/backend/src/repositories/base.repository.ts:34


getSqlLike#

â–¸ getSqlLike(): "ILIKE" | "LIKE"

Returns#

"ILIKE" | "LIKE"

Inherited from#

BaseRepository.getSqlLike

Defined in#

system/core/backend/src/repositories/base.repository.ts:35


handleProductReviewInput#

â–¸ handleProductReviewInput(productReview, input, action): Promise<void>

Parameters#

NameType
productReviewProductReview
inputTProductReviewInput
action"update" | "create"

Returns#

Promise<void>

Defined in#

system/core/backend/src/repositories/product-review.repository.ts:34


quote#

â–¸ quote(str): string

Parameters#

NameType
strstring

Returns#

string

Inherited from#

BaseRepository.quote

Defined in#

system/core/backend/src/repositories/base.repository.ts:36


updateEntity#

â–¸ updateEntity(id, input): Promise<ProductReview>

Parameters#

NameType
idnumber
inputProductReview

Returns#

Promise<ProductReview>

Inherited from#

BaseRepository.updateEntity

Defined in#

system/core/backend/src/repositories/base.repository.ts:82


updateProductReview#

â–¸ updateProductReview(id, updateProductReview): Promise<ProductReview>

Parameters#

NameType
idnumber
updateProductReviewTProductReviewInput

Returns#

Promise<ProductReview>

Defined in#

system/core/backend/src/repositories/product-review.repository.ts:71