diff --git a/jOOQ-test/src/test/java/org/jooq/test/all/testcases/MetaDataTests.java b/jOOQ-test/src/test/java/org/jooq/test/all/testcases/MetaDataTests.java index f113d5e62f..e1be1444bc 100644 --- a/jOOQ-test/src/test/java/org/jooq/test/all/testcases/MetaDataTests.java +++ b/jOOQ-test/src/test/java/org/jooq/test/all/testcases/MetaDataTests.java @@ -488,9 +488,13 @@ extends BaseTest { + + /** + * Create a new VAuthorDao without any configuration + */ + public VAuthorDao() { + super(org.jooq.test.h2.generatedclasses.tables.VAuthor.V_AUTHOR, org.jooq.test.h2.generatedclasses.tables.pojos.VAuthor.class); + } + + /** + * Create a new VAuthorDao with an attached configuration + */ + public VAuthorDao(org.jooq.Configuration configuration) { + super(org.jooq.test.h2.generatedclasses.tables.VAuthor.V_AUTHOR, org.jooq.test.h2.generatedclasses.tables.pojos.VAuthor.class, configuration); + } + + /** + * {@inheritDoc} + */ + @Override + protected java.lang.Integer getId(org.jooq.test.h2.generatedclasses.tables.pojos.VAuthor object) { + return object.getId(); + } + + /** + * Fetch records that have ID IN (values) + */ + public java.util.List fetchById(java.lang.Integer... values) { + return fetch(org.jooq.test.h2.generatedclasses.tables.VAuthor.V_AUTHOR.ID, values); + } + + /** + * Fetch a unique record that has ID = value + */ + public org.jooq.test.h2.generatedclasses.tables.pojos.VAuthor fetchOneById(java.lang.Integer value) { + return fetchOne(org.jooq.test.h2.generatedclasses.tables.VAuthor.V_AUTHOR.ID, value); + } + + /** + * Fetch records that have FIRST_NAME IN (values) + */ + public java.util.List fetchByFirstName(java.lang.String... values) { + return fetch(org.jooq.test.h2.generatedclasses.tables.VAuthor.V_AUTHOR.FIRST_NAME, values); + } + + /** + * Fetch records that have LAST_NAME IN (values) + */ + public java.util.List fetchByLastName(java.lang.String... values) { + return fetch(org.jooq.test.h2.generatedclasses.tables.VAuthor.V_AUTHOR.LAST_NAME, values); + } + + /** + * Fetch records that have DATE_OF_BIRTH IN (values) + */ + public java.util.List fetchByDateOfBirth(java.sql.Date... values) { + return fetch(org.jooq.test.h2.generatedclasses.tables.VAuthor.V_AUTHOR.DATE_OF_BIRTH, values); + } + + /** + * Fetch records that have YEAR_OF_BIRTH IN (values) + */ + public java.util.List fetchByYearOfBirth(java.lang.Integer... values) { + return fetch(org.jooq.test.h2.generatedclasses.tables.VAuthor.V_AUTHOR.YEAR_OF_BIRTH, values); + } + + /** + * Fetch records that have ADDRESS IN (values) + */ + public java.util.List fetchByAddress(java.lang.String... values) { + return fetch(org.jooq.test.h2.generatedclasses.tables.VAuthor.V_AUTHOR.ADDRESS, values); + } +} diff --git a/jOOQ-test/src/test/java/org/jooq/test/h2/generatedclasses/tables/daos/VBookDao.java b/jOOQ-test/src/test/java/org/jooq/test/h2/generatedclasses/tables/daos/VBookDao.java new file mode 100644 index 0000000000..b100f521d4 --- /dev/null +++ b/jOOQ-test/src/test/java/org/jooq/test/h2/generatedclasses/tables/daos/VBookDao.java @@ -0,0 +1,117 @@ +/** + * This class is generated by jOOQ + */ +package org.jooq.test.h2.generatedclasses.tables.daos; + +/** + * This class is generated by jOOQ. + */ +@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class VBookDao extends org.jooq.impl.DAOImpl { + + /** + * Create a new VBookDao without any configuration + */ + public VBookDao() { + super(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK, org.jooq.test.h2.generatedclasses.tables.pojos.VBook.class); + } + + /** + * Create a new VBookDao with an attached configuration + */ + public VBookDao(org.jooq.Configuration configuration) { + super(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK, org.jooq.test.h2.generatedclasses.tables.pojos.VBook.class, configuration); + } + + /** + * {@inheritDoc} + */ + @Override + protected java.lang.Integer getId(org.jooq.test.h2.generatedclasses.tables.pojos.VBook object) { + return object.getId(); + } + + /** + * Fetch records that have ID IN (values) + */ + public java.util.List fetchById(java.lang.Integer... values) { + return fetch(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK.ID, values); + } + + /** + * Fetch a unique record that has ID = value + */ + public org.jooq.test.h2.generatedclasses.tables.pojos.VBook fetchOneById(java.lang.Integer value) { + return fetchOne(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK.ID, value); + } + + /** + * Fetch records that have AUTHOR_ID IN (values) + */ + public java.util.List fetchByAuthorId(java.lang.Integer... values) { + return fetch(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK.AUTHOR_ID, values); + } + + /** + * Fetch records that have CO_AUTHOR_ID IN (values) + */ + public java.util.List fetchByCoAuthorId(java.lang.Integer... values) { + return fetch(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK.CO_AUTHOR_ID, values); + } + + /** + * Fetch records that have DETAILS_ID IN (values) + */ + public java.util.List fetchByDetailsId(java.lang.Integer... values) { + return fetch(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK.DETAILS_ID, values); + } + + /** + * Fetch records that have TITLE IN (values) + */ + public java.util.List fetchByTitle(java.lang.String... values) { + return fetch(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK.TITLE, values); + } + + /** + * Fetch records that have PUBLISHED_IN IN (values) + */ + public java.util.List fetchByPublishedIn(java.lang.Integer... values) { + return fetch(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK.PUBLISHED_IN, values); + } + + /** + * Fetch records that have LANGUAGE_ID IN (values) + */ + public java.util.List fetchByLanguageId(java.lang.Integer... values) { + return fetch(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK.LANGUAGE_ID, values); + } + + /** + * Fetch records that have CONTENT_TEXT IN (values) + */ + public java.util.List fetchByContentText(java.lang.String... values) { + return fetch(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK.CONTENT_TEXT, values); + } + + /** + * Fetch records that have CONTENT_PDF IN (values) + */ + public java.util.List fetchByContentPdf(byte[]... values) { + return fetch(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK.CONTENT_PDF, values); + } + + /** + * Fetch records that have REC_VERSION IN (values) + */ + public java.util.List fetchByRecVersion(java.lang.Integer... values) { + return fetch(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK.REC_VERSION, values); + } + + /** + * Fetch records that have REC_TIMESTAMP IN (values) + */ + public java.util.List fetchByRecTimestamp(java.sql.Timestamp... values) { + return fetch(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK.REC_TIMESTAMP, values); + } +}