|
| 1 | +@file:Suppress("unused") |
| 2 | + |
| 3 | +package com.github.t9t.jooq.json |
| 4 | + |
| 5 | +import org.jooq.Condition |
| 6 | +import org.jooq.Field |
| 7 | +import org.jooq.JSONB |
| 8 | + |
| 9 | +/** |
| 10 | + * @see JsonbDSL.arrayElement |
| 11 | + */ |
| 12 | +fun Field<JSONB>.arrayElement(index: Int): Field<JSONB> = JsonbDSL.arrayElement(this, index) |
| 13 | + |
| 14 | +/** |
| 15 | + * @see JsonbDSL.arrayElementText |
| 16 | + */ |
| 17 | +fun Field<JSONB>.arrayElementText(index: Int): Field<String> = JsonbDSL.arrayElementText(this, index) |
| 18 | + |
| 19 | +/** |
| 20 | + * @see JsonbDSL.fieldByKey |
| 21 | + */ |
| 22 | +fun Field<JSONB>.fieldByKey(key: String): Field<JSONB> = JsonbDSL.fieldByKey(this, key) |
| 23 | + |
| 24 | +/** |
| 25 | + * @see JsonbDSL.fieldByKeyText |
| 26 | + */ |
| 27 | +fun Field<JSONB>.fieldByKeyText(key: String): Field<String> = JsonbDSL.fieldByKeyText(this, key) |
| 28 | + |
| 29 | +/** |
| 30 | + * @see JsonbDSL.objectAtPath |
| 31 | + */ |
| 32 | +fun Field<JSONB>.objectAtPath(vararg path: String): Field<JSONB> = JsonbDSL.objectAtPath(this, *path) |
| 33 | + |
| 34 | +/** |
| 35 | + * @see JsonbDSL.objectAtPath |
| 36 | + */ |
| 37 | +fun Field<JSONB>.objectAtPath(path: Collection<String>): Field<JSONB> = JsonbDSL.objectAtPath(this, path) |
| 38 | + |
| 39 | +/** |
| 40 | + * @see JsonbDSL.objectAtPathText |
| 41 | + */ |
| 42 | +fun Field<JSONB>.objectAtPathText(vararg path: String): Field<String> = JsonbDSL.objectAtPathText(this, *path) |
| 43 | + |
| 44 | +/** |
| 45 | + * @see JsonbDSL.objectAtPathText |
| 46 | + */ |
| 47 | +fun Field<JSONB>.objectAtPathText(path: Collection<String>): Field<String> = JsonbDSL.objectAtPathText(this, path) |
| 48 | + |
| 49 | +/** |
| 50 | + * @see JsonbDSL.contains |
| 51 | + */ |
| 52 | +fun Field<JSONB>.contains(other: Field<JSONB>): Condition = JsonbDSL.contains(this, other) |
| 53 | + |
| 54 | +/** |
| 55 | + * @see JsonbDSL.containedIn |
| 56 | + */ |
| 57 | +fun Field<JSONB>.containedIn(other: Field<JSONB>): Condition = JsonbDSL.containedIn(this, other) |
| 58 | + |
| 59 | +/** |
| 60 | + * @see JsonbDSL.hasKey |
| 61 | + */ |
| 62 | +fun Field<JSONB>.hasKey(key: String): Condition = JsonbDSL.hasKey(this, key) |
| 63 | + |
| 64 | +/** |
| 65 | + * @see JsonbDSL.hasAnyKey |
| 66 | + */ |
| 67 | +fun Field<JSONB>.hasAnyKey(vararg keys: String): Condition = JsonbDSL.hasAnyKey(this, *keys) |
| 68 | + |
| 69 | +/** |
| 70 | + * @see JsonbDSL.hasAnyKey |
| 71 | + */ |
| 72 | +fun Field<JSONB>.hasAnyKey(keys: Collection<String>): Condition = JsonbDSL.hasAnyKey(this, keys) |
| 73 | + |
| 74 | +/** |
| 75 | + * @see JsonbDSL.hasAllKeys |
| 76 | + */ |
| 77 | +fun Field<JSONB>.hasAllKeys(vararg keys: String): Condition = JsonbDSL.hasAllKeys(this, *keys) |
| 78 | + |
| 79 | +/** |
| 80 | + * @see JsonbDSL.hasAllKeys |
| 81 | + */ |
| 82 | +fun Field<JSONB>.hasAllKeys(keys: Collection<String>): Condition = JsonbDSL.hasAllKeys(this, keys) |
| 83 | + |
| 84 | +/** |
| 85 | + * @see JsonbDSL.concat |
| 86 | + */ |
| 87 | +fun Field<JSONB>.concat(field2: Field<JSONB>): Field<JSONB> = JsonbDSL.concat(this, field2) |
| 88 | + |
| 89 | +/** |
| 90 | + * @see JsonbDSL.delete |
| 91 | + */ |
| 92 | +fun Field<JSONB>.delete(keyOrElement: String): Field<JSONB> = JsonbDSL.delete(this, keyOrElement) |
| 93 | + |
| 94 | +/** |
| 95 | + * @see JsonbDSL.delete |
| 96 | + */ |
| 97 | +fun Field<JSONB>.delete(vararg keysOrElements: String): Field<JSONB> = JsonbDSL.delete(this, *keysOrElements) |
| 98 | + |
| 99 | +/** |
| 100 | + * @see JsonbDSL.deleteElement |
| 101 | + */ |
| 102 | +fun Field<JSONB>.deleteElement(index: Int): Field<JSONB> = JsonbDSL.deleteElement(this, index) |
| 103 | + |
| 104 | +/** |
| 105 | + * @see JsonbDSL.deletePath |
| 106 | + */ |
| 107 | +fun Field<JSONB>.deletePath(vararg path: String): Field<JSONB> = JsonbDSL.deletePath(this, *path) |
| 108 | + |
| 109 | +/** |
| 110 | + * @see JsonbDSL.arrayLength |
| 111 | + */ |
| 112 | +fun arrayLength(jsonField: Field<JSONB>): Field<Int> = JsonbDSL.arrayLength(jsonField) |
| 113 | + |
| 114 | +/** |
| 115 | + * @see JsonbDSL.extractPath |
| 116 | + */ |
| 117 | +fun extractPath(jsonField: Field<JSONB>, vararg path: String): Field<JSONB> = JsonbDSL.extractPath(jsonField, *path) |
| 118 | + |
| 119 | +/** |
| 120 | + * @see JsonbDSL.extractPath |
| 121 | + */ |
| 122 | +fun extractPath(jsonField: Field<JSONB>, path: Collection<String>): Field<JSONB> = JsonbDSL.extractPath(jsonField, *path.toTypedArray()) |
| 123 | + |
| 124 | +/** |
| 125 | + * @see JsonbDSL.extractPathText |
| 126 | + */ |
| 127 | +fun extractPathText(jsonField: Field<JSONB>, vararg path: String): Field<String> = JsonbDSL.extractPathText(jsonField, *path) |
| 128 | + |
| 129 | +/** |
| 130 | + * @see JsonbDSL.extractPathText |
| 131 | + */ |
| 132 | +fun extractPathText(jsonField: Field<JSONB>, path: Collection<String>): Field<String> = JsonbDSL.extractPathText(jsonField, *path.toTypedArray()) |
| 133 | + |
| 134 | +/** |
| 135 | + * @see JsonbDSL.typeOf |
| 136 | + */ |
| 137 | +fun typeOf(jsonField: Field<JSONB>): Field<String> = JsonbDSL.typeOf(jsonField) |
| 138 | + |
| 139 | +/** |
| 140 | + * @see JsonbDSL.stripNulls |
| 141 | + */ |
| 142 | +fun stripNulls(jsonField: Field<JSONB>): Field<JSONB> = JsonbDSL.stripNulls(jsonField) |
| 143 | + |
| 144 | +/** |
| 145 | + * @see JsonbDSL.pretty |
| 146 | + */ |
| 147 | +fun pretty(jsonField: Field<JSONB>): Field<String> = JsonbDSL.pretty(jsonField) |
0 commit comments