Home
last modified time | relevance | path

Searched refs:query (Results 1 – 25 of 82) 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()
286 <R> R getValue(TemporalQuery<R> query) {
287 R result = temporal.query(query);
[all …]
/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 …]
DTCKInstantPrinterParser.java244 assertEquals(f.parse(input).query(DateTimeFormatter.parsedExcessDays()), Period.ZERO); in test_parse_digitsMinusOne()
245 assertEquals(f.parse(input).query(DateTimeFormatter.parsedLeapSecond()), Boolean.FALSE); in test_parse_digitsMinusOne()
272 assertEquals(f.parse(input).query(DateTimeFormatter.parsedExcessDays()), Period.ZERO); in test_parse_digitsNine()
273 assertEquals(f.parse(input).query(DateTimeFormatter.parsedLeapSecond()), Boolean.FALSE); in test_parse_digitsNine()
296 assertEquals(parsed.query(Instant::from), expected); in test_parse_endOfDay()
297 assertEquals(parsed.query(DateTimeFormatter.parsedExcessDays()), Period.ZERO); in test_parse_endOfDay()
298 assertEquals(parsed.query(DateTimeFormatter.parsedLeapSecond()), Boolean.FALSE); in test_parse_endOfDay()
308 assertEquals(parsed.query(Instant::from), expected); in test_parse_leapSecond()
309 assertEquals(parsed.query(DateTimeFormatter.parsedExcessDays()), Period.ZERO); in test_parse_leapSecond()
310 assertEquals(parsed.query(DateTimeFormatter.parsedLeapSecond()), Boolean.TRUE); in test_parse_leapSecond()
/libcore/ojluni/src/main/java/java/time/temporal/
DTemporalAccessor.java308 default <R> R query(TemporalQuery<R> query) { in query() argument
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.java347 return temporal.query(TemporalQueries.ZONE_ID);
362 return temporal.query(TemporalQueries.CHRONO);
378 return temporal.query(TemporalQueries.PRECISION);
412 ZoneId zone = temporal.query(ZONE_ID);
413 return (zone != null ? zone : temporal.query(OFFSET));
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDate.java292 Chronology chrono = temporal.query(TemporalQueries.chronology()); in from()
510 default <R> R query(TemporalQuery<R> query) { in query() argument
511 …if (query == TemporalQueries.zoneId() || query == TemporalQueries.zone() || query == TemporalQueri… in query()
513 } else if (query == TemporalQueries.localTime()) { in query()
515 } else if (query == TemporalQueries.chronology()) { in query()
517 } else if (query == TemporalQueries.precision()) { in query()
522 return query.queryFrom(this); in query()
DChronoLocalDateTime.java176 Chronology chrono = temporal.query(TemporalQueries.chronology()); in from()
343 default <R> R query(TemporalQuery<R> query) { in query() method
344 …if (query == TemporalQueries.zoneId() || query == TemporalQueries.zone() || query == TemporalQueri… in query()
346 } else if (query == TemporalQueries.localTime()) { in query()
348 } else if (query == TemporalQueries.chronology()) { in query()
350 } else if (query == TemporalQueries.precision()) { in query()
355 return query.queryFrom(this); in query()
DEra.java268 default <R> R query(TemporalQuery<R> query) { in query() method
269 if (query == TemporalQueries.precision()) { in query()
272 return TemporalAccessor.super.query(query); in query()
DChronoZonedDateTime.java177 Chronology chrono = temporal.query(TemporalQueries.chronology()); in from()
490 default <R> R query(TemporalQuery<R> query) { in query() argument
491 if (query == TemporalQueries.zone() || query == TemporalQueries.zoneId()) { in query()
493 } else if (query == TemporalQueries.offset()) { in query()
495 } else if (query == TemporalQueries.localTime()) { in query()
497 } else if (query == TemporalQueries.chronology()) { in query()
499 } else if (query == TemporalQueries.precision()) { in query()
504 return query.queryFrom(this); in query()
DChronology.java184 Chronology obj = temporal.query(TemporalQueries.chronology()); in from()
657 public <R> R query(TemporalQuery<R> query) { in getDisplayName()
658 if (query == TemporalQueries.chronology()) { in getDisplayName()
661 return TemporalAccessor.super.query(query); in getDisplayName()
/libcore/luni/src/test/java/libcore/java/time/format/
DDateTimeFormatterBuilderTest.java81 formatter.parse("Europe/London").query(TemporalQueries.zoneId())); in test_appendZoneRegionId_parse()
83 formatter.parse("UTC").query(TemporalQueries.zoneId())); in test_appendZoneRegionId_parse()
85 formatter.parse("GMT+01:00").query(TemporalQueries.zoneId())); in test_appendZoneRegionId_parse()
89 formatter.parse("UTC+01:00").query(TemporalQueries.zoneId())); in test_appendZoneRegionId_parse()
92 formatter.parse("+01:00").query(TemporalQueries.zoneId())); in test_appendZoneRegionId_parse()
117 formatter.parse("Pacific Time").query(TemporalQueries.zoneId())); in test_appendGenericZoneText()
/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() method in DayOfWeek
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.java456 ZoneId obj = temporal.query(TemporalQueries.zone()); in from()
528 public <R> R query(TemporalQuery<R> query) { in toTemporal() argument
529 if (query == TemporalQueries.zoneId()) { in toTemporal()
532 return TemporalAccessor.super.query(query); in toTemporal()
DZoneOffset.java340 ZoneOffset offset = temporal.query(TemporalQueries.offset()); in from()
647 public <R> R query(TemporalQuery<R> query) {
648 if (query == TemporalQueries.offset() || query == TemporalQueries.zone()) {
651 return TemporalAccessor.super.query(query);
DInstant.java1048 public <R> R query(TemporalQuery<R> query) { in query() method in Instant
1049 if (query == TemporalQueries.precision()) { in query()
1053 if (query == TemporalQueries.chronology() || query == TemporalQueries.zoneId() || in query()
1054 query == TemporalQueries.zone() || query == TemporalQueries.offset() || in query()
1055 query == TemporalQueries.localDate() || query == TemporalQueries.localTime()) { in query()
1058 return query.queryFrom(this); in query()
DOffsetTime.java1073 public <R> R query(TemporalQuery<R> query) { in query() argument
1074 if (query == TemporalQueries.offset() || query == TemporalQueries.zone()) { in query()
1076 …} else if (query == TemporalQueries.zoneId() | query == TemporalQueries.chronology() || query == T… in query()
1078 } else if (query == TemporalQueries.localTime()) { in query()
1080 } else if (query == TemporalQueries.precision()) { in query()
1085 return query.queryFrom(this); in query()
DOffsetDateTime.java355 LocalDate date = temporal.query(TemporalQueries.localDate()); in from()
356 LocalTime time = temporal.query(TemporalQueries.localTime()); in from()
1538 public <R> R query(TemporalQuery<R> query) { in query() method in OffsetDateTime
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()
/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/tck/java/time/chrono/
DTCKIsoChronology.java119 public <R> R query(TemporalQuery<R> query) { in factory_from_TemporalAccessor_chronology()
120 if (query == TemporalQueries.chronology()) { in factory_from_TemporalAccessor_chronology()
142 public <R> R query(TemporalQuery<R> query) { in factory_from_TemporalAccessor_noChronology()
143 if (query == TemporalQueries.chronology()) { in factory_from_TemporalAccessor_noChronology()
178 public <R> R query(TemporalQuery<R> query) { in test_date_TemporalAccessor()
179 if (query == TemporalQueries.localDate()) { in test_date_TemporalAccessor()
217 public <R> R query(TemporalQuery<R> query) { in test_localDateTime_TemporalAccessor()
218 if (query == TemporalQueries.localDate()) { in test_localDateTime_TemporalAccessor()
221 if (query == TemporalQueries.localTime()) { in test_localDateTime_TemporalAccessor()
266 public <R> R query(TemporalQuery<R> query) { in test_zonedDateTime_TemporalAccessor()
[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