mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-04-22 01:24:21 +01:00
28 lines
700 B
TypeScript
28 lines
700 B
TypeScript
import * as Entities from "../Entities";
|
|
import * as Utilities from "../Utilities";
|
|
import CacheBase from "./CacheBase";
|
|
|
|
export default class TableEntityCache extends CacheBase<Entities.ITableEntity> {
|
|
private _tableQuery: Entities.ITableQuery;
|
|
|
|
constructor() {
|
|
super();
|
|
this.data = null;
|
|
this._tableQuery = null;
|
|
this.serverCallInProgress = false;
|
|
this.sortOrder = null;
|
|
}
|
|
|
|
public get tableQuery(): Entities.ITableQuery {
|
|
return Utilities.copyTableQuery(this._tableQuery);
|
|
}
|
|
|
|
public set tableQuery(tableQuery: Entities.ITableQuery) {
|
|
this._tableQuery = Utilities.copyTableQuery(tableQuery);
|
|
}
|
|
|
|
public preClear(): void {
|
|
this.tableQuery = null;
|
|
}
|
|
}
|