public interface SqlSelect
| Modifier and Type | Interface and Description |
|---|---|
static interface |
SqlSelect.Apply |
@Nonnull @CheckReturnValue SqlSelect argBoolean(Boolean arg)
@Nonnull @CheckReturnValue SqlSelect argInteger(Integer arg)
@Nonnull @CheckReturnValue SqlSelect argLong(Long arg)
@Nonnull @CheckReturnValue SqlSelect argFloat(Float arg)
@Nonnull @CheckReturnValue SqlSelect argDouble(Double arg)
@Nonnull @CheckReturnValue SqlSelect argBigDecimal(BigDecimal arg)
@Nonnull @CheckReturnValue SqlSelect argBigDecimal(@Nonnull String argName, BigDecimal arg)
@Nonnull @CheckReturnValue SqlSelect argString(String arg)
@Nonnull @CheckReturnValue SqlSelect argDate(Date arg)
@Nonnull @CheckReturnValue SqlSelect argLocalDate(LocalDate arg)
@Nonnull @CheckReturnValue SqlSelect argLocalDate(@Nonnull String argName, LocalDate arg)
@Nonnull @CheckReturnValue SqlSelect argDateNowPerApp()
@Nonnull @CheckReturnValue SqlSelect argDateNowPerApp(@Nonnull String argName)
@Nonnull @CheckReturnValue SqlSelect argDateNowPerDb()
@Nonnull @CheckReturnValue SqlSelect argDateNowPerDb(@Nonnull String argName)
@Nonnull @CheckReturnValue SqlSelect withTimeoutSeconds(int seconds)
@Nonnull @CheckReturnValue SqlSelect withMaxRows(int rows)
@Nonnull @CheckReturnValue SqlSelect withArgs(SqlArgs args)
@Nonnull @CheckReturnValue SqlSelect apply(SqlSelect.Apply apply)
@Nonnull @CheckReturnValue SqlSelect fetchSize(int fetchSize)
@Nullable @CheckReturnValue Boolean queryBooleanOrNull()
@CheckReturnValue boolean queryBooleanOrFalse()
@CheckReturnValue boolean queryBooleanOrTrue()
@Nullable @CheckReturnValue Long queryLongOrNull()
@CheckReturnValue long queryLongOrZero()
@Nonnull @CheckReturnValue List<Long> queryLongs()
@Nullable @CheckReturnValue Integer queryIntegerOrNull()
@CheckReturnValue int queryIntegerOrZero()
@Nonnull @CheckReturnValue List<Integer> queryIntegers()
@Nullable @CheckReturnValue Float queryFloatOrNull()
@CheckReturnValue float queryFloatOrZero()
@Nonnull @CheckReturnValue List<Float> queryFloats()
@Nullable @CheckReturnValue Double queryDoubleOrNull()
@CheckReturnValue double queryDoubleOrZero()
@Nonnull @CheckReturnValue List<Double> queryDoubles()
@Nullable @CheckReturnValue BigDecimal queryBigDecimalOrNull()
@Nonnull @CheckReturnValue BigDecimal queryBigDecimalOrZero()
@Nonnull @CheckReturnValue List<BigDecimal> queryBigDecimals()
@Nullable @CheckReturnValue String queryStringOrNull()
@Nonnull @CheckReturnValue String queryStringOrEmpty()
@Nonnull @CheckReturnValue List<String> queryStrings()
@Nullable @CheckReturnValue Date queryDateOrNull()
@Nonnull @CheckReturnValue List<Date> queryDates()
@Nullable @CheckReturnValue LocalDate queryLocalDateOrNull()
@Nonnull @CheckReturnValue List<LocalDate> queryLocalDates()
<T> T query(RowsHandler<T> rowsHandler)
rowsHandler - the process() method of this handler will be called once
and it will be responsible for iterating the results<T> T queryOneOrNull(RowHandler<T> rowHandler)
ConstraintViolationException
will be thrown.rowHandler - the process() method of this handler will be called once
if there are results, or will not be called if there are
no results<T> T queryOneOrThrow(RowHandler<T> rowHandler)
ConstraintViolationException will be thrown.rowHandler - the process() method of this handler will be called once
if there are results, or will not be called if there are
no results<T> T queryFirstOrNull(RowHandler<T> rowHandler)
rowHandler - the process() method of this handler will be called once
if there are results (for the first row), or will not be
called if there are no results<T> T queryFirstOrThrow(RowHandler<T> rowHandler)
ConstraintViolationException
will be thrown. If more than one row is available the first row will be returned.rowHandler - the process() method of this handler will be called once
if there are results (for the first row), or will not be
called if there are no results<T> List<T> queryMany(RowHandler<T> rowHandler)
rowHandler - the process() method of this handler will be called once
for each row in the result, or will not be called if there are
no results. Only non-null values returned will be added to the
result list.Copyright © 2020. All rights reserved.