private void assertQueries(String ejbName, int size, QueriesMetaData queriesMetaData) { assertNotNull(queriesMetaData); assertEquals(size, queriesMetaData.size()); int count = 1; for (QueryMetaData query : queriesMetaData) { assertId(ejbName + "Query" + count, query); assertQueryMethod(ejbName + "Query" + count, 2, query.getQueryMethod()); if (count == 1 || count == 3) assertEquals(ResultTypeMapping.Local, query.getResultTypeMapping()); else assertEquals(ResultTypeMapping.Remote, query.getResultTypeMapping()); assertEquals(ejbName + "Query" + count + "EjbQL", query.getEjbQL()); ++count; } }
@Override public AbstractQueryOperations in(String table) { queryMetaData.setTableNameOverride(table); return this; }