Home
last modified time | relevance | path

Searched refs:query (Results 1 – 25 of 80) sorted by relevance

1234

/libcore/luni/src/test/java/libcore/java/sql/
DOldPreparedStatementTest.java181 String query = "insert into zoo(id, family, name) values(?, ?, 'unknown animal')"; in testExecute() local
182 ps = conn.prepareStatement(query); in testExecute()
200 String query = "update zoo set name='Masha', family=? where id=?;"; in testExecute() local
201 ps = conn.prepareStatement(query); in testExecute()
221 …String query = "create table hutch (id integer not null, animal_id integer, address char(20), prim… in testExecute() local
222 ps = conn.prepareStatement(query); in testExecute()
233 String query = "select name, family from zoo where id = ?"; in testExecute() local
234 ps = conn.prepareStatement(query); in testExecute()
245 String query = "select name, family from zoo where id = ?"; in testExecute() local
246 ps = conn.prepareStatement(query); in testExecute()
[all …]
/libcore/ojluni/src/main/java/java/time/format/
DDateTimePrintContext.java132 Chronology temporalChrono = temporal.query(TemporalQueries.chronology()); in adjust()
133 ZoneId temporalZone = temporal.query(TemporalQueries.zoneId()); in adjust()
209 public <R> R query(TemporalQuery<R> query) { in adjust() argument
210 if (query == TemporalQueries.chronology()) { in adjust()
213 if (query == TemporalQueries.zoneId()) { in adjust()
216 if (query == TemporalQueries.precision()) { in adjust()
217 return temporal.query(query); in adjust()
219 return query.queryFrom(this); in adjust()
279 <R> R getValue(TemporalQuery<R> query) {
280 R result = temporal.query(query);
/libcore/ojluni/src/main/java/java/time/temporal/
DTemporalAccessor.java308 default <R> R query(TemporalQuery<R> query) { in query() method
309 if (query == TemporalQueries.zoneId() in query()
310 || query == TemporalQueries.chronology() in query()
311 || query == TemporalQueries.precision()) { in query()
314 return query.queryFrom(this); in query()
DTemporalQueries.java345 temporal.query(TemporalQueries.ZONE_ID);
351 temporal.query(TemporalQueries.CHRONO);
357 temporal.query(TemporalQueries.PRECISION);
374 ZoneId zone = temporal.query(ZONE_ID);
375 return (zone != null ? zone : temporal.query(OFFSET));
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeParseResolver.java157 assertEquals(accessor.query(TemporalQueries.localDate()), null); in test_resolveOneNoChange()
158 assertEquals(accessor.query(TemporalQueries.localTime()), null); in test_resolveOneNoChange()
196 assertEquals(accessor.query(TemporalQueries.localDate()), null); in test_resolveTwoNoChange()
197 assertEquals(accessor.query(TemporalQueries.localTime()), null); in test_resolveTwoNoChange()
228 assertEquals(accessor.query(TemporalQueries.localDate()), null); in test_resolveThreeNoChange()
229 assertEquals(accessor.query(TemporalQueries.localTime()), null); in test_resolveThreeNoChange()
262 assertEquals(accessor.query(TemporalQueries.localDate()), null); in test_resolveOneToField()
263 assertEquals(accessor.query(TemporalQueries.localTime()), null); in test_resolveOneToField()
288 assertEquals(accessor.query(TemporalQueries.localDate()), expectedDate); in test_resolveOneToDate()
289 assertEquals(accessor.query(TemporalQueries.localTime()), null); in test_resolveOneToDate()
[all …]
DTCKZoneIdPrinterParser.java217 …assertEquals(parsed.query(TemporalQueries.zoneId()), expected, "Incorrect zoneId parsing: " + text… in test_parseSuccess_plain()
218 … assertEquals(parsed.query(TemporalQueries.offset()), null, "Incorrect offset parsing: " + text); in test_parseSuccess_plain()
219 … assertEquals(parsed.query(TemporalQueries.zone()), expected, "Incorrect zone parsing: " + text); in test_parseSuccess_plain()
234 …assertEquals(parsed.query(TemporalQueries.zoneId()), expected, "Incorrect zoneId parsing: " + pref… in test_parseSuccess_prefix()
235 …assertEquals(parsed.query(TemporalQueries.offset()), null, "Incorrect offset parsing: " + prefixTe… in test_parseSuccess_prefix()
236 …assertEquals(parsed.query(TemporalQueries.zone()), expected, "Incorrect zone parsing: " + prefixTe… in test_parseSuccess_prefix()
250 …assertEquals(parsed.query(TemporalQueries.zoneId()), expected, "Incorrect zoneId parsing: " + suff… in test_parseSuccess_suffix()
251 …assertEquals(parsed.query(TemporalQueries.offset()), null, "Incorrect offset parsing: " + suffixTe… in test_parseSuccess_suffix()
252 …assertEquals(parsed.query(TemporalQueries.zone()), expected, "Incorrect zone parsing: " + suffixTe… in test_parseSuccess_suffix()
272 assertEquals(parsed.query(TemporalQueries.zoneId()), expected); in test_parseSuccess_caseSensitive()
[all …]
DTCKInstantPrinterParser.java229 assertEquals(f.parse(input).query(DateTimeFormatter.parsedExcessDays()), Period.ZERO); in test_parse_digitsMinusOne()
230 assertEquals(f.parse(input).query(DateTimeFormatter.parsedLeapSecond()), Boolean.FALSE); in test_parse_digitsMinusOne()
239 assertEquals(f.parse(input).query(DateTimeFormatter.parsedExcessDays()), Period.ZERO); in test_parse_digitsNine()
240 assertEquals(f.parse(input).query(DateTimeFormatter.parsedLeapSecond()), Boolean.FALSE); in test_parse_digitsNine()
257 assertEquals(parsed.query(Instant::from), expected); in test_parse_endOfDay()
258 assertEquals(parsed.query(DateTimeFormatter.parsedExcessDays()), Period.ZERO); in test_parse_endOfDay()
259 assertEquals(parsed.query(DateTimeFormatter.parsedLeapSecond()), Boolean.FALSE); in test_parse_endOfDay()
269 assertEquals(parsed.query(Instant::from), expected); in test_parse_leapSecond()
270 assertEquals(parsed.query(DateTimeFormatter.parsedExcessDays()), Period.ZERO); in test_parse_leapSecond()
271 assertEquals(parsed.query(DateTimeFormatter.parsedLeapSecond()), Boolean.TRUE); in test_parse_leapSecond()
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDate.java289 Chronology chrono = temporal.query(TemporalQueries.chronology()); in from()
507 default <R> R query(TemporalQuery<R> query) { in query() argument
508 …if (query == TemporalQueries.zoneId() || query == TemporalQueries.zone() || query == TemporalQueri… in query()
510 } else if (query == TemporalQueries.localTime()) { in query()
512 } else if (query == TemporalQueries.chronology()) { in query()
514 } else if (query == TemporalQueries.precision()) { in query()
519 return query.queryFrom(this); in query()
DChronoLocalDateTime.java169 Chronology chrono = temporal.query(TemporalQueries.chronology()); in from()
336 default <R> R query(TemporalQuery<R> query) { in query() argument
337 …if (query == TemporalQueries.zoneId() || query == TemporalQueries.zone() || query == TemporalQueri… in query()
339 } else if (query == TemporalQueries.localTime()) { in query()
341 } else if (query == TemporalQueries.chronology()) { in query()
343 } else if (query == TemporalQueries.precision()) { in query()
348 return query.queryFrom(this); in query()
DEra.java268 default <R> R query(TemporalQuery<R> query) { in query() argument
269 if (query == TemporalQueries.precision()) { in query()
272 return TemporalAccessor.super.query(query); in query()
DChronoZonedDateTime.java170 Chronology chrono = temporal.query(TemporalQueries.chronology()); in from()
483 default <R> R query(TemporalQuery<R> query) { in query() method
484 if (query == TemporalQueries.zone() || query == TemporalQueries.zoneId()) { in query()
486 } else if (query == TemporalQueries.offset()) { in query()
488 } else if (query == TemporalQueries.localTime()) { in query()
490 } else if (query == TemporalQueries.chronology()) { in query()
492 } else if (query == TemporalQueries.precision()) { in query()
497 return query.queryFrom(this); in query()
DChronology.java179 Chronology obj = temporal.query(TemporalQueries.chronology()); in from()
645 public <R> R query(TemporalQuery<R> query) { in getDisplayName()
646 if (query == TemporalQueries.chronology()) { in getDisplayName()
649 return TemporalAccessor.super.query(query); in getDisplayName()
/libcore/luni/src/test/java/libcore/java/time/format/
DDateTimeFormatterBuilderTest.java79 formatter.parse("Europe/London").query(TemporalQueries.zoneId())); in test_appendZoneRegionId_parse()
81 formatter.parse("UTC").query(TemporalQueries.zoneId())); in test_appendZoneRegionId_parse()
83 formatter.parse("GMT+01:00").query(TemporalQueries.zoneId())); in test_appendZoneRegionId_parse()
87 formatter.parse("UTC+01:00").query(TemporalQueries.zoneId())); in test_appendZoneRegionId_parse()
90 formatter.parse("+01:00").query(TemporalQueries.zoneId())); in test_appendZoneRegionId_parse()
/libcore/ojluni/src/main/java/java/net/
DURL.java193 private transient String query; field in URL
416 query = parts.getQuery(); in URL()
418 if (query != null) { in URL()
419 this.file = path + "?" + query; in URL()
624 query = context.query; in URL()
694 query = file.substring(q+1); in set()
718 String query, String ref) { in set() argument
725 this.file = (query == null || query.isEmpty()) ? path : path + "?" + query; in set()
733 this.query = query; in set()
746 return query; in getQuery()
[all …]
DURLStreamHandler.java130 String query = u.getQuery(); in parseURL() local
147 query = spec.substring(queryStart+1, limit); in parseURL()
271 query = null; in parseURL()
368 setURL(u, protocol, host, port, authority, userInfo, path, query, ref); in parseURL()
568 String query, String ref) { in setURL() argument
574 u.set(u.getProtocol(), host, port, authority, userInfo, path, query, ref); in setURL() local
615 String query = null; in setURL() local
619 query = file.substring(q+1); in setURL()
624 setURL(u, protocol, host, port, authority, userInfo, path, query, ref); in setURL()
DURI.java487 private transient String query; field in URI
662 String path, String query, String fragment) in URI() argument
667 path, query, fragment); in URI()
735 String path, String query, String fragment) in URI() argument
740 path, query, fragment); in URI()
1321 return query; in getRawQuery()
1335 if ((decodedQuery == null) && (query != null)) in getQuery()
1336 decodedQuery = decode(query); in getQuery()
1425 if (!equal(this.query, that.query)) return false; in equals()
1460 h = hash(h, query); in hashCode()
[all …]
/libcore/ojluni/src/main/java/java/time/
DDayOfWeek.java406 public <R> R query(TemporalQuery<R> query) { in query() argument
407 if (query == TemporalQueries.precision()) { in query()
410 return TemporalAccessor.super.query(query); in query()
DMonth.java563 public <R> R query(TemporalQuery<R> query) { in query() argument
564 if (query == TemporalQueries.chronology()) { in query()
566 } else if (query == TemporalQueries.precision()) { in query()
569 return TemporalAccessor.super.query(query); in query()
DZoneId.java458 ZoneId obj = temporal.query(TemporalQueries.zone()); in from()
530 public <R> R query(TemporalQuery<R> query) { in toTemporal() method in ZoneId
531 if (query == TemporalQueries.zoneId()) { in toTemporal()
534 return TemporalAccessor.super.query(query); in toTemporal()
DZoneOffset.java339 ZoneOffset offset = temporal.query(TemporalQueries.offset()); in from()
646 public <R> R query(TemporalQuery<R> query) {
647 if (query == TemporalQueries.offset() || query == TemporalQueries.zone()) {
650 return TemporalAccessor.super.query(query);
DOffsetDateTime.java354 LocalDate date = temporal.query(TemporalQueries.localDate()); in from()
355 LocalTime time = temporal.query(TemporalQueries.localTime()); in from()
1538 public <R> R query(TemporalQuery<R> query) { in query() argument
1539 if (query == TemporalQueries.offset() || query == TemporalQueries.zone()) { in query()
1541 } else if (query == TemporalQueries.zoneId()) { in query()
1543 } else if (query == TemporalQueries.localDate()) { in query()
1545 } else if (query == TemporalQueries.localTime()) { in query()
1547 } else if (query == TemporalQueries.chronology()) { in query()
1549 } else if (query == TemporalQueries.precision()) { in query()
1554 return query.queryFrom(this); in query()
DOffsetTime.java1072 public <R> R query(TemporalQuery<R> query) { in query() method in OffsetTime
1073 if (query == TemporalQueries.offset() || query == TemporalQueries.zone()) { in query()
1075 …} else if (query == TemporalQueries.zoneId() | query == TemporalQueries.chronology() || query == T… in query()
1077 } else if (query == TemporalQueries.localTime()) { in query()
1079 } else if (query == TemporalQueries.precision()) { in query()
1084 return query.queryFrom(this); in query()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKIsoChronology.java111 public <R> R query(TemporalQuery<R> query) { in factory_from_TemporalAccessor_chronology()
112 if (query == TemporalQueries.chronology()) { in factory_from_TemporalAccessor_chronology()
134 public <R> R query(TemporalQuery<R> query) { in factory_from_TemporalAccessor_noChronology()
135 if (query == TemporalQueries.chronology()) { in factory_from_TemporalAccessor_noChronology()
170 public <R> R query(TemporalQuery<R> query) { in test_date_TemporalAccessor()
171 if (query == TemporalQueries.localDate()) { in test_date_TemporalAccessor()
209 public <R> R query(TemporalQuery<R> query) { in test_localDateTime_TemporalAccessor()
210 if (query == TemporalQueries.localDate()) { in test_localDateTime_TemporalAccessor()
213 if (query == TemporalQueries.localTime()) { in test_localDateTime_TemporalAccessor()
258 public <R> R query(TemporalQuery<R> query) { in test_zonedDateTime_TemporalAccessor()
[all …]
/libcore/luni/src/test/java/tests/java/sql/
DDatabaseMetaDataNotSupportedTest.java139 String query = "GRANT CREATE, SELECT ON " + DatabaseCreator.TEST_TABLE1 in test_allTablesAreSelectable() local
141 statement.execute(query); in test_allTablesAreSelectable()
156 query = "REVOKE SELECT ON " + DatabaseCreator.TEST_TABLE1 + " FROM " in test_allTablesAreSelectable()
158 statement.execute(query); in test_allTablesAreSelectable()
170 query = "REVOKE CREATE ON " + DatabaseCreator.TEST_TABLE1 + " FROM " in test_allTablesAreSelectable()
172 statement.execute(query); in test_allTablesAreSelectable()
305 String query = "GRANT REFERENCES(id) ON " + DatabaseCreator.TEST_TABLE1 in test_getColumnPrivilegesLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_String() local
307 statement.execute(query); in test_getColumnPrivilegesLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_String()
337 query = "REVOKE REFERENCES(id) ON " + DatabaseCreator.TEST_TABLE1 in test_getColumnPrivilegesLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_String()
339 statement.execute(query); in test_getColumnPrivilegesLjava_lang_StringLjava_lang_StringLjava_lang_StringLjava_lang_String()
[all …]
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestNumberParser.java181 assertEquals(parsed.query(TemporalQueries.chronology()), null); in test_parse_fresh()
182 assertEquals(parsed.query(TemporalQueries.zoneId()), null); in test_parse_fresh()
201 assertEquals(parsed.query(TemporalQueries.chronology()), null); in test_parse_textField()
202 assertEquals(parsed.query(TemporalQueries.zoneId()), null); in test_parse_textField()
316 assertEquals(parsed.query(TemporalQueries.chronology()), null); in test_parseSignsStrict()
317 assertEquals(parsed.query(TemporalQueries.zoneId()), null); in test_parseSignsStrict()
426 assertEquals(parsed.query(TemporalQueries.chronology()), null); in test_parseSignsLenient()
427 assertEquals(parsed.query(TemporalQueries.zoneId()), null); in test_parseSignsLenient()
517 assertEquals(parsed.query(TemporalQueries.chronology()), null); in test_parseDigitsLenient()
518 assertEquals(parsed.query(TemporalQueries.zoneId()), null); in test_parseDigitsLenient()
[all …]

1234