Class SelectUserEvent
java.lang.Object
net.solarnetwork.central.common.dao.jdbc.sql.SelectUserEvent
- All Implemented Interfaces:
CountPreparedStatementCreatorProvider,org.springframework.jdbc.core.PreparedStatementCreator,org.springframework.jdbc.core.SqlProvider
public class SelectUserEvent
extends Object
implements org.springframework.jdbc.core.PreparedStatementCreator, org.springframework.jdbc.core.SqlProvider, CountPreparedStatementCreatorProvider
Select for user events.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThefetchSizeproperty default value. -
Constructor Summary
ConstructorsConstructorDescriptionSelectUserEvent(UserEventFilter filter) Constructor.SelectUserEvent(net.solarnetwork.util.UuidTimestampDecoder uuidTimestampDecoder, UserEventFilter filter, int fetchSize) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.jdbc.core.PreparedStatementCreatorGet thePreparedStatementCreatorto ues for count results.getSql()
-
Field Details
-
DEFAULT_FETCH_SIZE
public static final int DEFAULT_FETCH_SIZEThefetchSizeproperty default value.- See Also:
-
-
Constructor Details
-
SelectUserEvent
Constructor.- Parameters:
filter- the filter criteria
-
SelectUserEvent
public SelectUserEvent(net.solarnetwork.util.UuidTimestampDecoder uuidTimestampDecoder, UserEventFilter filter, int fetchSize) Constructor.- Parameters:
uuidTimestampDecoder- the UUID timestamp decoderfilter- the filter criteriafetchSize- the fetch size to use, or 0 to leave unspecified
-
-
Method Details
-
getSql
- Specified by:
getSqlin interfaceorg.springframework.jdbc.core.SqlProvider
-
createPreparedStatement
- Specified by:
createPreparedStatementin interfaceorg.springframework.jdbc.core.PreparedStatementCreator- Throws:
SQLException
-
countPreparedStatementCreator
public org.springframework.jdbc.core.PreparedStatementCreator countPreparedStatementCreator()Description copied from interface:CountPreparedStatementCreatorProviderGet thePreparedStatementCreatorto ues for count results.- Specified by:
countPreparedStatementCreatorin interfaceCountPreparedStatementCreatorProvider- Returns:
- a creator
-