SqlSelect.Apply| Constructor and Description |
|---|
SqlSelectImpl(Connection connection,
DatabaseMock mock,
String sql,
Options options) |
public SqlSelectImpl(Connection connection, DatabaseMock mock, String sql, Options options)
@Nonnull public SqlSelect argBoolean(Boolean arg)
argBoolean in interface SqlSelect@Nonnull public SqlSelect argBoolean(@Nonnull String argName, Boolean arg)
argBoolean in interface SqlSelect@Nonnull public SqlSelect argInteger(Integer arg)
argInteger in interface SqlSelect@Nonnull public SqlSelect argInteger(@Nonnull String argName, Integer arg)
argInteger in interface SqlSelect@Nonnull public SqlSelect argBigDecimal(BigDecimal arg)
argBigDecimal in interface SqlSelect@Nonnull public SqlSelect argBigDecimal(@Nonnull String argName, BigDecimal arg)
argBigDecimal in interface SqlSelect@Nonnull public SqlSelect argDateNowPerApp()
argDateNowPerApp in interface SqlSelect@Nonnull public SqlSelect argDateNowPerApp(@Nonnull String argName)
argDateNowPerApp in interface SqlSelect@Nonnull public SqlSelect argDateNowPerDb()
argDateNowPerDb in interface SqlSelect@Nonnull public SqlSelect argDateNowPerDb(@Nonnull String argName)
argDateNowPerDb in interface SqlSelect@Nonnull public SqlSelect withTimeoutSeconds(int seconds)
withTimeoutSeconds in interface SqlSelect@Nonnull public SqlSelect withMaxRows(int rows)
withMaxRows in interface SqlSelect@Nonnull public SqlSelect apply(SqlSelect.Apply apply)
@Nullable public Boolean queryBooleanOrNull()
queryBooleanOrNull in interface SqlSelectpublic boolean queryBooleanOrFalse()
queryBooleanOrFalse in interface SqlSelectpublic boolean queryBooleanOrTrue()
queryBooleanOrTrue in interface SqlSelect@Nullable public Long queryLongOrNull()
queryLongOrNull in interface SqlSelectpublic long queryLongOrZero()
queryLongOrZero in interface SqlSelect@Nonnull public List<Long> queryLongs()
SqlSelectqueryLongs in interface SqlSelect@Nullable public Integer queryIntegerOrNull()
queryIntegerOrNull in interface SqlSelectpublic int queryIntegerOrZero()
queryIntegerOrZero in interface SqlSelect@Nonnull public List<Integer> queryIntegers()
queryIntegers in interface SqlSelect@Nullable public Float queryFloatOrNull()
queryFloatOrNull in interface SqlSelectpublic float queryFloatOrZero()
queryFloatOrZero in interface SqlSelect@Nonnull public List<Float> queryFloats()
queryFloats in interface SqlSelect@Nullable public Double queryDoubleOrNull()
queryDoubleOrNull in interface SqlSelectpublic double queryDoubleOrZero()
queryDoubleOrZero in interface SqlSelect@Nonnull public List<Double> queryDoubles()
queryDoubles in interface SqlSelect@Nullable public BigDecimal queryBigDecimalOrNull()
queryBigDecimalOrNull in interface SqlSelect@Nonnull public BigDecimal queryBigDecimalOrZero()
queryBigDecimalOrZero in interface SqlSelect@Nonnull public List<BigDecimal> queryBigDecimals()
queryBigDecimals in interface SqlSelectpublic String queryStringOrNull()
queryStringOrNull in interface SqlSelect@Nonnull public String queryStringOrEmpty()
queryStringOrEmpty in interface SqlSelect@Nonnull public List<String> queryStrings()
SqlSelectqueryStrings in interface SqlSelect@Nullable public Date queryDateOrNull()
queryDateOrNull in interface SqlSelect@Nonnull public List<Date> queryDates()
queryDates in interface SqlSelectpublic <T> T query(RowsHandler<T> rowsHandler)
SqlSelectpublic <T> T queryOneOrNull(RowHandler<T> rowHandler)
SqlSelectConstraintViolationException
will be thrown.queryOneOrNull in interface SqlSelectrowHandler - the process() method of this handler will be called once
if there are results, or will not be called if there are
no resultspublic <T> T queryOneOrThrow(RowHandler<T> rowHandler)
SqlSelectConstraintViolationException will be thrown.queryOneOrThrow in interface SqlSelectrowHandler - the process() method of this handler will be called once
if there are results, or will not be called if there are
no resultspublic <T> T queryFirstOrNull(RowHandler<T> rowHandler)
SqlSelectqueryFirstOrNull in interface SqlSelectrowHandler - 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 resultspublic <T> T queryFirstOrThrow(RowHandler<T> rowHandler)
SqlSelectConstraintViolationException
will be thrown. If more than one row is available the first row will be returned.queryFirstOrThrow in interface SqlSelectrowHandler - 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 resultspublic <T> List<T> queryMany(RowHandler<T> rowHandler)
SqlSelectCopyright © 2016. All rights reserved.