Package com.landawn.abacus.jdbc.dao
Interface ReadOnlyDao<T,SB extends com.landawn.abacus.util.SQLBuilder,TD extends ReadOnlyDao<T,SB,TD>>
- Type Parameters:
T
-SB
-TD
-
- All Superinterfaces:
Dao<T,
,SB, TD> NoUpdateDao<T,
SB, TD>
- All Known Subinterfaces:
ReadOnlyCrudDao<T,
,ID, SB, TD> ReadOnlyCrudDaoL<T,
,SB, TD> UncheckedReadOnlyCrudDao<T,
,ID, SB, TD> UncheckedReadOnlyCrudDaoL<T,
,SB, TD> UncheckedReadOnlyDao<T,
SB, TD>
@Beta
public interface ReadOnlyDao<T,SB extends com.landawn.abacus.util.SQLBuilder,TD extends ReadOnlyDao<T,SB,TD>>
extends NoUpdateDao<T,SB,TD>
TODO
- See Also:
-
ConditionFactory
ConditionFactory.CF
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
batchSave
(String namedInsertSQL, Collection<? extends T> entitiesToSave) Deprecated.unsupported Operationdefault void
batchSave
(String namedInsertSQL, Collection<? extends T> entitiesToSave, int batchSize) Deprecated.unsupported Operationdefault void
batchSave
(Collection<? extends T> entitiesToSave) Deprecated.unsupported Operationdefault void
batchSave
(Collection<? extends T> entitiesToSave, int batchSize) Deprecated.unsupported Operationdefault void
batchSave
(Collection<? extends T> entitiesToSave, Collection<String> propNamesToSave) Deprecated.unsupported Operationdefault void
batchSave
(Collection<? extends T> entitiesToSave, Collection<String> propNamesToSave, int batchSize) Deprecated.unsupported Operationdefault NamedQuery
prepareNamedQuery
(com.landawn.abacus.util.ParsedSql namedQuery) default NamedQuery
prepareNamedQuery
(com.landawn.abacus.util.ParsedSql namedQuery, boolean generateKeys) Deprecated.unsupported Operationdefault NamedQuery
prepareNamedQuery
(com.landawn.abacus.util.ParsedSql namedQuery, int[] returnColumnIndexes) Deprecated.unsupported Operationdefault NamedQuery
prepareNamedQuery
(com.landawn.abacus.util.ParsedSql namedQuery, String[] returnColumnNames) Deprecated.unsupported Operationdefault NamedQuery
prepareNamedQuery
(String namedQuery) default NamedQuery
prepareNamedQuery
(String namedQuery, boolean generateKeys) Deprecated.unsupported Operationdefault NamedQuery
prepareNamedQuery
(String namedQuery, int[] returnColumnIndexes) Deprecated.unsupported Operationdefault NamedQuery
prepareNamedQuery
(String namedQuery, String[] returnColumnNames) Deprecated.unsupported Operationdefault PreparedQuery
prepareQuery
(String query) default PreparedQuery
prepareQuery
(String query, boolean generateKeys) Deprecated.unsupported Operationdefault PreparedQuery
prepareQuery
(String query, int[] returnColumnIndexes) Deprecated.unsupported Operationdefault PreparedQuery
prepareQuery
(String query, String[] returnColumnNames) Deprecated.unsupported Operationdefault void
Deprecated.unsupported Operationdefault void
Deprecated.unsupported Operationdefault void
save
(T entityToSave, Collection<String> propNamesToSave) Deprecated.unsupported OperationMethods inherited from interface com.landawn.abacus.jdbc.dao.Dao
asyncCall, asyncCall, asyncExecutor, asyncRun, asyncRun, count, dataSource, executor, exists, findFirst, findFirst, findFirst, findFirst, findFirst, findFirst, findOnlyOne, findOnlyOne, findOnlyOne, findOnlyOne, findOnlyOne, findOnlyOne, foreach, foreach, forEach, forEach, forEach, forEach, forEach, forEach, forEach, forEach, list, list, list, list, list, list, list, list, list, list, list, list, list, notExists, paginate, paginate, paginate, paginate, paginate, paginate, prepareNamedQuery, prepareNamedQuery, prepareNamedQueryForBigResult, prepareNamedQueryForBigResult, prepareNamedQueryForBigResult, prepareQuery, prepareQuery, prepareQueryForBigResult, prepareQueryForBigResult, prepareQueryForBigResult, query, query, query, query, query, query, queryForBoolean, queryForByte, queryForBytes, queryForChar, queryForDate, queryForDouble, queryForFloat, queryForInt, queryForLong, queryForShort, queryForSingleNonNull, queryForSingleNonNull, queryForSingleResult, queryForString, queryForTime, queryForTimestamp, queryForUniqueNonNull, queryForUniqueNonNull, queryForUniqueResult, sqlMapper, stream, stream, stream, stream, stream, stream, stream, stream, stream, stream, stream, stream, stream, targetEntityClass, targetTableName
Methods inherited from interface com.landawn.abacus.jdbc.dao.NoUpdateDao
delete, prepareCallableQuery, prepareCallableQuery, prepareNamedQuery, prepareNamedQuery, prepareQuery, update, update, update, update, upsert
-
Method Details
-
prepareQuery
- Specified by:
prepareQuery
in interfaceDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Specified by:
prepareQuery
in interfaceNoUpdateDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Parameters:
query
-- Returns:
- Throws:
SQLException
UnsupportedOperationException
- if the specifiedquery
is not aselect
sql statement.
-
prepareQuery
@Deprecated default PreparedQuery prepareQuery(String query, boolean generateKeys) throws SQLException, UnsupportedOperationException Deprecated.unsupported Operation- Specified by:
prepareQuery
in interfaceDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Specified by:
prepareQuery
in interfaceNoUpdateDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Parameters:
query
-generateKeys
-- Returns:
- Throws:
SQLException
UnsupportedOperationException
-
prepareQuery
@Deprecated default PreparedQuery prepareQuery(String query, int[] returnColumnIndexes) throws SQLException, UnsupportedOperationException Deprecated.unsupported Operation- Specified by:
prepareQuery
in interfaceDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Specified by:
prepareQuery
in interfaceNoUpdateDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Parameters:
query
-returnColumnIndexes
-- Returns:
- Throws:
SQLException
UnsupportedOperationException
-
prepareQuery
@Deprecated default PreparedQuery prepareQuery(String query, String[] returnColumnNames) throws SQLException, UnsupportedOperationException Deprecated.unsupported Operation- Specified by:
prepareQuery
in interfaceDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Specified by:
prepareQuery
in interfaceNoUpdateDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Parameters:
query
-returnColumnNames
-- Returns:
- Throws:
SQLException
UnsupportedOperationException
-
prepareNamedQuery
default NamedQuery prepareNamedQuery(String namedQuery) throws SQLException, UnsupportedOperationException - Specified by:
prepareNamedQuery
in interfaceDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Specified by:
prepareNamedQuery
in interfaceNoUpdateDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Parameters:
namedQuery
-- Returns:
- Throws:
SQLException
UnsupportedOperationException
- if the specifiednamedQuery
is not aselect
sql statement.
-
prepareNamedQuery
@Deprecated default NamedQuery prepareNamedQuery(String namedQuery, boolean generateKeys) throws SQLException, UnsupportedOperationException Deprecated.unsupported Operation- Specified by:
prepareNamedQuery
in interfaceDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Specified by:
prepareNamedQuery
in interfaceNoUpdateDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Parameters:
namedQuery
-generateKeys
-- Returns:
- Throws:
SQLException
UnsupportedOperationException
-
prepareNamedQuery
@Deprecated default NamedQuery prepareNamedQuery(String namedQuery, int[] returnColumnIndexes) throws SQLException, UnsupportedOperationException Deprecated.unsupported Operation- Specified by:
prepareNamedQuery
in interfaceDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Specified by:
prepareNamedQuery
in interfaceNoUpdateDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Parameters:
namedQuery
-returnColumnIndexes
-- Returns:
- Throws:
SQLException
UnsupportedOperationException
-
prepareNamedQuery
@Deprecated default NamedQuery prepareNamedQuery(String namedQuery, String[] returnColumnNames) throws SQLException, UnsupportedOperationException Deprecated.unsupported Operation- Specified by:
prepareNamedQuery
in interfaceDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Specified by:
prepareNamedQuery
in interfaceNoUpdateDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Parameters:
namedQuery
-returnColumnNames
-- Returns:
- Throws:
SQLException
UnsupportedOperationException
-
prepareNamedQuery
default NamedQuery prepareNamedQuery(com.landawn.abacus.util.ParsedSql namedQuery) throws SQLException, UnsupportedOperationException - Specified by:
prepareNamedQuery
in interfaceDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Specified by:
prepareNamedQuery
in interfaceNoUpdateDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Parameters:
namedQuery
- the named query- Returns:
- Throws:
SQLException
UnsupportedOperationException
- if the specifiednamedQuery
is not aselect
sql statement.
-
prepareNamedQuery
@Deprecated default NamedQuery prepareNamedQuery(com.landawn.abacus.util.ParsedSql namedQuery, boolean generateKeys) throws SQLException, UnsupportedOperationException Deprecated.unsupported Operation- Specified by:
prepareNamedQuery
in interfaceDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Specified by:
prepareNamedQuery
in interfaceNoUpdateDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Parameters:
namedQuery
- the named querygenerateKeys
-- Returns:
- Throws:
SQLException
UnsupportedOperationException
-
prepareNamedQuery
@Deprecated default NamedQuery prepareNamedQuery(com.landawn.abacus.util.ParsedSql namedQuery, int[] returnColumnIndexes) throws SQLException, UnsupportedOperationException Deprecated.unsupported Operation- Specified by:
prepareNamedQuery
in interfaceDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Specified by:
prepareNamedQuery
in interfaceNoUpdateDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Parameters:
namedQuery
-returnColumnIndexes
-- Returns:
- Throws:
SQLException
UnsupportedOperationException
-
prepareNamedQuery
@Deprecated default NamedQuery prepareNamedQuery(com.landawn.abacus.util.ParsedSql namedQuery, String[] returnColumnNames) throws SQLException, UnsupportedOperationException Deprecated.unsupported Operation- Specified by:
prepareNamedQuery
in interfaceDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Specified by:
prepareNamedQuery
in interfaceNoUpdateDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Parameters:
namedQuery
-returnColumnNames
-- Returns:
- Throws:
SQLException
UnsupportedOperationException
-
save
Deprecated.unsupported Operation- Specified by:
save
in interfaceDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Parameters:
entityToSave
-- Throws:
SQLException
UnsupportedOperationException
-
save
@Deprecated default void save(T entityToSave, Collection<String> propNamesToSave) throws SQLException, UnsupportedOperationException Deprecated.unsupported Operation- Specified by:
save
in interfaceDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Parameters:
entityToSave
-propNamesToSave
-- Throws:
SQLException
UnsupportedOperationException
-
save
@Deprecated default void save(String namedInsertSQL, T entityToSave) throws SQLException, UnsupportedOperationException Deprecated.unsupported Operation- Specified by:
save
in interfaceDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Parameters:
namedInsertSQL
-entityToSave
-- Throws:
SQLException
UnsupportedOperationException
-
batchSave
@Deprecated default void batchSave(Collection<? extends T> entitiesToSave) throws SQLException, UnsupportedOperationException Deprecated.unsupported OperationAlways throwsUnsupportedOperationException
.- Specified by:
batchSave
in interfaceDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Parameters:
entitiesToSave
-- Throws:
SQLException
UnsupportedOperationException
- See Also:
-
batchSave
@Deprecated default void batchSave(Collection<? extends T> entitiesToSave, int batchSize) throws SQLException, UnsupportedOperationException Deprecated.unsupported OperationAlways throwsUnsupportedOperationException
.- Specified by:
batchSave
in interfaceDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Parameters:
entitiesToSave
-batchSize
-- Throws:
SQLException
UnsupportedOperationException
- See Also:
-
batchSave
@Deprecated default void batchSave(Collection<? extends T> entitiesToSave, Collection<String> propNamesToSave) throws SQLException, UnsupportedOperationException Deprecated.unsupported OperationAlways throwsUnsupportedOperationException
.- Specified by:
batchSave
in interfaceDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Parameters:
entitiesToSave
-propNamesToSave
-- Throws:
SQLException
UnsupportedOperationException
- See Also:
-
batchSave
@Deprecated default void batchSave(Collection<? extends T> entitiesToSave, Collection<String> propNamesToSave, int batchSize) throws SQLException, UnsupportedOperationException Deprecated.unsupported OperationAlways throwsUnsupportedOperationException
.- Specified by:
batchSave
in interfaceDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Parameters:
entitiesToSave
-propNamesToSave
-batchSize
-- Throws:
SQLException
UnsupportedOperationException
- See Also:
-
batchSave
@Deprecated default void batchSave(String namedInsertSQL, Collection<? extends T> entitiesToSave) throws SQLException, UnsupportedOperationException Deprecated.unsupported OperationAlways throwsUnsupportedOperationException
.- Specified by:
batchSave
in interfaceDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Parameters:
namedInsertSQL
-entitiesToSave
-- Throws:
SQLException
UnsupportedOperationException
- See Also:
-
batchSave
@Deprecated default void batchSave(String namedInsertSQL, Collection<? extends T> entitiesToSave, int batchSize) throws SQLException, UnsupportedOperationException Deprecated.unsupported OperationAlways throwsUnsupportedOperationException
.- Specified by:
batchSave
in interfaceDao<T,
SB extends com.landawn.abacus.util.SQLBuilder, TD extends ReadOnlyDao<T, SB, TD>> - Parameters:
namedInsertSQL
-entitiesToSave
-batchSize
-- Throws:
SQLException
UnsupportedOperationException
- See Also:
-