use of org.apache.cayenne.test.jdbc.TableHelper in project cayenne by apache.
the class SelectQueryClobIT method createClobDataSet.
protected void createClobDataSet() throws Exception {
TableHelper tClobTest = new TableHelper(dbHelper, "CLOB_TEST");
tClobTest.setColumns("CLOB_TEST_ID", "CLOB_COL");
tClobTest.deleteAll();
tClobTest.insert(1, "clob1");
tClobTest.insert(2, "clob2");
}
use of org.apache.cayenne.test.jdbc.TableHelper in project cayenne by apache.
the class SelectQueryIT method before.
@Before
public void before() {
this.tArtist = new TableHelper(dbHelper, "ARTIST").setColumns("ARTIST_ID", "ARTIST_NAME", "DATE_OF_BIRTH").setColumnTypes(Types.BIGINT, Types.CHAR, Types.DATE);
tPainting = new TableHelper(dbHelper, "PAINTING").setColumns("PAINTING_ID", "ARTIST_ID", "PAINTING_TITLE").setColumnTypes(Types.INTEGER, Types.BIGINT, Types.VARCHAR);
}
use of org.apache.cayenne.test.jdbc.TableHelper in project cayenne by apache.
the class SelectQueryReturnTypesIT method createNumericsDataSet.
protected void createNumericsDataSet() throws Exception {
TableHelper tNumerics = new TableHelper(dbHelper, "TYPES_MAPPING_TEST1");
tNumerics.setColumns("AAAID", "INTEGER_COLUMN");
tNumerics.insert(1, 0);
tNumerics.insert(2, 1);
tNumerics.insert(3, 2);
tNumerics.insert(4, 3);
tNumerics.insert(5, 4);
}
use of org.apache.cayenne.test.jdbc.TableHelper in project cayenne by apache.
the class MixedPersistenceStrategyIT method setUp.
@Before
public void setUp() throws Exception {
tMixedPersistenceStrategy = new TableHelper(dbHelper, "MIXED_PERSISTENCE_STRATEGY");
tMixedPersistenceStrategy.setColumns("ID", "DESCRIPTION", "NAME");
tMixedPersistenceStrategy2 = new TableHelper(dbHelper, "MIXED_PERSISTENCE_STRATEGY2");
tMixedPersistenceStrategy2.setColumns("ID", "MASTER_ID", "NAME");
}
use of org.apache.cayenne.test.jdbc.TableHelper in project cayenne by apache.
the class ParsedExpQualifierCompatIT method setUp.
@Before
public void setUp() throws Exception {
tArtist = new TableHelper(dbHelper, "ARTIST");
tArtist.setColumns("ARTIST_ID", "ARTIST_NAME");
tPainting = new TableHelper(dbHelper, "PAINTING");
tPainting.setColumns("PAINTING_ID", "PAINTING_TITLE", "ARTIST_ID", "ESTIMATED_PRICE");
}
Aggregations