All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.company.sakila.db0.sakila.film_text.generated.GeneratedFilmTextSqlAdapter Maven / Gradle / Ivy

There is a newer version: 3.1.18
Show newest version
package com.company.sakila.db0.sakila.film_text.generated;

import com.company.sakila.db0.sakila.film_text.FilmText;
import com.company.sakila.db0.sakila.film_text.FilmTextImpl;
import com.speedment.common.annotation.GeneratedCode;
import com.speedment.runtime.config.identifier.TableIdentifier;
import com.speedment.runtime.core.component.SqlAdapter;
import com.speedment.runtime.core.db.SqlFunction;
import java.sql.ResultSet;
import java.sql.SQLException;
import static com.speedment.common.injector.State.RESOLVED;

/**
 * The generated Sql Adapter for a {@link
 * com.company.sakila.db0.sakila.film_text.FilmText} entity.
 * 

* This file has been automatically generated by Speedment. Any changes made to * it will be overwritten. * * @author Speedment */ @GeneratedCode("Speedment") public abstract class GeneratedFilmTextSqlAdapter implements SqlAdapter { private final TableIdentifier tableIdentifier; protected GeneratedFilmTextSqlAdapter() { this.tableIdentifier = TableIdentifier.of("db0", "sakila", "film_text"); } protected FilmText apply(ResultSet resultSet, int offset) throws SQLException { return createEntity() .setFilmId( resultSet.getShort(1 + offset)) .setTitle( resultSet.getString(2 + offset)) .setDescription( resultSet.getString(3 + offset)) ; } protected FilmTextImpl createEntity() { return new FilmTextImpl(); } @Override public TableIdentifier identifier() { return tableIdentifier; } @Override public SqlFunction entityMapper() { return entityMapper(0); } @Override public SqlFunction entityMapper(int offset) { return rs -> apply(rs, offset); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy