// Package: com.lightningkite.lightningdb // Generated by Khrysalis - this file will be overwritten. import { Condition } from './Condition' import { path } from './ConditionBuilder' import { DataClassPath } from './DataClassPath' import { SortPart } from './SortPart' import { ReifiedType, setUpDataClass } from '@lightningkite/khrysalis-runtime' //! Declares com.lightningkite.lightningdb.Query export class Query { public constructor(public readonly condition: Condition = new Condition.Always(), public readonly orderBy: Array> = [], public readonly skip: number = 0, public readonly limit: number = 100) { } public static properties = ["condition", "orderBy", "skip", "limit"] public static propertyTypes(T: ReifiedType) { return {condition: [Condition, T], orderBy: [Array, [SortPart, T]], skip: [Number], limit: [Number]} } copy: (values: Partial>) => this; equals: (other: any) => boolean; hashCode: () => number; public static constructorListcomSortPartcomQueryTIntIntFunction1comDataClassPathcomQueryTQueryTConditioncomQueryT( orderBy: Array> = [], skip: number = 0, limit: number = 100, makeCondition: ((a: DataClassPath) => Condition), ) { let result = new Query(makeCondition(path()), orderBy, skip, limit); return result; } } setUpDataClass(Query)