/** * Extracts the next domain event entry from the given {@code resultSet}. * * @param resultSet The results of a query for domain events of an aggregate. * @return The next domain event. * * @throws SQLException when an exception occurs while creating the event data. */ protected DomainEventData<?> getDomainEventData(ResultSet resultSet) throws SQLException { return new GenericDomainEventEntry<>(resultSet.getString(schema.typeColumn()), resultSet.getString(schema.aggregateIdentifierColumn()), resultSet.getLong(schema.sequenceNumberColumn()), resultSet.getString(schema.eventIdentifierColumn()), readTimeStamp(resultSet, schema.timestampColumn()), resultSet.getString(schema.payloadTypeColumn()), resultSet.getString(schema.payloadRevisionColumn()), readPayload(resultSet, schema.payloadColumn()), readPayload(resultSet, schema.metaDataColumn())); }
/** * Extracts the next snapshot entry from the given {@code resultSet}. * * @param resultSet The results of a query for a snapshot of an aggregate. * @return The next snapshot data. * * @throws SQLException when an exception occurs while creating the event data. */ protected DomainEventData<?> getSnapshotData(ResultSet resultSet) throws SQLException { return new GenericDomainEventEntry<>(resultSet.getString(schema.typeColumn()), resultSet.getString(schema.aggregateIdentifierColumn()), resultSet.getLong(schema.sequenceNumberColumn()), resultSet.getString(schema.eventIdentifierColumn()), readTimeStamp(resultSet, schema.timestampColumn()), resultSet.getString(schema.payloadTypeColumn()), resultSet.getString(schema.payloadRevisionColumn()), readPayload(resultSet, schema.payloadColumn()), readPayload(resultSet, schema.metaDataColumn())); }
resultSet.getString(schema.payloadTypeColumn()), resultSet.getString(schema.payloadRevisionColumn()), readPayload(resultSet, schema.payloadColumn()), readPayload(resultSet, schema.metaDataColumn()) );
/** * Extracts the next domain event entry from the given {@code resultSet}. * * @param resultSet The results of a query for domain events of an aggregate. * @return The next domain event. * @throws SQLException when an exception occurs while creating the event data. */ protected DomainEventData<?> getDomainEventData(ResultSet resultSet) throws SQLException { return new GenericDomainEventEntry<>(resultSet.getString(schema.typeColumn()), resultSet.getString(schema.aggregateIdentifierColumn()), resultSet.getLong(schema.sequenceNumberColumn()), resultSet.getString(schema.eventIdentifierColumn()), readTimeStamp(resultSet, schema.timestampColumn()), resultSet.getString(schema.payloadTypeColumn()), resultSet.getString(schema.payloadRevisionColumn()), readPayload(resultSet, schema.payloadColumn()), readPayload(resultSet, schema.metaDataColumn())); }
/** * Extracts the next snapshot entry from the given {@code resultSet}. * * @param resultSet The results of a query for a snapshot of an aggregate. * @return The next snapshot data. * @throws SQLException when an exception occurs while creating the event data. */ protected DomainEventData<?> getSnapshotData(ResultSet resultSet) throws SQLException { return new GenericDomainEventEntry<>(resultSet.getString(schema.typeColumn()), resultSet.getString(schema.aggregateIdentifierColumn()), resultSet.getLong(schema.sequenceNumberColumn()), resultSet.getString(schema.eventIdentifierColumn()), readTimeStamp(resultSet, schema.timestampColumn()), resultSet.getString(schema.payloadTypeColumn()), resultSet.getString(schema.payloadRevisionColumn()), readPayload(resultSet, schema.payloadColumn()), readPayload(resultSet, schema.metaDataColumn())); }
/** * Extracts the next domain event entry from the given {@code resultSet}. * * @param resultSet The results of a query for domain events of an aggregate. * @return The next domain event. * * @throws SQLException when an exception occurs while creating the event data. */ protected DomainEventData<?> getDomainEventData(ResultSet resultSet) throws SQLException { return new GenericDomainEventEntry<>(resultSet.getString(schema.typeColumn()), resultSet.getString(schema.aggregateIdentifierColumn()), resultSet.getLong(schema.sequenceNumberColumn()), resultSet.getString(schema.eventIdentifierColumn()), readTimeStamp(resultSet, schema.timestampColumn()), resultSet.getString(schema.payloadTypeColumn()), resultSet.getString(schema.payloadRevisionColumn()), readPayload(resultSet, schema.payloadColumn()), readPayload(resultSet, schema.metaDataColumn())); }
/** * Extracts the next snapshot entry from the given {@code resultSet}. * * @param resultSet The results of a query for a snapshot of an aggregate. * @return The next snapshot data. * * @throws SQLException when an exception occurs while creating the event data. */ protected DomainEventData<?> getSnapshotData(ResultSet resultSet) throws SQLException { return new GenericDomainEventEntry<>(resultSet.getString(schema.typeColumn()), resultSet.getString(schema.aggregateIdentifierColumn()), resultSet.getLong(schema.sequenceNumberColumn()), resultSet.getString(schema.eventIdentifierColumn()), readTimeStamp(resultSet, schema.timestampColumn()), resultSet.getString(schema.payloadTypeColumn()), resultSet.getString(schema.payloadRevisionColumn()), readPayload(resultSet, schema.payloadColumn()), readPayload(resultSet, schema.metaDataColumn())); }
resultSet.getString(schema.payloadTypeColumn()), resultSet.getString(schema.payloadRevisionColumn()), readPayload(resultSet, schema.payloadColumn()), readPayload(resultSet, schema.metaDataColumn()) );
resultSet.getString(schema.payloadTypeColumn()), resultSet.getString(schema.payloadRevisionColumn()), readPayload(resultSet, schema.payloadColumn()), readPayload(resultSet, schema.metaDataColumn()) );