mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-25 20:01:45 +00:00
Initial Move from Azure DevOps to GitHub
This commit is contained in:
27
src/Explorer/Tables/DataTable/TableEntityCache.ts
Normal file
27
src/Explorer/Tables/DataTable/TableEntityCache.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import * as Utilities from "../Utilities";
|
||||
import * as Entities from "../Entities";
|
||||
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() {
|
||||
this.tableQuery = null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user