target
stringlengths
20
113k
src_fm
stringlengths
11
86.3k
src_fm_fc
stringlengths
21
86.4k
src_fm_fc_co
stringlengths
30
86.4k
src_fm_fc_ms
stringlengths
42
86.8k
src_fm_fc_ms_ff
stringlengths
43
86.8k
@Test public void testHandle() throws Exception { innerTestHandle(new BeanLazyOutputHandler<Character>(Character.class).handle(new QueryParametersLazyList(stmt, typeHandler, false)) instanceof BeanLazyOutputHandler); }
public BeanLazyOutputHandler handle(List<QueryParameters> outputList) throws MjdbcException { if (outputList instanceof QueryParametersLazyList) { return new BeanLazyOutputHandler(this.type, this.processor, (QueryParametersLazyList) outputList); } else { throw new MjdbcRuntimeException("LazyOutputHandler can be used on...
BeanLazyOutputHandler extends AbstractLazyOutputHandler implements LazyOutputHandler<BeanLazyOutputHandler, S> { public BeanLazyOutputHandler handle(List<QueryParameters> outputList) throws MjdbcException { if (outputList instanceof QueryParametersLazyList) { return new BeanLazyOutputHandler(this.type, this.processor, ...
BeanLazyOutputHandler extends AbstractLazyOutputHandler implements LazyOutputHandler<BeanLazyOutputHandler, S> { public BeanLazyOutputHandler handle(List<QueryParameters> outputList) throws MjdbcException { if (outputList instanceof QueryParametersLazyList) { return new BeanLazyOutputHandler(this.type, this.processor, ...
BeanLazyOutputHandler extends AbstractLazyOutputHandler implements LazyOutputHandler<BeanLazyOutputHandler, S> { public BeanLazyOutputHandler handle(List<QueryParameters> outputList) throws MjdbcException { if (outputList instanceof QueryParametersLazyList) { return new BeanLazyOutputHandler(this.type, this.processor, ...
BeanLazyOutputHandler extends AbstractLazyOutputHandler implements LazyOutputHandler<BeanLazyOutputHandler, S> { public BeanLazyOutputHandler handle(List<QueryParameters> outputList) throws MjdbcException { if (outputList instanceof QueryParametersLazyList) { return new BeanLazyOutputHandler(this.type, this.processor, ...
@Test public void testEmpty() throws Exception { innerTestEmpty(new BeanLazyOutputHandler<Character>(Character.class).handle(new QueryParametersLazyList(stmt, typeHandler, false))); }
public BeanLazyOutputHandler handle(List<QueryParameters> outputList) throws MjdbcException { if (outputList instanceof QueryParametersLazyList) { return new BeanLazyOutputHandler(this.type, this.processor, (QueryParametersLazyList) outputList); } else { throw new MjdbcRuntimeException("LazyOutputHandler can be used on...
BeanLazyOutputHandler extends AbstractLazyOutputHandler implements LazyOutputHandler<BeanLazyOutputHandler, S> { public BeanLazyOutputHandler handle(List<QueryParameters> outputList) throws MjdbcException { if (outputList instanceof QueryParametersLazyList) { return new BeanLazyOutputHandler(this.type, this.processor, ...
BeanLazyOutputHandler extends AbstractLazyOutputHandler implements LazyOutputHandler<BeanLazyOutputHandler, S> { public BeanLazyOutputHandler handle(List<QueryParameters> outputList) throws MjdbcException { if (outputList instanceof QueryParametersLazyList) { return new BeanLazyOutputHandler(this.type, this.processor, ...
BeanLazyOutputHandler extends AbstractLazyOutputHandler implements LazyOutputHandler<BeanLazyOutputHandler, S> { public BeanLazyOutputHandler handle(List<QueryParameters> outputList) throws MjdbcException { if (outputList instanceof QueryParametersLazyList) { return new BeanLazyOutputHandler(this.type, this.processor, ...
BeanLazyOutputHandler extends AbstractLazyOutputHandler implements LazyOutputHandler<BeanLazyOutputHandler, S> { public BeanLazyOutputHandler handle(List<QueryParameters> outputList) throws MjdbcException { if (outputList instanceof QueryParametersLazyList) { return new BeanLazyOutputHandler(this.type, this.processor, ...
@Test public void testGetQueryRunnerCoonection() throws Exception { Assert.assertEquals(true, MjdbcFactory.getQueryRunner(conn) instanceof QueryRunner); }
public static QueryRunnerService getQueryRunner(DataSource ds) { return (QueryRunnerService) ProfilerFactory.newInstance(new QueryRunner(ds)); }
MjdbcFactory { public static QueryRunnerService getQueryRunner(DataSource ds) { return (QueryRunnerService) ProfilerFactory.newInstance(new QueryRunner(ds)); } }
MjdbcFactory { public static QueryRunnerService getQueryRunner(DataSource ds) { return (QueryRunnerService) ProfilerFactory.newInstance(new QueryRunner(ds)); } }
MjdbcFactory { public static QueryRunnerService getQueryRunner(DataSource ds) { return (QueryRunnerService) ProfilerFactory.newInstance(new QueryRunner(ds)); } static QueryRunnerService getQueryRunner(DataSource ds); static QueryRunnerService getQueryRunner(DataSource ds, Class<? extends TypeHandler> typeHandlerClazz)...
MjdbcFactory { public static QueryRunnerService getQueryRunner(DataSource ds) { return (QueryRunnerService) ProfilerFactory.newInstance(new QueryRunner(ds)); } static QueryRunnerService getQueryRunner(DataSource ds); static QueryRunnerService getQueryRunner(DataSource ds, Class<? extends TypeHandler> typeHandlerClazz)...
@Test public void testGetQueryRunnerDataSourceTypeStatementHandler() throws Exception { Assert.assertEquals(true, MidaoFactory.getQueryRunner(ds, EmptyTypeHandler.class, BaseStatementHandler.class) instanceof QueryRunner); }
public static QueryRunnerService getQueryRunner(DataSource ds) { return (QueryRunnerService) ProfilerFactory.newInstance(new QueryRunner(ds)); }
MidaoFactory { public static QueryRunnerService getQueryRunner(DataSource ds) { return (QueryRunnerService) ProfilerFactory.newInstance(new QueryRunner(ds)); } }
MidaoFactory { public static QueryRunnerService getQueryRunner(DataSource ds) { return (QueryRunnerService) ProfilerFactory.newInstance(new QueryRunner(ds)); } }
MidaoFactory { public static QueryRunnerService getQueryRunner(DataSource ds) { return (QueryRunnerService) ProfilerFactory.newInstance(new QueryRunner(ds)); } static QueryRunnerService getQueryRunner(DataSource ds); static QueryRunnerService getQueryRunner(DataSource ds, Class<? extends TypeHandler> typeHandlerClazz)...
MidaoFactory { public static QueryRunnerService getQueryRunner(DataSource ds) { return (QueryRunnerService) ProfilerFactory.newInstance(new QueryRunner(ds)); } static QueryRunnerService getQueryRunner(DataSource ds); static QueryRunnerService getQueryRunner(DataSource ds, Class<? extends TypeHandler> typeHandlerClazz)...
@Test public void testHasNext() throws Exception { innerTestHasPrepare(); innerTestHasNext(new MapLazyOutputHandler().handle(new QueryParametersLazyList(stmt, typeHandler, false))); }
public boolean hasNext() { return innerHasNext(); }
MapLazyOutputHandler extends AbstractLazyOutputHandler implements LazyOutputHandler<MapLazyOutputHandler, Map<String, Object>> { public boolean hasNext() { return innerHasNext(); } }
MapLazyOutputHandler extends AbstractLazyOutputHandler implements LazyOutputHandler<MapLazyOutputHandler, Map<String, Object>> { public boolean hasNext() { return innerHasNext(); } MapLazyOutputHandler(); MapLazyOutputHandler(QueryOutputProcessor processor); private MapLazyOutputHandler(QueryOutputProcessor processor...
MapLazyOutputHandler extends AbstractLazyOutputHandler implements LazyOutputHandler<MapLazyOutputHandler, Map<String, Object>> { public boolean hasNext() { return innerHasNext(); } MapLazyOutputHandler(); MapLazyOutputHandler(QueryOutputProcessor processor); private MapLazyOutputHandler(QueryOutputProcessor processor...
MapLazyOutputHandler extends AbstractLazyOutputHandler implements LazyOutputHandler<MapLazyOutputHandler, Map<String, Object>> { public boolean hasNext() { return innerHasNext(); } MapLazyOutputHandler(); MapLazyOutputHandler(QueryOutputProcessor processor); private MapLazyOutputHandler(QueryOutputProcessor processor...
@Test public void testGetNext() throws Exception { innerTestGetPrepare(); innerTestGetNext(new MapLazyOutputHandler().handle(new QueryParametersLazyList(stmt, typeHandler, false))); }
public Map<String, Object> getNext() { Map<String, Object> result = null; QueryParameters params = innerGetNext(); result = processor.toMap(params); return result; }
MapLazyOutputHandler extends AbstractLazyOutputHandler implements LazyOutputHandler<MapLazyOutputHandler, Map<String, Object>> { public Map<String, Object> getNext() { Map<String, Object> result = null; QueryParameters params = innerGetNext(); result = processor.toMap(params); return result; } }
MapLazyOutputHandler extends AbstractLazyOutputHandler implements LazyOutputHandler<MapLazyOutputHandler, Map<String, Object>> { public Map<String, Object> getNext() { Map<String, Object> result = null; QueryParameters params = innerGetNext(); result = processor.toMap(params); return result; } MapLazyOutputHandler(); ...
MapLazyOutputHandler extends AbstractLazyOutputHandler implements LazyOutputHandler<MapLazyOutputHandler, Map<String, Object>> { public Map<String, Object> getNext() { Map<String, Object> result = null; QueryParameters params = innerGetNext(); result = processor.toMap(params); return result; } MapLazyOutputHandler(); ...
MapLazyOutputHandler extends AbstractLazyOutputHandler implements LazyOutputHandler<MapLazyOutputHandler, Map<String, Object>> { public Map<String, Object> getNext() { Map<String, Object> result = null; QueryParameters params = innerGetNext(); result = processor.toMap(params); return result; } MapLazyOutputHandler(); ...
@Test public void testGetCurrent() throws Exception { innerTestGetPrepare(); innerTestGetCurrent(new MapLazyOutputHandler().handle(new QueryParametersLazyList(stmt, typeHandler, false))); }
public Map<String, Object> getCurrent() { Map<String, Object> result = null; QueryParameters params = innerGetCurrent(); result = processor.toMap(params); return result; }
MapLazyOutputHandler extends AbstractLazyOutputHandler implements LazyOutputHandler<MapLazyOutputHandler, Map<String, Object>> { public Map<String, Object> getCurrent() { Map<String, Object> result = null; QueryParameters params = innerGetCurrent(); result = processor.toMap(params); return result; } }
MapLazyOutputHandler extends AbstractLazyOutputHandler implements LazyOutputHandler<MapLazyOutputHandler, Map<String, Object>> { public Map<String, Object> getCurrent() { Map<String, Object> result = null; QueryParameters params = innerGetCurrent(); result = processor.toMap(params); return result; } MapLazyOutputHandle...
MapLazyOutputHandler extends AbstractLazyOutputHandler implements LazyOutputHandler<MapLazyOutputHandler, Map<String, Object>> { public Map<String, Object> getCurrent() { Map<String, Object> result = null; QueryParameters params = innerGetCurrent(); result = processor.toMap(params); return result; } MapLazyOutputHandle...
MapLazyOutputHandler extends AbstractLazyOutputHandler implements LazyOutputHandler<MapLazyOutputHandler, Map<String, Object>> { public Map<String, Object> getCurrent() { Map<String, Object> result = null; QueryParameters params = innerGetCurrent(); result = processor.toMap(params); return result; } MapLazyOutputHandle...
@Test public void testClose() throws Exception { innerTestClosePrepare(); innerTestClose(new MapLazyOutputHandler().handle(new QueryParametersLazyList(stmt, typeHandler, false))); }
public void close() { innerClose(); }
MapLazyOutputHandler extends AbstractLazyOutputHandler implements LazyOutputHandler<MapLazyOutputHandler, Map<String, Object>> { public void close() { innerClose(); } }
MapLazyOutputHandler extends AbstractLazyOutputHandler implements LazyOutputHandler<MapLazyOutputHandler, Map<String, Object>> { public void close() { innerClose(); } MapLazyOutputHandler(); MapLazyOutputHandler(QueryOutputProcessor processor); private MapLazyOutputHandler(QueryOutputProcessor processor, QueryParamet...
MapLazyOutputHandler extends AbstractLazyOutputHandler implements LazyOutputHandler<MapLazyOutputHandler, Map<String, Object>> { public void close() { innerClose(); } MapLazyOutputHandler(); MapLazyOutputHandler(QueryOutputProcessor processor); private MapLazyOutputHandler(QueryOutputProcessor processor, QueryParamet...
MapLazyOutputHandler extends AbstractLazyOutputHandler implements LazyOutputHandler<MapLazyOutputHandler, Map<String, Object>> { public void close() { innerClose(); } MapLazyOutputHandler(); MapLazyOutputHandler(QueryOutputProcessor processor); private MapLazyOutputHandler(QueryOutputProcessor processor, QueryParamet...
@Test public void testHandle() throws Exception { innerTestHandle(new MapLazyOutputHandler().handle(new QueryParametersLazyList(stmt, typeHandler, false)) instanceof MapLazyOutputHandler); }
public MapLazyOutputHandler handle(List<QueryParameters> outputList) throws MjdbcException { if (outputList instanceof QueryParametersLazyList) { return new MapLazyOutputHandler(this.processor, (QueryParametersLazyList) outputList); } else { throw new MjdbcRuntimeException("LazyOutputHandler can be used only together w...
MapLazyOutputHandler extends AbstractLazyOutputHandler implements LazyOutputHandler<MapLazyOutputHandler, Map<String, Object>> { public MapLazyOutputHandler handle(List<QueryParameters> outputList) throws MjdbcException { if (outputList instanceof QueryParametersLazyList) { return new MapLazyOutputHandler(this.processo...
MapLazyOutputHandler extends AbstractLazyOutputHandler implements LazyOutputHandler<MapLazyOutputHandler, Map<String, Object>> { public MapLazyOutputHandler handle(List<QueryParameters> outputList) throws MjdbcException { if (outputList instanceof QueryParametersLazyList) { return new MapLazyOutputHandler(this.processo...
MapLazyOutputHandler extends AbstractLazyOutputHandler implements LazyOutputHandler<MapLazyOutputHandler, Map<String, Object>> { public MapLazyOutputHandler handle(List<QueryParameters> outputList) throws MjdbcException { if (outputList instanceof QueryParametersLazyList) { return new MapLazyOutputHandler(this.processo...
MapLazyOutputHandler extends AbstractLazyOutputHandler implements LazyOutputHandler<MapLazyOutputHandler, Map<String, Object>> { public MapLazyOutputHandler handle(List<QueryParameters> outputList) throws MjdbcException { if (outputList instanceof QueryParametersLazyList) { return new MapLazyOutputHandler(this.processo...
@Test public void testEmpty() throws Exception { innerTestEmpty(new MapLazyOutputHandler().handle(new QueryParametersLazyList(stmt, typeHandler, false))); }
public MapLazyOutputHandler handle(List<QueryParameters> outputList) throws MjdbcException { if (outputList instanceof QueryParametersLazyList) { return new MapLazyOutputHandler(this.processor, (QueryParametersLazyList) outputList); } else { throw new MjdbcRuntimeException("LazyOutputHandler can be used only together w...
MapLazyOutputHandler extends AbstractLazyOutputHandler implements LazyOutputHandler<MapLazyOutputHandler, Map<String, Object>> { public MapLazyOutputHandler handle(List<QueryParameters> outputList) throws MjdbcException { if (outputList instanceof QueryParametersLazyList) { return new MapLazyOutputHandler(this.processo...
MapLazyOutputHandler extends AbstractLazyOutputHandler implements LazyOutputHandler<MapLazyOutputHandler, Map<String, Object>> { public MapLazyOutputHandler handle(List<QueryParameters> outputList) throws MjdbcException { if (outputList instanceof QueryParametersLazyList) { return new MapLazyOutputHandler(this.processo...
MapLazyOutputHandler extends AbstractLazyOutputHandler implements LazyOutputHandler<MapLazyOutputHandler, Map<String, Object>> { public MapLazyOutputHandler handle(List<QueryParameters> outputList) throws MjdbcException { if (outputList instanceof QueryParametersLazyList) { return new MapLazyOutputHandler(this.processo...
MapLazyOutputHandler extends AbstractLazyOutputHandler implements LazyOutputHandler<MapLazyOutputHandler, Map<String, Object>> { public MapLazyOutputHandler handle(List<QueryParameters> outputList) throws MjdbcException { if (outputList instanceof QueryParametersLazyList) { return new MapLazyOutputHandler(this.processo...
@Test public void testHasNext() throws Exception { innerTestHasPrepare(); innerTestHasNext(new MapLazyScrollOutputHandler().handle(new QueryParametersLazyList(stmt, typeHandler, false))); }
public boolean hasNext() { return innerHasNext(); }
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public boolean hasNext() { return innerHasNext(); } }
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public boolean hasNext() { return innerHasNext(); } MapLazyScrollOutputHandler(); MapLazyScrollOutputHandler(QueryOutputProcessor processor); private MapLazySc...
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public boolean hasNext() { return innerHasNext(); } MapLazyScrollOutputHandler(); MapLazyScrollOutputHandler(QueryOutputProcessor processor); private MapLazySc...
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public boolean hasNext() { return innerHasNext(); } MapLazyScrollOutputHandler(); MapLazyScrollOutputHandler(QueryOutputProcessor processor); private MapLazySc...
@Test public void testGetNext() throws Exception { innerTestGetPrepare(); innerTestGetNext(new MapLazyScrollOutputHandler().handle(new QueryParametersLazyList(stmt, typeHandler, false))); }
public Map<String, Object> getNext() { Map<String, Object> result = null; QueryParameters params = innerGetNext(); result = processor.toMap(params); return result; }
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public Map<String, Object> getNext() { Map<String, Object> result = null; QueryParameters params = innerGetNext(); result = processor.toMap(params); return resul...
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public Map<String, Object> getNext() { Map<String, Object> result = null; QueryParameters params = innerGetNext(); result = processor.toMap(params); return resul...
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public Map<String, Object> getNext() { Map<String, Object> result = null; QueryParameters params = innerGetNext(); result = processor.toMap(params); return resul...
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public Map<String, Object> getNext() { Map<String, Object> result = null; QueryParameters params = innerGetNext(); result = processor.toMap(params); return resul...
@Test public void testGetCurrent() throws Exception { innerTestGetPrepare(); innerTestGetCurrent(new MapLazyScrollOutputHandler().handle(new QueryParametersLazyList(stmt, typeHandler, false))); }
public Map<String, Object> getCurrent() { Map<String, Object> result = null; QueryParameters params = innerGetCurrent(); result = processor.toMap(params); return result; }
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public Map<String, Object> getCurrent() { Map<String, Object> result = null; QueryParameters params = innerGetCurrent(); result = processor.toMap(params); return...
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public Map<String, Object> getCurrent() { Map<String, Object> result = null; QueryParameters params = innerGetCurrent(); result = processor.toMap(params); return...
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public Map<String, Object> getCurrent() { Map<String, Object> result = null; QueryParameters params = innerGetCurrent(); result = processor.toMap(params); return...
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public Map<String, Object> getCurrent() { Map<String, Object> result = null; QueryParameters params = innerGetCurrent(); result = processor.toMap(params); return...
@Test public void testClose() throws Exception { innerTestClosePrepare(); innerTestClose(new MapLazyScrollOutputHandler().handle(new QueryParametersLazyList(stmt, typeHandler, false))); }
public void close() { innerClose(); }
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public void close() { innerClose(); } }
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public void close() { innerClose(); } MapLazyScrollOutputHandler(); MapLazyScrollOutputHandler(QueryOutputProcessor processor); private MapLazyScrollOutputHand...
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public void close() { innerClose(); } MapLazyScrollOutputHandler(); MapLazyScrollOutputHandler(QueryOutputProcessor processor); private MapLazyScrollOutputHand...
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public void close() { innerClose(); } MapLazyScrollOutputHandler(); MapLazyScrollOutputHandler(QueryOutputProcessor processor); private MapLazyScrollOutputHand...
@Test public void testGetQueryRunnerConnectionTypeHandler() throws Exception { Assert.assertEquals(true, MjdbcFactory.getQueryRunner(conn, EmptyTypeHandler.class) instanceof QueryRunner); }
public static QueryRunnerService getQueryRunner(DataSource ds) { return (QueryRunnerService) ProfilerFactory.newInstance(new QueryRunner(ds)); }
MjdbcFactory { public static QueryRunnerService getQueryRunner(DataSource ds) { return (QueryRunnerService) ProfilerFactory.newInstance(new QueryRunner(ds)); } }
MjdbcFactory { public static QueryRunnerService getQueryRunner(DataSource ds) { return (QueryRunnerService) ProfilerFactory.newInstance(new QueryRunner(ds)); } }
MjdbcFactory { public static QueryRunnerService getQueryRunner(DataSource ds) { return (QueryRunnerService) ProfilerFactory.newInstance(new QueryRunner(ds)); } static QueryRunnerService getQueryRunner(DataSource ds); static QueryRunnerService getQueryRunner(DataSource ds, Class<? extends TypeHandler> typeHandlerClazz)...
MjdbcFactory { public static QueryRunnerService getQueryRunner(DataSource ds) { return (QueryRunnerService) ProfilerFactory.newInstance(new QueryRunner(ds)); } static QueryRunnerService getQueryRunner(DataSource ds); static QueryRunnerService getQueryRunner(DataSource ds, Class<? extends TypeHandler> typeHandlerClazz)...
@Test public void testHandle() throws Exception { innerTestHandle(new MapLazyScrollOutputHandler().handle(new QueryParametersLazyList(stmt, typeHandler, false)) instanceof MapLazyScrollOutputHandler); }
public MapLazyScrollOutputHandler handle(List<QueryParameters> outputList) throws MjdbcException { if (outputList instanceof QueryParametersLazyList) { return new MapLazyScrollOutputHandler(this.processor, (QueryParametersLazyList) outputList); } else { throw new MjdbcRuntimeException("LazyOutputHandler can be used onl...
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public MapLazyScrollOutputHandler handle(List<QueryParameters> outputList) throws MjdbcException { if (outputList instanceof QueryParametersLazyList) { return ne...
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public MapLazyScrollOutputHandler handle(List<QueryParameters> outputList) throws MjdbcException { if (outputList instanceof QueryParametersLazyList) { return ne...
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public MapLazyScrollOutputHandler handle(List<QueryParameters> outputList) throws MjdbcException { if (outputList instanceof QueryParametersLazyList) { return ne...
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public MapLazyScrollOutputHandler handle(List<QueryParameters> outputList) throws MjdbcException { if (outputList instanceof QueryParametersLazyList) { return ne...
@Test public void testEmpty() throws Exception { innerTestEmpty(new MapLazyScrollOutputHandler().handle(new QueryParametersLazyList(stmt, typeHandler, false))); }
public MapLazyScrollOutputHandler handle(List<QueryParameters> outputList) throws MjdbcException { if (outputList instanceof QueryParametersLazyList) { return new MapLazyScrollOutputHandler(this.processor, (QueryParametersLazyList) outputList); } else { throw new MjdbcRuntimeException("LazyOutputHandler can be used onl...
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public MapLazyScrollOutputHandler handle(List<QueryParameters> outputList) throws MjdbcException { if (outputList instanceof QueryParametersLazyList) { return ne...
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public MapLazyScrollOutputHandler handle(List<QueryParameters> outputList) throws MjdbcException { if (outputList instanceof QueryParametersLazyList) { return ne...
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public MapLazyScrollOutputHandler handle(List<QueryParameters> outputList) throws MjdbcException { if (outputList instanceof QueryParametersLazyList) { return ne...
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public MapLazyScrollOutputHandler handle(List<QueryParameters> outputList) throws MjdbcException { if (outputList instanceof QueryParametersLazyList) { return ne...
@Test public void testHasPrev() throws Exception { innerTestHasPrepare(); innerTestHasPrev(new MapLazyScrollOutputHandler().handle(new QueryParametersLazyList(stmt, typeHandler, false))); }
public boolean hasPrev() { return innerHasPrev(); }
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public boolean hasPrev() { return innerHasPrev(); } }
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public boolean hasPrev() { return innerHasPrev(); } MapLazyScrollOutputHandler(); MapLazyScrollOutputHandler(QueryOutputProcessor processor); private MapLazySc...
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public boolean hasPrev() { return innerHasPrev(); } MapLazyScrollOutputHandler(); MapLazyScrollOutputHandler(QueryOutputProcessor processor); private MapLazySc...
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public boolean hasPrev() { return innerHasPrev(); } MapLazyScrollOutputHandler(); MapLazyScrollOutputHandler(QueryOutputProcessor processor); private MapLazySc...
@Test public void testGetPrev() throws Exception { innerTestGetPrepare(); innerTestGetPrev(new MapLazyScrollOutputHandler().handle(new QueryParametersLazyList(stmt, typeHandler, false))); }
public Map<String, Object> getPrev() { Map<String, Object> result = null; QueryParameters params = innerGetPrev(); result = processor.toMap(params); return result; }
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public Map<String, Object> getPrev() { Map<String, Object> result = null; QueryParameters params = innerGetPrev(); result = processor.toMap(params); return resul...
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public Map<String, Object> getPrev() { Map<String, Object> result = null; QueryParameters params = innerGetPrev(); result = processor.toMap(params); return resul...
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public Map<String, Object> getPrev() { Map<String, Object> result = null; QueryParameters params = innerGetPrev(); result = processor.toMap(params); return resul...
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public Map<String, Object> getPrev() { Map<String, Object> result = null; QueryParameters params = innerGetPrev(); result = processor.toMap(params); return resul...
@Test public void testMoveTo() throws Exception { innerTestGetPrepare(); innerTestMoveTo(new MapLazyScrollOutputHandler().handle(new QueryParametersLazyList(stmt, typeHandler, false))); }
public boolean moveTo(int row) { return innerMoveTo(row); }
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public boolean moveTo(int row) { return innerMoveTo(row); } }
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public boolean moveTo(int row) { return innerMoveTo(row); } MapLazyScrollOutputHandler(); MapLazyScrollOutputHandler(QueryOutputProcessor processor); private M...
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public boolean moveTo(int row) { return innerMoveTo(row); } MapLazyScrollOutputHandler(); MapLazyScrollOutputHandler(QueryOutputProcessor processor); private M...
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public boolean moveTo(int row) { return innerMoveTo(row); } MapLazyScrollOutputHandler(); MapLazyScrollOutputHandler(QueryOutputProcessor processor); private M...
@Test public void testMoveRelative() throws Exception { innerTestGetPrepare(); innerTestMoveRelative(new MapLazyScrollOutputHandler().handle(new QueryParametersLazyList(stmt, typeHandler, false))); }
public boolean moveRelative(int rows) { return innerMoveRelative(rows); }
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public boolean moveRelative(int rows) { return innerMoveRelative(rows); } }
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public boolean moveRelative(int rows) { return innerMoveRelative(rows); } MapLazyScrollOutputHandler(); MapLazyScrollOutputHandler(QueryOutputProcessor processo...
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public boolean moveRelative(int rows) { return innerMoveRelative(rows); } MapLazyScrollOutputHandler(); MapLazyScrollOutputHandler(QueryOutputProcessor processo...
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public boolean moveRelative(int rows) { return innerMoveRelative(rows); } MapLazyScrollOutputHandler(); MapLazyScrollOutputHandler(QueryOutputProcessor processo...
@Test public void testPosition() throws Exception { innerTestGetPrepare(); innerTestPosition(new MapLazyScrollOutputHandler().handle(new QueryParametersLazyList(stmt, typeHandler, false))); }
public int position() { return innerPosition(); }
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public int position() { return innerPosition(); } }
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public int position() { return innerPosition(); } MapLazyScrollOutputHandler(); MapLazyScrollOutputHandler(QueryOutputProcessor processor); private MapLazyScro...
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public int position() { return innerPosition(); } MapLazyScrollOutputHandler(); MapLazyScrollOutputHandler(QueryOutputProcessor processor); private MapLazyScro...
MapLazyScrollOutputHandler extends AbstractScrollUpdateLazyOutputHandler implements LazyScrollOutputHandler<MapLazyScrollOutputHandler, Map<String, Object>> { public int position() { return innerPosition(); } MapLazyScrollOutputHandler(); MapLazyScrollOutputHandler(QueryOutputProcessor processor); private MapLazyScro...
@Test public void testHandle() throws Exception { ScalarOutputHandler<String> handler = new ScalarOutputHandler<String>(); String result = handler.handle(paramsList); Assert.assertEquals("jack", result); }
public T handle(List<QueryParameters> output) { T result = null; String parameterName = null; Object parameterValue = null; if (output.size() > 1) { if (this.columnName == null) { parameterName = output.get(1).getNameByPosition(columnIndex); parameterValue = output.get(1).getValue(parameterName); result = (T) parameter...
ScalarOutputHandler extends AbstractOutputHandler<T> { public T handle(List<QueryParameters> output) { T result = null; String parameterName = null; Object parameterValue = null; if (output.size() > 1) { if (this.columnName == null) { parameterName = output.get(1).getNameByPosition(columnIndex); parameterValue = output...
ScalarOutputHandler extends AbstractOutputHandler<T> { public T handle(List<QueryParameters> output) { T result = null; String parameterName = null; Object parameterValue = null; if (output.size() > 1) { if (this.columnName == null) { parameterName = output.get(1).getNameByPosition(columnIndex); parameterValue = output...
ScalarOutputHandler extends AbstractOutputHandler<T> { public T handle(List<QueryParameters> output) { T result = null; String parameterName = null; Object parameterValue = null; if (output.size() > 1) { if (this.columnName == null) { parameterName = output.get(1).getNameByPosition(columnIndex); parameterValue = output...
ScalarOutputHandler extends AbstractOutputHandler<T> { public T handle(List<QueryParameters> output) { T result = null; String parameterName = null; Object parameterValue = null; if (output.size() > 1) { if (this.columnName == null) { parameterName = output.get(1).getNameByPosition(columnIndex); parameterValue = output...
@Test public void testEmpty() { ScalarOutputHandler<String> handler = new ScalarOutputHandler<String>(); String result = handler.handle(emptyList); Assert.assertEquals(null, result); }
public T handle(List<QueryParameters> output) { T result = null; String parameterName = null; Object parameterValue = null; if (output.size() > 1) { if (this.columnName == null) { parameterName = output.get(1).getNameByPosition(columnIndex); parameterValue = output.get(1).getValue(parameterName); result = (T) parameter...
ScalarOutputHandler extends AbstractOutputHandler<T> { public T handle(List<QueryParameters> output) { T result = null; String parameterName = null; Object parameterValue = null; if (output.size() > 1) { if (this.columnName == null) { parameterName = output.get(1).getNameByPosition(columnIndex); parameterValue = output...
ScalarOutputHandler extends AbstractOutputHandler<T> { public T handle(List<QueryParameters> output) { T result = null; String parameterName = null; Object parameterValue = null; if (output.size() > 1) { if (this.columnName == null) { parameterName = output.get(1).getNameByPosition(columnIndex); parameterValue = output...
ScalarOutputHandler extends AbstractOutputHandler<T> { public T handle(List<QueryParameters> output) { T result = null; String parameterName = null; Object parameterValue = null; if (output.size() > 1) { if (this.columnName == null) { parameterName = output.get(1).getNameByPosition(columnIndex); parameterValue = output...
ScalarOutputHandler extends AbstractOutputHandler<T> { public T handle(List<QueryParameters> output) { T result = null; String parameterName = null; Object parameterValue = null; if (output.size() > 1) { if (this.columnName == null) { parameterName = output.get(1).getNameByPosition(columnIndex); parameterValue = output...
@Test public void testHandle() throws Exception { MapOutputHandler handler = new MapOutputHandler(); Map<String, Object> result = handler.handle(paramsList); org.junit.Assert.assertArrayEquals(new Object[]{"jack", "sheriff", 36}, new Object[]{result.get("name"), result.get("occupation"), result.get("age")}); }
public Map<String, Object> handle(List<QueryParameters> outputList) throws MjdbcException { return this.outputProcessor.toMap(outputList); }
MapOutputHandler extends AbstractOutputHandler<Map<String, Object>> { public Map<String, Object> handle(List<QueryParameters> outputList) throws MjdbcException { return this.outputProcessor.toMap(outputList); } }
MapOutputHandler extends AbstractOutputHandler<Map<String, Object>> { public Map<String, Object> handle(List<QueryParameters> outputList) throws MjdbcException { return this.outputProcessor.toMap(outputList); } MapOutputHandler(); MapOutputHandler(QueryOutputProcessor processor); }
MapOutputHandler extends AbstractOutputHandler<Map<String, Object>> { public Map<String, Object> handle(List<QueryParameters> outputList) throws MjdbcException { return this.outputProcessor.toMap(outputList); } MapOutputHandler(); MapOutputHandler(QueryOutputProcessor processor); Map<String, Object> handle(List<QueryP...
MapOutputHandler extends AbstractOutputHandler<Map<String, Object>> { public Map<String, Object> handle(List<QueryParameters> outputList) throws MjdbcException { return this.outputProcessor.toMap(outputList); } MapOutputHandler(); MapOutputHandler(QueryOutputProcessor processor); Map<String, Object> handle(List<QueryP...
@Test public void testGetQueryRunnerConnectionTypeStatementHandler() throws Exception { Assert.assertEquals(true, MjdbcFactory.getQueryRunner(conn, EmptyTypeHandler.class, BaseStatementHandler.class) instanceof QueryRunner); }
public static QueryRunnerService getQueryRunner(DataSource ds) { return (QueryRunnerService) ProfilerFactory.newInstance(new QueryRunner(ds)); }
MjdbcFactory { public static QueryRunnerService getQueryRunner(DataSource ds) { return (QueryRunnerService) ProfilerFactory.newInstance(new QueryRunner(ds)); } }
MjdbcFactory { public static QueryRunnerService getQueryRunner(DataSource ds) { return (QueryRunnerService) ProfilerFactory.newInstance(new QueryRunner(ds)); } }
MjdbcFactory { public static QueryRunnerService getQueryRunner(DataSource ds) { return (QueryRunnerService) ProfilerFactory.newInstance(new QueryRunner(ds)); } static QueryRunnerService getQueryRunner(DataSource ds); static QueryRunnerService getQueryRunner(DataSource ds, Class<? extends TypeHandler> typeHandlerClazz)...
MjdbcFactory { public static QueryRunnerService getQueryRunner(DataSource ds) { return (QueryRunnerService) ProfilerFactory.newInstance(new QueryRunner(ds)); } static QueryRunnerService getQueryRunner(DataSource ds); static QueryRunnerService getQueryRunner(DataSource ds, Class<? extends TypeHandler> typeHandlerClazz)...
@Test public void testEmpty() throws MjdbcException { MapOutputHandler handler = new MapOutputHandler(); Map<String, Object> result = handler.handle(emptyList); Assert.assertEquals(0, result.size()); }
public Map<String, Object> handle(List<QueryParameters> outputList) throws MjdbcException { return this.outputProcessor.toMap(outputList); }
MapOutputHandler extends AbstractOutputHandler<Map<String, Object>> { public Map<String, Object> handle(List<QueryParameters> outputList) throws MjdbcException { return this.outputProcessor.toMap(outputList); } }
MapOutputHandler extends AbstractOutputHandler<Map<String, Object>> { public Map<String, Object> handle(List<QueryParameters> outputList) throws MjdbcException { return this.outputProcessor.toMap(outputList); } MapOutputHandler(); MapOutputHandler(QueryOutputProcessor processor); }
MapOutputHandler extends AbstractOutputHandler<Map<String, Object>> { public Map<String, Object> handle(List<QueryParameters> outputList) throws MjdbcException { return this.outputProcessor.toMap(outputList); } MapOutputHandler(); MapOutputHandler(QueryOutputProcessor processor); Map<String, Object> handle(List<QueryP...
MapOutputHandler extends AbstractOutputHandler<Map<String, Object>> { public Map<String, Object> handle(List<QueryParameters> outputList) throws MjdbcException { return this.outputProcessor.toMap(outputList); } MapOutputHandler(); MapOutputHandler(QueryOutputProcessor processor); Map<String, Object> handle(List<QueryP...
@Test public void testCreateRow() throws Exception { BeanMapOutputHandler<String, Character> handler = new BeanMapOutputHandler<String, Character>(Character.class); Character result = handler.createRow(params); Assert.assertEquals(params.getValue("name"), result.getName()); Assert.assertEquals(params.getValue("occupati...
@Override protected V createRow(QueryParameters params) throws MjdbcException { return this.outputProcessor.toBean(params, type); }
BeanMapOutputHandler extends AbstractKeyedOutputHandler<K, V> { @Override protected V createRow(QueryParameters params) throws MjdbcException { return this.outputProcessor.toBean(params, type); } }
BeanMapOutputHandler extends AbstractKeyedOutputHandler<K, V> { @Override protected V createRow(QueryParameters params) throws MjdbcException { return this.outputProcessor.toBean(params, type); } BeanMapOutputHandler(Class<V> type); BeanMapOutputHandler(Class<V> type, QueryOutputProcessor processor); BeanMapOutputHan...
BeanMapOutputHandler extends AbstractKeyedOutputHandler<K, V> { @Override protected V createRow(QueryParameters params) throws MjdbcException { return this.outputProcessor.toBean(params, type); } BeanMapOutputHandler(Class<V> type); BeanMapOutputHandler(Class<V> type, QueryOutputProcessor processor); BeanMapOutputHan...
BeanMapOutputHandler extends AbstractKeyedOutputHandler<K, V> { @Override protected V createRow(QueryParameters params) throws MjdbcException { return this.outputProcessor.toBean(params, type); } BeanMapOutputHandler(Class<V> type); BeanMapOutputHandler(Class<V> type, QueryOutputProcessor processor); BeanMapOutputHan...
@Test public void testHandle() throws Exception { List<String> result = new ColumnListOutputHandler<String>().handle(paramsList); Assert.assertArrayEquals(new Object[]{"jack", "henry", "alison"}, result.toArray()); }
public List<T> handle(List<QueryParameters> outputList) throws MjdbcException { List<T> result = new ArrayList<T>(); String parameterName = null; Object parameterValue = null; for (int i = 1; i < outputList.size(); i++) { if (this.columnName == null) { parameterName = outputList.get(i).getNameByPosition(this.columnInde...
ColumnListOutputHandler extends AbstractOutputListHandler<T> { public List<T> handle(List<QueryParameters> outputList) throws MjdbcException { List<T> result = new ArrayList<T>(); String parameterName = null; Object parameterValue = null; for (int i = 1; i < outputList.size(); i++) { if (this.columnName == null) { para...
ColumnListOutputHandler extends AbstractOutputListHandler<T> { public List<T> handle(List<QueryParameters> outputList) throws MjdbcException { List<T> result = new ArrayList<T>(); String parameterName = null; Object parameterValue = null; for (int i = 1; i < outputList.size(); i++) { if (this.columnName == null) { para...
ColumnListOutputHandler extends AbstractOutputListHandler<T> { public List<T> handle(List<QueryParameters> outputList) throws MjdbcException { List<T> result = new ArrayList<T>(); String parameterName = null; Object parameterValue = null; for (int i = 1; i < outputList.size(); i++) { if (this.columnName == null) { para...
ColumnListOutputHandler extends AbstractOutputListHandler<T> { public List<T> handle(List<QueryParameters> outputList) throws MjdbcException { List<T> result = new ArrayList<T>(); String parameterName = null; Object parameterValue = null; for (int i = 1; i < outputList.size(); i++) { if (this.columnName == null) { para...
@Test public void testEmpty() throws MjdbcException { List<String> result = new ColumnListOutputHandler<String>().handle(emptyList); Assert.assertEquals(0, result.size()); }
public List<T> handle(List<QueryParameters> outputList) throws MjdbcException { List<T> result = new ArrayList<T>(); String parameterName = null; Object parameterValue = null; for (int i = 1; i < outputList.size(); i++) { if (this.columnName == null) { parameterName = outputList.get(i).getNameByPosition(this.columnInde...
ColumnListOutputHandler extends AbstractOutputListHandler<T> { public List<T> handle(List<QueryParameters> outputList) throws MjdbcException { List<T> result = new ArrayList<T>(); String parameterName = null; Object parameterValue = null; for (int i = 1; i < outputList.size(); i++) { if (this.columnName == null) { para...
ColumnListOutputHandler extends AbstractOutputListHandler<T> { public List<T> handle(List<QueryParameters> outputList) throws MjdbcException { List<T> result = new ArrayList<T>(); String parameterName = null; Object parameterValue = null; for (int i = 1; i < outputList.size(); i++) { if (this.columnName == null) { para...
ColumnListOutputHandler extends AbstractOutputListHandler<T> { public List<T> handle(List<QueryParameters> outputList) throws MjdbcException { List<T> result = new ArrayList<T>(); String parameterName = null; Object parameterValue = null; for (int i = 1; i < outputList.size(); i++) { if (this.columnName == null) { para...
ColumnListOutputHandler extends AbstractOutputListHandler<T> { public List<T> handle(List<QueryParameters> outputList) throws MjdbcException { List<T> result = new ArrayList<T>(); String parameterName = null; Object parameterValue = null; for (int i = 1; i < outputList.size(); i++) { if (this.columnName == null) { para...
@Test public void testHandle() throws Exception { MapListOutputHandler handler = new MapListOutputHandler(); List<Map<String, Object>> result = handler.handle(paramsList); org.junit.Assert.assertArrayEquals(new Object[]{"jack", "sheriff", 36}, new Object[]{result.get(0).get("name"), result.get(0).get("occupation"), res...
public List<Map<String, Object>> handle(List<QueryParameters> outputList) throws MjdbcException { return this.outputProcessor.toMapList(outputList); }
MapListOutputHandler extends AbstractOutputListHandler<Map<String, Object>> { public List<Map<String, Object>> handle(List<QueryParameters> outputList) throws MjdbcException { return this.outputProcessor.toMapList(outputList); } }
MapListOutputHandler extends AbstractOutputListHandler<Map<String, Object>> { public List<Map<String, Object>> handle(List<QueryParameters> outputList) throws MjdbcException { return this.outputProcessor.toMapList(outputList); } MapListOutputHandler(); MapListOutputHandler(QueryOutputProcessor processor); }
MapListOutputHandler extends AbstractOutputListHandler<Map<String, Object>> { public List<Map<String, Object>> handle(List<QueryParameters> outputList) throws MjdbcException { return this.outputProcessor.toMapList(outputList); } MapListOutputHandler(); MapListOutputHandler(QueryOutputProcessor processor); List<Map<Str...
MapListOutputHandler extends AbstractOutputListHandler<Map<String, Object>> { public List<Map<String, Object>> handle(List<QueryParameters> outputList) throws MjdbcException { return this.outputProcessor.toMapList(outputList); } MapListOutputHandler(); MapListOutputHandler(QueryOutputProcessor processor); List<Map<Str...
@Test public void testEmpty() throws MjdbcException { MapListOutputHandler handler = new MapListOutputHandler(); List<Map<String, Object>> result = handler.handle(emptyList); Assert.assertEquals(0, result.size()); }
public List<Map<String, Object>> handle(List<QueryParameters> outputList) throws MjdbcException { return this.outputProcessor.toMapList(outputList); }
MapListOutputHandler extends AbstractOutputListHandler<Map<String, Object>> { public List<Map<String, Object>> handle(List<QueryParameters> outputList) throws MjdbcException { return this.outputProcessor.toMapList(outputList); } }
MapListOutputHandler extends AbstractOutputListHandler<Map<String, Object>> { public List<Map<String, Object>> handle(List<QueryParameters> outputList) throws MjdbcException { return this.outputProcessor.toMapList(outputList); } MapListOutputHandler(); MapListOutputHandler(QueryOutputProcessor processor); }
MapListOutputHandler extends AbstractOutputListHandler<Map<String, Object>> { public List<Map<String, Object>> handle(List<QueryParameters> outputList) throws MjdbcException { return this.outputProcessor.toMapList(outputList); } MapListOutputHandler(); MapListOutputHandler(QueryOutputProcessor processor); List<Map<Str...
MapListOutputHandler extends AbstractOutputListHandler<Map<String, Object>> { public List<Map<String, Object>> handle(List<QueryParameters> outputList) throws MjdbcException { return this.outputProcessor.toMapList(outputList); } MapListOutputHandler(); MapListOutputHandler(QueryOutputProcessor processor); List<Map<Str...
@Test public void testUpdateCache() throws Exception { BaseMetadataHandler metadataHandler = new BaseMetadataHandler(conn, false); Assert.assertEquals(1, metadataHandler.updateCache(metaData, null, null, "bla")); }
public int updateCache(DatabaseMetaData metaData, String catalogName, String schemaName, String procedureName) throws SQLException { String dbProductName = MetadataUtils.processDatabaseProductName(metaData.getDatabaseProductName()); ResultSet procedures = null; ResultSet procedureParameters = null; List<String> procedu...
BaseMetadataHandler implements MetadataHandler { public int updateCache(DatabaseMetaData metaData, String catalogName, String schemaName, String procedureName) throws SQLException { String dbProductName = MetadataUtils.processDatabaseProductName(metaData.getDatabaseProductName()); ResultSet procedures = null; ResultSet...
BaseMetadataHandler implements MetadataHandler { public int updateCache(DatabaseMetaData metaData, String catalogName, String schemaName, String procedureName) throws SQLException { String dbProductName = MetadataUtils.processDatabaseProductName(metaData.getDatabaseProductName()); ResultSet procedures = null; ResultSet...
BaseMetadataHandler implements MetadataHandler { public int updateCache(DatabaseMetaData metaData, String catalogName, String schemaName, String procedureName) throws SQLException { String dbProductName = MetadataUtils.processDatabaseProductName(metaData.getDatabaseProductName()); ResultSet procedures = null; ResultSet...
BaseMetadataHandler implements MetadataHandler { public int updateCache(DatabaseMetaData metaData, String catalogName, String schemaName, String procedureName) throws SQLException { String dbProductName = MetadataUtils.processDatabaseProductName(metaData.getDatabaseProductName()); ResultSet procedures = null; ResultSet...
@Test public void testGetProcedureParameters() throws Exception { QueryRunnerService queryRunner = null; queryRunner = MjdbcFactory.getQueryRunner(ds); ((QueryRunner) queryRunner).setStatementHandler(statementHandler); queryRunner.update(inputHandler); queryRunner.query(inputHandler, outputHandler); queryRunner.batch(n...
public QueryParameters getProcedureParameters(Connection conn, String catalogName, String schemaName, String procedureName, boolean useCache) throws SQLException { DatabaseMetaData metaData = conn.getMetaData(); String userName = metaData.getUserName(); String dbProductName = MetadataUtils.processDatabaseProductName(me...
BaseMetadataHandler implements MetadataHandler { public QueryParameters getProcedureParameters(Connection conn, String catalogName, String schemaName, String procedureName, boolean useCache) throws SQLException { DatabaseMetaData metaData = conn.getMetaData(); String userName = metaData.getUserName(); String dbProductN...
BaseMetadataHandler implements MetadataHandler { public QueryParameters getProcedureParameters(Connection conn, String catalogName, String schemaName, String procedureName, boolean useCache) throws SQLException { DatabaseMetaData metaData = conn.getMetaData(); String userName = metaData.getUserName(); String dbProductN...
BaseMetadataHandler implements MetadataHandler { public QueryParameters getProcedureParameters(Connection conn, String catalogName, String schemaName, String procedureName, boolean useCache) throws SQLException { DatabaseMetaData metaData = conn.getMetaData(); String userName = metaData.getUserName(); String dbProductN...
BaseMetadataHandler implements MetadataHandler { public QueryParameters getProcedureParameters(Connection conn, String catalogName, String schemaName, String procedureName, boolean useCache) throws SQLException { DatabaseMetaData metaData = conn.getMetaData(); String userName = metaData.getUserName(); String dbProductN...
@Test public void testEquals() throws Exception { String catalog = "catalog"; String schema = "schema"; String name = "executeproc"; StoredProcedure proc = new StoredProcedure(catalog, schema, name); StoredProcedure procCompare = new StoredProcedure(null, null, name); Assert.assertEquals(false, proc.equals(procCompare)...
@Override public boolean equals(Object obj) { boolean result = false; StoredProcedure procedure = null; if (obj instanceof StoredProcedure) { procedure = (StoredProcedure) obj; AssertUtils.assertNotNull(procedure.getProcedureName(), "Procedure name cannot be null"); if (equalsNull(getCatalog(), procedure.getCatalog()) ...
StoredProcedure implements Comparable<StoredProcedure> { @Override public boolean equals(Object obj) { boolean result = false; StoredProcedure procedure = null; if (obj instanceof StoredProcedure) { procedure = (StoredProcedure) obj; AssertUtils.assertNotNull(procedure.getProcedureName(), "Procedure name cannot be null...
StoredProcedure implements Comparable<StoredProcedure> { @Override public boolean equals(Object obj) { boolean result = false; StoredProcedure procedure = null; if (obj instanceof StoredProcedure) { procedure = (StoredProcedure) obj; AssertUtils.assertNotNull(procedure.getProcedureName(), "Procedure name cannot be null...
StoredProcedure implements Comparable<StoredProcedure> { @Override public boolean equals(Object obj) { boolean result = false; StoredProcedure procedure = null; if (obj instanceof StoredProcedure) { procedure = (StoredProcedure) obj; AssertUtils.assertNotNull(procedure.getProcedureName(), "Procedure name cannot be null...
StoredProcedure implements Comparable<StoredProcedure> { @Override public boolean equals(Object obj) { boolean result = false; StoredProcedure procedure = null; if (obj instanceof StoredProcedure) { procedure = (StoredProcedure) obj; AssertUtils.assertNotNull(procedure.getProcedureName(), "Procedure name cannot be null...
@Test(expected = Exception.class) public void testEqualsException() throws Exception { String catalog = "catalog"; String schema = "schema"; String name = "executeproc"; StoredProcedure proc = new StoredProcedure(catalog, schema, name); StoredProcedure procCompare = new StoredProcedure(null, null, null); Assert.assertE...
@Override public boolean equals(Object obj) { boolean result = false; StoredProcedure procedure = null; if (obj instanceof StoredProcedure) { procedure = (StoredProcedure) obj; AssertUtils.assertNotNull(procedure.getProcedureName(), "Procedure name cannot be null"); if (equalsNull(getCatalog(), procedure.getCatalog()) ...
StoredProcedure implements Comparable<StoredProcedure> { @Override public boolean equals(Object obj) { boolean result = false; StoredProcedure procedure = null; if (obj instanceof StoredProcedure) { procedure = (StoredProcedure) obj; AssertUtils.assertNotNull(procedure.getProcedureName(), "Procedure name cannot be null...
StoredProcedure implements Comparable<StoredProcedure> { @Override public boolean equals(Object obj) { boolean result = false; StoredProcedure procedure = null; if (obj instanceof StoredProcedure) { procedure = (StoredProcedure) obj; AssertUtils.assertNotNull(procedure.getProcedureName(), "Procedure name cannot be null...
StoredProcedure implements Comparable<StoredProcedure> { @Override public boolean equals(Object obj) { boolean result = false; StoredProcedure procedure = null; if (obj instanceof StoredProcedure) { procedure = (StoredProcedure) obj; AssertUtils.assertNotNull(procedure.getProcedureName(), "Procedure name cannot be null...
StoredProcedure implements Comparable<StoredProcedure> { @Override public boolean equals(Object obj) { boolean result = false; StoredProcedure procedure = null; if (obj instanceof StoredProcedure) { procedure = (StoredProcedure) obj; AssertUtils.assertNotNull(procedure.getProcedureName(), "Procedure name cannot be null...
@Test public void testGetAsyncQueryRunner() throws Exception { Assert.assertEquals(true, MjdbcFactory.getAsyncQueryRunner(null, null) instanceof AsyncQueryRunner); }
public static AsyncQueryRunnerService getAsyncQueryRunner(QueryRunner runner, ExecutorService executorService) { return new AsyncQueryRunner(runner, executorService); }
MjdbcFactory { public static AsyncQueryRunnerService getAsyncQueryRunner(QueryRunner runner, ExecutorService executorService) { return new AsyncQueryRunner(runner, executorService); } }
MjdbcFactory { public static AsyncQueryRunnerService getAsyncQueryRunner(QueryRunner runner, ExecutorService executorService) { return new AsyncQueryRunner(runner, executorService); } }
MjdbcFactory { public static AsyncQueryRunnerService getAsyncQueryRunner(QueryRunner runner, ExecutorService executorService) { return new AsyncQueryRunner(runner, executorService); } static QueryRunnerService getQueryRunner(DataSource ds); static QueryRunnerService getQueryRunner(DataSource ds, Class<? extends TypeHa...
MjdbcFactory { public static AsyncQueryRunnerService getAsyncQueryRunner(QueryRunner runner, ExecutorService executorService) { return new AsyncQueryRunner(runner, executorService); } static QueryRunnerService getQueryRunner(DataSource ds); static QueryRunnerService getQueryRunner(DataSource ds, Class<? extends TypeHa...
@Test public void testCompareTo() throws Exception { String catalog = "catalog"; String schema = "schema"; String name = "executeproc"; StoredProcedure proc = new StoredProcedure(catalog, schema, name); StoredProcedure procCompare = new StoredProcedure(null, null, name); Assert.assertEquals(1, proc.compareTo(procCompar...
public int compareTo(StoredProcedure o) { int result = -2; result = order(getCatalog(), o.getCatalog()); result = (result == 0 ? order(getSchema(), o.getSchema()) : result); result = (result == 0 ? order(getProcedureName(), o.getProcedureName()) : result); return result; }
StoredProcedure implements Comparable<StoredProcedure> { public int compareTo(StoredProcedure o) { int result = -2; result = order(getCatalog(), o.getCatalog()); result = (result == 0 ? order(getSchema(), o.getSchema()) : result); result = (result == 0 ? order(getProcedureName(), o.getProcedureName()) : result); return...
StoredProcedure implements Comparable<StoredProcedure> { public int compareTo(StoredProcedure o) { int result = -2; result = order(getCatalog(), o.getCatalog()); result = (result == 0 ? order(getSchema(), o.getSchema()) : result); result = (result == 0 ? order(getProcedureName(), o.getProcedureName()) : result); return...
StoredProcedure implements Comparable<StoredProcedure> { public int compareTo(StoredProcedure o) { int result = -2; result = order(getCatalog(), o.getCatalog()); result = (result == 0 ? order(getSchema(), o.getSchema()) : result); result = (result == 0 ? order(getProcedureName(), o.getProcedureName()) : result); return...
StoredProcedure implements Comparable<StoredProcedure> { public int compareTo(StoredProcedure o) { int result = -2; result = order(getCatalog(), o.getCatalog()); result = (result == 0 ? order(getSchema(), o.getSchema()) : result); result = (result == 0 ? order(getProcedureName(), o.getProcedureName()) : result); return...
@Test public void testToString() throws Exception { String catalog = "catalog"; String schema = "schema"; String name = "executeproc"; String expectedString = catalog + "." + schema + "." + name; StoredProcedure proc = new StoredProcedure(catalog, schema, name); Assert.assertEquals(expectedString, proc.toString()); }
@Override public String toString() { return this.getCatalog() + "." + this.getSchema() + "." + this.getProcedureName(); }
StoredProcedure implements Comparable<StoredProcedure> { @Override public String toString() { return this.getCatalog() + "." + this.getSchema() + "." + this.getProcedureName(); } }
StoredProcedure implements Comparable<StoredProcedure> { @Override public String toString() { return this.getCatalog() + "." + this.getSchema() + "." + this.getProcedureName(); } StoredProcedure(String catalog, String schema, String procedureName); }
StoredProcedure implements Comparable<StoredProcedure> { @Override public String toString() { return this.getCatalog() + "." + this.getSchema() + "." + this.getProcedureName(); } StoredProcedure(String catalog, String schema, String procedureName); String getCatalog(); String getSchema(); String getProcedureName(); @Ov...
StoredProcedure implements Comparable<StoredProcedure> { @Override public String toString() { return this.getCatalog() + "." + this.getSchema() + "." + this.getProcedureName(); } StoredProcedure(String catalog, String schema, String procedureName); String getCatalog(); String getSchema(); String getProcedureName(); @Ov...
@Test public void testProcessDatabaseProductName() throws Exception { Assert.assertEquals("Sybase", MetadataUtils.processDatabaseProductName("Sybase SQL Server")); Assert.assertEquals("DB2", MetadataUtils.processDatabaseProductName("DB2 Database Server")); }
public static String processDatabaseProductName(String databaseProductName) { String result = databaseProductName; if (databaseProductName != null && databaseProductName.startsWith("DB2") == true) { result = "DB2"; } else if ("Sybase SQL Server".equals(databaseProductName) == true || "Adaptive Server Enterprise".equals...
MetadataUtils { public static String processDatabaseProductName(String databaseProductName) { String result = databaseProductName; if (databaseProductName != null && databaseProductName.startsWith("DB2") == true) { result = "DB2"; } else if ("Sybase SQL Server".equals(databaseProductName) == true || "Adaptive Server En...
MetadataUtils { public static String processDatabaseProductName(String databaseProductName) { String result = databaseProductName; if (databaseProductName != null && databaseProductName.startsWith("DB2") == true) { result = "DB2"; } else if ("Sybase SQL Server".equals(databaseProductName) == true || "Adaptive Server En...
MetadataUtils { public static String processDatabaseProductName(String databaseProductName) { String result = databaseProductName; if (databaseProductName != null && databaseProductName.startsWith("DB2") == true) { result = "DB2"; } else if ("Sybase SQL Server".equals(databaseProductName) == true || "Adaptive Server En...
MetadataUtils { public static String processDatabaseProductName(String databaseProductName) { String result = databaseProductName; if (databaseProductName != null && databaseProductName.startsWith("DB2") == true) { result = "DB2"; } else if ("Sybase SQL Server".equals(databaseProductName) == true || "Adaptive Server En...
@Test public void testBatch1() throws Exception { asyncRunner.batch(null, new Object[0][0]); sleep(); verify(runner, times(1)).batch(any(String.class), any(Object[][].class)); }
public Future<int[]> batch(final String sql, final Object[][] params) throws SQLException { return executorService.submit(new Callable<int[]>() { public int[] call() throws Exception { return queryRunner.batch(sql, params); } }); }
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<int[]> batch(final String sql, final Object[][] params) throws SQLException { return executorService.submit(new Callable<int[]>() { public int[] call() throws Exception { return queryRunner.batch(sql, params); } }); } }
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<int[]> batch(final String sql, final Object[][] params) throws SQLException { return executorService.submit(new Callable<int[]>() { public int[] call() throws Exception { return queryRunner.batch(sql, params); } }); } AsyncQueryRunner(QueryRunnerServic...
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<int[]> batch(final String sql, final Object[][] params) throws SQLException { return executorService.submit(new Callable<int[]>() { public int[] call() throws Exception { return queryRunner.batch(sql, params); } }); } AsyncQueryRunner(QueryRunnerServic...
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<int[]> batch(final String sql, final Object[][] params) throws SQLException { return executorService.submit(new Callable<int[]>() { public int[] call() throws Exception { return queryRunner.batch(sql, params); } }); } AsyncQueryRunner(QueryRunnerServic...
@Test public void testBatch2() throws Exception { asyncRunner.batch(new InputHandler[0]); sleep(); verify(runner, times(1)).batch(any(InputHandler[].class)); }
public Future<int[]> batch(final String sql, final Object[][] params) throws SQLException { return executorService.submit(new Callable<int[]>() { public int[] call() throws Exception { return queryRunner.batch(sql, params); } }); }
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<int[]> batch(final String sql, final Object[][] params) throws SQLException { return executorService.submit(new Callable<int[]>() { public int[] call() throws Exception { return queryRunner.batch(sql, params); } }); } }
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<int[]> batch(final String sql, final Object[][] params) throws SQLException { return executorService.submit(new Callable<int[]>() { public int[] call() throws Exception { return queryRunner.batch(sql, params); } }); } AsyncQueryRunner(QueryRunnerServic...
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<int[]> batch(final String sql, final Object[][] params) throws SQLException { return executorService.submit(new Callable<int[]>() { public int[] call() throws Exception { return queryRunner.batch(sql, params); } }); } AsyncQueryRunner(QueryRunnerServic...
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<int[]> batch(final String sql, final Object[][] params) throws SQLException { return executorService.submit(new Callable<int[]>() { public int[] call() throws Exception { return queryRunner.batch(sql, params); } }); } AsyncQueryRunner(QueryRunnerServic...
@Test public void testQuery1() throws Exception { asyncRunner.query("", new MapOutputHandler(), ""); sleep(); verify(runner, times(1)).query(any(String.class), any(MapOutputHandler.class), any(String.class)); }
public <T> Future<T> query(final String sql, final OutputHandler<T> outputHandler, final Object... params) throws SQLException { return executorService.submit(new Callable<T>() { public T call() throws Exception { return queryRunner.query(sql, outputHandler, params); } }); }
AsyncQueryRunner implements AsyncQueryRunnerService { public <T> Future<T> query(final String sql, final OutputHandler<T> outputHandler, final Object... params) throws SQLException { return executorService.submit(new Callable<T>() { public T call() throws Exception { return queryRunner.query(sql, outputHandler, params)...
AsyncQueryRunner implements AsyncQueryRunnerService { public <T> Future<T> query(final String sql, final OutputHandler<T> outputHandler, final Object... params) throws SQLException { return executorService.submit(new Callable<T>() { public T call() throws Exception { return queryRunner.query(sql, outputHandler, params)...
AsyncQueryRunner implements AsyncQueryRunnerService { public <T> Future<T> query(final String sql, final OutputHandler<T> outputHandler, final Object... params) throws SQLException { return executorService.submit(new Callable<T>() { public T call() throws Exception { return queryRunner.query(sql, outputHandler, params)...
AsyncQueryRunner implements AsyncQueryRunnerService { public <T> Future<T> query(final String sql, final OutputHandler<T> outputHandler, final Object... params) throws SQLException { return executorService.submit(new Callable<T>() { public T call() throws Exception { return queryRunner.query(sql, outputHandler, params)...
@Test public void testQuery2() throws Exception { asyncRunner.query(new BeanInputHandler("", ""), new MapOutputHandler()); sleep(); verify(runner, times(1)).query(any(InputHandler.class), any(MapOutputHandler.class)); }
public <T> Future<T> query(final String sql, final OutputHandler<T> outputHandler, final Object... params) throws SQLException { return executorService.submit(new Callable<T>() { public T call() throws Exception { return queryRunner.query(sql, outputHandler, params); } }); }
AsyncQueryRunner implements AsyncQueryRunnerService { public <T> Future<T> query(final String sql, final OutputHandler<T> outputHandler, final Object... params) throws SQLException { return executorService.submit(new Callable<T>() { public T call() throws Exception { return queryRunner.query(sql, outputHandler, params)...
AsyncQueryRunner implements AsyncQueryRunnerService { public <T> Future<T> query(final String sql, final OutputHandler<T> outputHandler, final Object... params) throws SQLException { return executorService.submit(new Callable<T>() { public T call() throws Exception { return queryRunner.query(sql, outputHandler, params)...
AsyncQueryRunner implements AsyncQueryRunnerService { public <T> Future<T> query(final String sql, final OutputHandler<T> outputHandler, final Object... params) throws SQLException { return executorService.submit(new Callable<T>() { public T call() throws Exception { return queryRunner.query(sql, outputHandler, params)...
AsyncQueryRunner implements AsyncQueryRunnerService { public <T> Future<T> query(final String sql, final OutputHandler<T> outputHandler, final Object... params) throws SQLException { return executorService.submit(new Callable<T>() { public T call() throws Exception { return queryRunner.query(sql, outputHandler, params)...
@Test public void testQuery3() throws Exception { asyncRunner.query("", new MapOutputHandler()); sleep(); verify(runner, times(1)).query(any(String.class), any(MapOutputHandler.class)); }
public <T> Future<T> query(final String sql, final OutputHandler<T> outputHandler, final Object... params) throws SQLException { return executorService.submit(new Callable<T>() { public T call() throws Exception { return queryRunner.query(sql, outputHandler, params); } }); }
AsyncQueryRunner implements AsyncQueryRunnerService { public <T> Future<T> query(final String sql, final OutputHandler<T> outputHandler, final Object... params) throws SQLException { return executorService.submit(new Callable<T>() { public T call() throws Exception { return queryRunner.query(sql, outputHandler, params)...
AsyncQueryRunner implements AsyncQueryRunnerService { public <T> Future<T> query(final String sql, final OutputHandler<T> outputHandler, final Object... params) throws SQLException { return executorService.submit(new Callable<T>() { public T call() throws Exception { return queryRunner.query(sql, outputHandler, params)...
AsyncQueryRunner implements AsyncQueryRunnerService { public <T> Future<T> query(final String sql, final OutputHandler<T> outputHandler, final Object... params) throws SQLException { return executorService.submit(new Callable<T>() { public T call() throws Exception { return queryRunner.query(sql, outputHandler, params)...
AsyncQueryRunner implements AsyncQueryRunnerService { public <T> Future<T> query(final String sql, final OutputHandler<T> outputHandler, final Object... params) throws SQLException { return executorService.submit(new Callable<T>() { public T call() throws Exception { return queryRunner.query(sql, outputHandler, params)...
@Test public void testUpdate1() throws Exception { asyncRunner.update(""); sleep(); verify(runner, times(1)).update(""); }
public Future<Integer> update(final String sql) throws SQLException { return executorService.submit(new Callable<Integer>() { public Integer call() throws Exception { return queryRunner.update(sql); } }); }
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<Integer> update(final String sql) throws SQLException { return executorService.submit(new Callable<Integer>() { public Integer call() throws Exception { return queryRunner.update(sql); } }); } }
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<Integer> update(final String sql) throws SQLException { return executorService.submit(new Callable<Integer>() { public Integer call() throws Exception { return queryRunner.update(sql); } }); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService...
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<Integer> update(final String sql) throws SQLException { return executorService.submit(new Callable<Integer>() { public Integer call() throws Exception { return queryRunner.update(sql); } }); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService...
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<Integer> update(final String sql) throws SQLException { return executorService.submit(new Callable<Integer>() { public Integer call() throws Exception { return queryRunner.update(sql); } }); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService...
@Test public void testUpdate2() throws Exception { asyncRunner.update("", ""); sleep(); verify(runner, times(1)).update("", ""); }
public Future<Integer> update(final String sql) throws SQLException { return executorService.submit(new Callable<Integer>() { public Integer call() throws Exception { return queryRunner.update(sql); } }); }
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<Integer> update(final String sql) throws SQLException { return executorService.submit(new Callable<Integer>() { public Integer call() throws Exception { return queryRunner.update(sql); } }); } }
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<Integer> update(final String sql) throws SQLException { return executorService.submit(new Callable<Integer>() { public Integer call() throws Exception { return queryRunner.update(sql); } }); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService...
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<Integer> update(final String sql) throws SQLException { return executorService.submit(new Callable<Integer>() { public Integer call() throws Exception { return queryRunner.update(sql); } }); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService...
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<Integer> update(final String sql) throws SQLException { return executorService.submit(new Callable<Integer>() { public Integer call() throws Exception { return queryRunner.update(sql); } }); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService...
@Test(expected = NoClassDefFoundError.class) public void testCreateDataSourceProp() throws Exception { MjdbcFactory.createDataSource(new Properties()); }
public static DataSource createDataSource(Properties poolProperties) throws SQLException { try { return MjdbcPoolBinder.createDataSource(poolProperties); } catch (NoClassDefFoundError ex) { throw new NoClassDefFoundError(ERROR_COULDNT_FIND_POOL_PROVIDER); } }
MjdbcFactory { public static DataSource createDataSource(Properties poolProperties) throws SQLException { try { return MjdbcPoolBinder.createDataSource(poolProperties); } catch (NoClassDefFoundError ex) { throw new NoClassDefFoundError(ERROR_COULDNT_FIND_POOL_PROVIDER); } } }
MjdbcFactory { public static DataSource createDataSource(Properties poolProperties) throws SQLException { try { return MjdbcPoolBinder.createDataSource(poolProperties); } catch (NoClassDefFoundError ex) { throw new NoClassDefFoundError(ERROR_COULDNT_FIND_POOL_PROVIDER); } } }
MjdbcFactory { public static DataSource createDataSource(Properties poolProperties) throws SQLException { try { return MjdbcPoolBinder.createDataSource(poolProperties); } catch (NoClassDefFoundError ex) { throw new NoClassDefFoundError(ERROR_COULDNT_FIND_POOL_PROVIDER); } } static QueryRunnerService getQueryRunner(Dat...
MjdbcFactory { public static DataSource createDataSource(Properties poolProperties) throws SQLException { try { return MjdbcPoolBinder.createDataSource(poolProperties); } catch (NoClassDefFoundError ex) { throw new NoClassDefFoundError(ERROR_COULDNT_FIND_POOL_PROVIDER); } } static QueryRunnerService getQueryRunner(Dat...
@Test public void testUpdate3() throws Exception { asyncRunner.update("", "", ""); sleep(); verify(runner, times(1)).update("", "", ""); }
public Future<Integer> update(final String sql) throws SQLException { return executorService.submit(new Callable<Integer>() { public Integer call() throws Exception { return queryRunner.update(sql); } }); }
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<Integer> update(final String sql) throws SQLException { return executorService.submit(new Callable<Integer>() { public Integer call() throws Exception { return queryRunner.update(sql); } }); } }
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<Integer> update(final String sql) throws SQLException { return executorService.submit(new Callable<Integer>() { public Integer call() throws Exception { return queryRunner.update(sql); } }); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService...
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<Integer> update(final String sql) throws SQLException { return executorService.submit(new Callable<Integer>() { public Integer call() throws Exception { return queryRunner.update(sql); } }); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService...
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<Integer> update(final String sql) throws SQLException { return executorService.submit(new Callable<Integer>() { public Integer call() throws Exception { return queryRunner.update(sql); } }); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService...
@Test public void testUpdate4() throws Exception { asyncRunner.update(new BeanInputHandler<String>("", "")); sleep(); verify(runner, times(1)).update(any(InputHandler.class)); }
public Future<Integer> update(final String sql) throws SQLException { return executorService.submit(new Callable<Integer>() { public Integer call() throws Exception { return queryRunner.update(sql); } }); }
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<Integer> update(final String sql) throws SQLException { return executorService.submit(new Callable<Integer>() { public Integer call() throws Exception { return queryRunner.update(sql); } }); } }
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<Integer> update(final String sql) throws SQLException { return executorService.submit(new Callable<Integer>() { public Integer call() throws Exception { return queryRunner.update(sql); } }); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService...
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<Integer> update(final String sql) throws SQLException { return executorService.submit(new Callable<Integer>() { public Integer call() throws Exception { return queryRunner.update(sql); } }); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService...
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<Integer> update(final String sql) throws SQLException { return executorService.submit(new Callable<Integer>() { public Integer call() throws Exception { return queryRunner.update(sql); } }); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService...
@Test public void testUpdate5() throws Exception { asyncRunner.update(new BeanInputHandler<String>("", ""), new MapOutputHandler()); sleep(); verify(runner, times(1)).update(any(InputHandler.class), any(MapOutputHandler.class)); }
public Future<Integer> update(final String sql) throws SQLException { return executorService.submit(new Callable<Integer>() { public Integer call() throws Exception { return queryRunner.update(sql); } }); }
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<Integer> update(final String sql) throws SQLException { return executorService.submit(new Callable<Integer>() { public Integer call() throws Exception { return queryRunner.update(sql); } }); } }
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<Integer> update(final String sql) throws SQLException { return executorService.submit(new Callable<Integer>() { public Integer call() throws Exception { return queryRunner.update(sql); } }); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService...
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<Integer> update(final String sql) throws SQLException { return executorService.submit(new Callable<Integer>() { public Integer call() throws Exception { return queryRunner.update(sql); } }); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService...
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<Integer> update(final String sql) throws SQLException { return executorService.submit(new Callable<Integer>() { public Integer call() throws Exception { return queryRunner.update(sql); } }); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService...
@Test public void testUpdate6() throws Exception { asyncRunner.update("", new MapOutputHandler(), ""); sleep(); verify(runner, times(1)).update(any(String.class), any(MapOutputHandler.class), any(String.class)); }
public Future<Integer> update(final String sql) throws SQLException { return executorService.submit(new Callable<Integer>() { public Integer call() throws Exception { return queryRunner.update(sql); } }); }
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<Integer> update(final String sql) throws SQLException { return executorService.submit(new Callable<Integer>() { public Integer call() throws Exception { return queryRunner.update(sql); } }); } }
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<Integer> update(final String sql) throws SQLException { return executorService.submit(new Callable<Integer>() { public Integer call() throws Exception { return queryRunner.update(sql); } }); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService...
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<Integer> update(final String sql) throws SQLException { return executorService.submit(new Callable<Integer>() { public Integer call() throws Exception { return queryRunner.update(sql); } }); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService...
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<Integer> update(final String sql) throws SQLException { return executorService.submit(new Callable<Integer>() { public Integer call() throws Exception { return queryRunner.update(sql); } }); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService...
@Test public void testCall1() throws Exception { asyncRunner.call(new QueryInputHandler("", new QueryParameters())); sleep(); verify(runner, times(1)).call(any(AbstractQueryInputHandler.class)); }
public Future<QueryParameters> call(final AbstractQueryInputHandler inputHandler) throws SQLException { return executorService.submit(new Callable<QueryParameters>() { public QueryParameters call() throws Exception { return queryRunner.call(inputHandler); } }); }
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<QueryParameters> call(final AbstractQueryInputHandler inputHandler) throws SQLException { return executorService.submit(new Callable<QueryParameters>() { public QueryParameters call() throws Exception { return queryRunner.call(inputHandler); } }); } }
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<QueryParameters> call(final AbstractQueryInputHandler inputHandler) throws SQLException { return executorService.submit(new Callable<QueryParameters>() { public QueryParameters call() throws Exception { return queryRunner.call(inputHandler); } }); } As...
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<QueryParameters> call(final AbstractQueryInputHandler inputHandler) throws SQLException { return executorService.submit(new Callable<QueryParameters>() { public QueryParameters call() throws Exception { return queryRunner.call(inputHandler); } }); } As...
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<QueryParameters> call(final AbstractQueryInputHandler inputHandler) throws SQLException { return executorService.submit(new Callable<QueryParameters>() { public QueryParameters call() throws Exception { return queryRunner.call(inputHandler); } }); } As...
@Test public void testCall2() throws Exception { asyncRunner.call(new BeanInputHandler<String>("", ""), "", "", false); sleep(); verify(runner, times(1)).call(any(AbstractNamedInputHandler.class), any(String.class), any(String.class), any(boolean.class)); }
public Future<QueryParameters> call(final AbstractQueryInputHandler inputHandler) throws SQLException { return executorService.submit(new Callable<QueryParameters>() { public QueryParameters call() throws Exception { return queryRunner.call(inputHandler); } }); }
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<QueryParameters> call(final AbstractQueryInputHandler inputHandler) throws SQLException { return executorService.submit(new Callable<QueryParameters>() { public QueryParameters call() throws Exception { return queryRunner.call(inputHandler); } }); } }
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<QueryParameters> call(final AbstractQueryInputHandler inputHandler) throws SQLException { return executorService.submit(new Callable<QueryParameters>() { public QueryParameters call() throws Exception { return queryRunner.call(inputHandler); } }); } As...
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<QueryParameters> call(final AbstractQueryInputHandler inputHandler) throws SQLException { return executorService.submit(new Callable<QueryParameters>() { public QueryParameters call() throws Exception { return queryRunner.call(inputHandler); } }); } As...
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<QueryParameters> call(final AbstractQueryInputHandler inputHandler) throws SQLException { return executorService.submit(new Callable<QueryParameters>() { public QueryParameters call() throws Exception { return queryRunner.call(inputHandler); } }); } As...
@Test public void testCall3() throws Exception { asyncRunner.call(new BeanInputHandler<String>("", "")); sleep(); verify(runner, times(1)).call(any(AbstractNamedInputHandler.class)); }
public Future<QueryParameters> call(final AbstractQueryInputHandler inputHandler) throws SQLException { return executorService.submit(new Callable<QueryParameters>() { public QueryParameters call() throws Exception { return queryRunner.call(inputHandler); } }); }
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<QueryParameters> call(final AbstractQueryInputHandler inputHandler) throws SQLException { return executorService.submit(new Callable<QueryParameters>() { public QueryParameters call() throws Exception { return queryRunner.call(inputHandler); } }); } }
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<QueryParameters> call(final AbstractQueryInputHandler inputHandler) throws SQLException { return executorService.submit(new Callable<QueryParameters>() { public QueryParameters call() throws Exception { return queryRunner.call(inputHandler); } }); } As...
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<QueryParameters> call(final AbstractQueryInputHandler inputHandler) throws SQLException { return executorService.submit(new Callable<QueryParameters>() { public QueryParameters call() throws Exception { return queryRunner.call(inputHandler); } }); } As...
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<QueryParameters> call(final AbstractQueryInputHandler inputHandler) throws SQLException { return executorService.submit(new Callable<QueryParameters>() { public QueryParameters call() throws Exception { return queryRunner.call(inputHandler); } }); } As...
@Test public void testCall4() throws Exception { asyncRunner.call(new BeanInputHandler<String>("", ""), new MapOutputHandler()); sleep(); verify(runner, times(1)).call(any(InputHandler.class), any(MapOutputHandler.class)); }
public Future<QueryParameters> call(final AbstractQueryInputHandler inputHandler) throws SQLException { return executorService.submit(new Callable<QueryParameters>() { public QueryParameters call() throws Exception { return queryRunner.call(inputHandler); } }); }
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<QueryParameters> call(final AbstractQueryInputHandler inputHandler) throws SQLException { return executorService.submit(new Callable<QueryParameters>() { public QueryParameters call() throws Exception { return queryRunner.call(inputHandler); } }); } }
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<QueryParameters> call(final AbstractQueryInputHandler inputHandler) throws SQLException { return executorService.submit(new Callable<QueryParameters>() { public QueryParameters call() throws Exception { return queryRunner.call(inputHandler); } }); } As...
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<QueryParameters> call(final AbstractQueryInputHandler inputHandler) throws SQLException { return executorService.submit(new Callable<QueryParameters>() { public QueryParameters call() throws Exception { return queryRunner.call(inputHandler); } }); } As...
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<QueryParameters> call(final AbstractQueryInputHandler inputHandler) throws SQLException { return executorService.submit(new Callable<QueryParameters>() { public QueryParameters call() throws Exception { return queryRunner.call(inputHandler); } }); } As...
@Test public void testCall5() throws Exception { asyncRunner.call(new BeanInputHandler<String>("", ""), new MapOutputHandler(), "", "", false); sleep(); verify(runner, times(1)).call(any(AbstractNamedInputHandler.class), any(MapOutputHandler.class), any(String.class), any(String.class), any(boolean.class)); }
public Future<QueryParameters> call(final AbstractQueryInputHandler inputHandler) throws SQLException { return executorService.submit(new Callable<QueryParameters>() { public QueryParameters call() throws Exception { return queryRunner.call(inputHandler); } }); }
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<QueryParameters> call(final AbstractQueryInputHandler inputHandler) throws SQLException { return executorService.submit(new Callable<QueryParameters>() { public QueryParameters call() throws Exception { return queryRunner.call(inputHandler); } }); } }
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<QueryParameters> call(final AbstractQueryInputHandler inputHandler) throws SQLException { return executorService.submit(new Callable<QueryParameters>() { public QueryParameters call() throws Exception { return queryRunner.call(inputHandler); } }); } As...
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<QueryParameters> call(final AbstractQueryInputHandler inputHandler) throws SQLException { return executorService.submit(new Callable<QueryParameters>() { public QueryParameters call() throws Exception { return queryRunner.call(inputHandler); } }); } As...
AsyncQueryRunner implements AsyncQueryRunnerService { public Future<QueryParameters> call(final AbstractQueryInputHandler inputHandler) throws SQLException { return executorService.submit(new Callable<QueryParameters>() { public QueryParameters call() throws Exception { return queryRunner.call(inputHandler); } }); } As...
@Test public void testSetTransactionManualMode() throws Exception { asyncRunner.setTransactionManualMode(true); verify(runner, times(1)).setTransactionManualMode(true); }
public void setTransactionManualMode(boolean manualMode) { this.queryRunner.setTransactionManualMode(manualMode); }
AsyncQueryRunner implements AsyncQueryRunnerService { public void setTransactionManualMode(boolean manualMode) { this.queryRunner.setTransactionManualMode(manualMode); } }
AsyncQueryRunner implements AsyncQueryRunnerService { public void setTransactionManualMode(boolean manualMode) { this.queryRunner.setTransactionManualMode(manualMode); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); }
AsyncQueryRunner implements AsyncQueryRunnerService { public void setTransactionManualMode(boolean manualMode) { this.queryRunner.setTransactionManualMode(manualMode); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); Future<int[]> batch(final String sql, final Object[][] params); Future<i...
AsyncQueryRunner implements AsyncQueryRunnerService { public void setTransactionManualMode(boolean manualMode) { this.queryRunner.setTransactionManualMode(manualMode); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); Future<int[]> batch(final String sql, final Object[][] params); Future<i...
@Test(expected = NoClassDefFoundError.class) public void testCreateDataSourceUrl1() throws Exception { MjdbcFactory.createDataSource(""); }
public static DataSource createDataSource(Properties poolProperties) throws SQLException { try { return MjdbcPoolBinder.createDataSource(poolProperties); } catch (NoClassDefFoundError ex) { throw new NoClassDefFoundError(ERROR_COULDNT_FIND_POOL_PROVIDER); } }
MjdbcFactory { public static DataSource createDataSource(Properties poolProperties) throws SQLException { try { return MjdbcPoolBinder.createDataSource(poolProperties); } catch (NoClassDefFoundError ex) { throw new NoClassDefFoundError(ERROR_COULDNT_FIND_POOL_PROVIDER); } } }
MjdbcFactory { public static DataSource createDataSource(Properties poolProperties) throws SQLException { try { return MjdbcPoolBinder.createDataSource(poolProperties); } catch (NoClassDefFoundError ex) { throw new NoClassDefFoundError(ERROR_COULDNT_FIND_POOL_PROVIDER); } } }
MjdbcFactory { public static DataSource createDataSource(Properties poolProperties) throws SQLException { try { return MjdbcPoolBinder.createDataSource(poolProperties); } catch (NoClassDefFoundError ex) { throw new NoClassDefFoundError(ERROR_COULDNT_FIND_POOL_PROVIDER); } } static QueryRunnerService getQueryRunner(Dat...
MjdbcFactory { public static DataSource createDataSource(Properties poolProperties) throws SQLException { try { return MjdbcPoolBinder.createDataSource(poolProperties); } catch (NoClassDefFoundError ex) { throw new NoClassDefFoundError(ERROR_COULDNT_FIND_POOL_PROVIDER); } } static QueryRunnerService getQueryRunner(Dat...
@Test public void testIsTransactionManualMode() throws Exception { asyncRunner.isTransactionManualMode(); verify(runner, times(1)).isTransactionManualMode(); }
public boolean isTransactionManualMode() { return this.queryRunner.isTransactionManualMode(); }
AsyncQueryRunner implements AsyncQueryRunnerService { public boolean isTransactionManualMode() { return this.queryRunner.isTransactionManualMode(); } }
AsyncQueryRunner implements AsyncQueryRunnerService { public boolean isTransactionManualMode() { return this.queryRunner.isTransactionManualMode(); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); }
AsyncQueryRunner implements AsyncQueryRunnerService { public boolean isTransactionManualMode() { return this.queryRunner.isTransactionManualMode(); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); Future<int[]> batch(final String sql, final Object[][] params); Future<int[]> batch(final In...
AsyncQueryRunner implements AsyncQueryRunnerService { public boolean isTransactionManualMode() { return this.queryRunner.isTransactionManualMode(); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); Future<int[]> batch(final String sql, final Object[][] params); Future<int[]> batch(final In...
@Test public void testSetTransactionIsolationLevel() throws Exception { Integer value = 1; asyncRunner.setTransactionIsolationLevel(value); verify(runner, times(1)).setTransactionIsolationLevel(value); }
public void setTransactionIsolationLevel(Integer level) { this.queryRunner.setTransactionIsolationLevel(level); }
AsyncQueryRunner implements AsyncQueryRunnerService { public void setTransactionIsolationLevel(Integer level) { this.queryRunner.setTransactionIsolationLevel(level); } }
AsyncQueryRunner implements AsyncQueryRunnerService { public void setTransactionIsolationLevel(Integer level) { this.queryRunner.setTransactionIsolationLevel(level); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); }
AsyncQueryRunner implements AsyncQueryRunnerService { public void setTransactionIsolationLevel(Integer level) { this.queryRunner.setTransactionIsolationLevel(level); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); Future<int[]> batch(final String sql, final Object[][] params); Future<int...
AsyncQueryRunner implements AsyncQueryRunnerService { public void setTransactionIsolationLevel(Integer level) { this.queryRunner.setTransactionIsolationLevel(level); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); Future<int[]> batch(final String sql, final Object[][] params); Future<int...
@Test public void testGetTransactionIsolationLevel() throws Exception { asyncRunner.getTransactionIsolationLevel(); verify(runner, times(1)).getTransactionIsolationLevel(); }
public Integer getTransactionIsolationLevel() { return this.queryRunner.getTransactionIsolationLevel(); }
AsyncQueryRunner implements AsyncQueryRunnerService { public Integer getTransactionIsolationLevel() { return this.queryRunner.getTransactionIsolationLevel(); } }
AsyncQueryRunner implements AsyncQueryRunnerService { public Integer getTransactionIsolationLevel() { return this.queryRunner.getTransactionIsolationLevel(); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); }
AsyncQueryRunner implements AsyncQueryRunnerService { public Integer getTransactionIsolationLevel() { return this.queryRunner.getTransactionIsolationLevel(); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); Future<int[]> batch(final String sql, final Object[][] params); Future<int[]> batc...
AsyncQueryRunner implements AsyncQueryRunnerService { public Integer getTransactionIsolationLevel() { return this.queryRunner.getTransactionIsolationLevel(); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); Future<int[]> batch(final String sql, final Object[][] params); Future<int[]> batc...
@Test public void testCommit() throws Exception { asyncRunner.commit(); verify(runner, times(1)).commit(); }
public void commit() throws SQLException { this.queryRunner.commit(); }
AsyncQueryRunner implements AsyncQueryRunnerService { public void commit() throws SQLException { this.queryRunner.commit(); } }
AsyncQueryRunner implements AsyncQueryRunnerService { public void commit() throws SQLException { this.queryRunner.commit(); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); }
AsyncQueryRunner implements AsyncQueryRunnerService { public void commit() throws SQLException { this.queryRunner.commit(); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); Future<int[]> batch(final String sql, final Object[][] params); Future<int[]> batch(final InputHandler[] inputHandle...
AsyncQueryRunner implements AsyncQueryRunnerService { public void commit() throws SQLException { this.queryRunner.commit(); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); Future<int[]> batch(final String sql, final Object[][] params); Future<int[]> batch(final InputHandler[] inputHandle...
@Test public void testRollback() throws Exception { asyncRunner.rollback(); verify(runner, times(1)).rollback(); }
public void rollback() throws SQLException { this.queryRunner.rollback(); }
AsyncQueryRunner implements AsyncQueryRunnerService { public void rollback() throws SQLException { this.queryRunner.rollback(); } }
AsyncQueryRunner implements AsyncQueryRunnerService { public void rollback() throws SQLException { this.queryRunner.rollback(); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); }
AsyncQueryRunner implements AsyncQueryRunnerService { public void rollback() throws SQLException { this.queryRunner.rollback(); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); Future<int[]> batch(final String sql, final Object[][] params); Future<int[]> batch(final InputHandler[] inputHa...
AsyncQueryRunner implements AsyncQueryRunnerService { public void rollback() throws SQLException { this.queryRunner.rollback(); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); Future<int[]> batch(final String sql, final Object[][] params); Future<int[]> batch(final InputHandler[] inputHa...
@Test public void testSetSavepoint() throws Exception { asyncRunner.setSavepoint(); verify(runner, times(1)).setSavepoint(); }
public Savepoint setSavepoint() throws SQLException { return this.queryRunner.setSavepoint(); }
AsyncQueryRunner implements AsyncQueryRunnerService { public Savepoint setSavepoint() throws SQLException { return this.queryRunner.setSavepoint(); } }
AsyncQueryRunner implements AsyncQueryRunnerService { public Savepoint setSavepoint() throws SQLException { return this.queryRunner.setSavepoint(); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); }
AsyncQueryRunner implements AsyncQueryRunnerService { public Savepoint setSavepoint() throws SQLException { return this.queryRunner.setSavepoint(); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); Future<int[]> batch(final String sql, final Object[][] params); Future<int[]> batch(final In...
AsyncQueryRunner implements AsyncQueryRunnerService { public Savepoint setSavepoint() throws SQLException { return this.queryRunner.setSavepoint(); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); Future<int[]> batch(final String sql, final Object[][] params); Future<int[]> batch(final In...
@Test public void testSetSavepointNamed() throws Exception { String name = "SweetSpot"; asyncRunner.setSavepoint(name); verify(runner, times(1)).setSavepoint(name); }
public Savepoint setSavepoint() throws SQLException { return this.queryRunner.setSavepoint(); }
AsyncQueryRunner implements AsyncQueryRunnerService { public Savepoint setSavepoint() throws SQLException { return this.queryRunner.setSavepoint(); } }
AsyncQueryRunner implements AsyncQueryRunnerService { public Savepoint setSavepoint() throws SQLException { return this.queryRunner.setSavepoint(); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); }
AsyncQueryRunner implements AsyncQueryRunnerService { public Savepoint setSavepoint() throws SQLException { return this.queryRunner.setSavepoint(); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); Future<int[]> batch(final String sql, final Object[][] params); Future<int[]> batch(final In...
AsyncQueryRunner implements AsyncQueryRunnerService { public Savepoint setSavepoint() throws SQLException { return this.queryRunner.setSavepoint(); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); Future<int[]> batch(final String sql, final Object[][] params); Future<int[]> batch(final In...
@Test public void testRollbackSavepoint() throws Exception { asyncRunner.rollback(null); verify(runner, times(1)).rollback(any(Savepoint.class)); }
public void rollback() throws SQLException { this.queryRunner.rollback(); }
AsyncQueryRunner implements AsyncQueryRunnerService { public void rollback() throws SQLException { this.queryRunner.rollback(); } }
AsyncQueryRunner implements AsyncQueryRunnerService { public void rollback() throws SQLException { this.queryRunner.rollback(); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); }
AsyncQueryRunner implements AsyncQueryRunnerService { public void rollback() throws SQLException { this.queryRunner.rollback(); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); Future<int[]> batch(final String sql, final Object[][] params); Future<int[]> batch(final InputHandler[] inputHa...
AsyncQueryRunner implements AsyncQueryRunnerService { public void rollback() throws SQLException { this.queryRunner.rollback(); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); Future<int[]> batch(final String sql, final Object[][] params); Future<int[]> batch(final InputHandler[] inputHa...
@Test public void testReleaseSavepoint() throws Exception { asyncRunner.releaseSavepoint(null); verify(runner, times(1)).releaseSavepoint(any(Savepoint.class)); }
public void releaseSavepoint(Savepoint savepoint) throws SQLException { this.queryRunner.releaseSavepoint(savepoint); }
AsyncQueryRunner implements AsyncQueryRunnerService { public void releaseSavepoint(Savepoint savepoint) throws SQLException { this.queryRunner.releaseSavepoint(savepoint); } }
AsyncQueryRunner implements AsyncQueryRunnerService { public void releaseSavepoint(Savepoint savepoint) throws SQLException { this.queryRunner.releaseSavepoint(savepoint); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); }
AsyncQueryRunner implements AsyncQueryRunnerService { public void releaseSavepoint(Savepoint savepoint) throws SQLException { this.queryRunner.releaseSavepoint(savepoint); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); Future<int[]> batch(final String sql, final Object[][] params); Futu...
AsyncQueryRunner implements AsyncQueryRunnerService { public void releaseSavepoint(Savepoint savepoint) throws SQLException { this.queryRunner.releaseSavepoint(savepoint); } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); Future<int[]> batch(final String sql, final Object[][] params); Futu...
@Test public void testOverrideOnce() throws Exception { asyncRunner.overrideOnce("", ""); verify(runner, times(1)).overrideOnce("", ""); }
public AsyncQueryRunnerService overrideOnce(String operation, Object value) { this.queryRunner.overrideOnce(operation, value); return this; }
AsyncQueryRunner implements AsyncQueryRunnerService { public AsyncQueryRunnerService overrideOnce(String operation, Object value) { this.queryRunner.overrideOnce(operation, value); return this; } }
AsyncQueryRunner implements AsyncQueryRunnerService { public AsyncQueryRunnerService overrideOnce(String operation, Object value) { this.queryRunner.overrideOnce(operation, value); return this; } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); }
AsyncQueryRunner implements AsyncQueryRunnerService { public AsyncQueryRunnerService overrideOnce(String operation, Object value) { this.queryRunner.overrideOnce(operation, value); return this; } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); Future<int[]> batch(final String sql, final Ob...
AsyncQueryRunner implements AsyncQueryRunnerService { public AsyncQueryRunnerService overrideOnce(String operation, Object value) { this.queryRunner.overrideOnce(operation, value); return this; } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); Future<int[]> batch(final String sql, final Ob...
@Test(expected = NoClassDefFoundError.class) public void testCreateDataSourceUrl2() throws Exception { MjdbcFactory.createDataSource("", "", ""); }
public static DataSource createDataSource(Properties poolProperties) throws SQLException { try { return MjdbcPoolBinder.createDataSource(poolProperties); } catch (NoClassDefFoundError ex) { throw new NoClassDefFoundError(ERROR_COULDNT_FIND_POOL_PROVIDER); } }
MjdbcFactory { public static DataSource createDataSource(Properties poolProperties) throws SQLException { try { return MjdbcPoolBinder.createDataSource(poolProperties); } catch (NoClassDefFoundError ex) { throw new NoClassDefFoundError(ERROR_COULDNT_FIND_POOL_PROVIDER); } } }
MjdbcFactory { public static DataSource createDataSource(Properties poolProperties) throws SQLException { try { return MjdbcPoolBinder.createDataSource(poolProperties); } catch (NoClassDefFoundError ex) { throw new NoClassDefFoundError(ERROR_COULDNT_FIND_POOL_PROVIDER); } } }
MjdbcFactory { public static DataSource createDataSource(Properties poolProperties) throws SQLException { try { return MjdbcPoolBinder.createDataSource(poolProperties); } catch (NoClassDefFoundError ex) { throw new NoClassDefFoundError(ERROR_COULDNT_FIND_POOL_PROVIDER); } } static QueryRunnerService getQueryRunner(Dat...
MjdbcFactory { public static DataSource createDataSource(Properties poolProperties) throws SQLException { try { return MjdbcPoolBinder.createDataSource(poolProperties); } catch (NoClassDefFoundError ex) { throw new NoClassDefFoundError(ERROR_COULDNT_FIND_POOL_PROVIDER); } } static QueryRunnerService getQueryRunner(Dat...
@Test public void testOverride() throws Exception { asyncRunner.override("", ""); verify(runner, times(1)).override("", ""); }
public AsyncQueryRunnerService override(String operation, Object value) { this.queryRunner.override(operation, value); return this; }
AsyncQueryRunner implements AsyncQueryRunnerService { public AsyncQueryRunnerService override(String operation, Object value) { this.queryRunner.override(operation, value); return this; } }
AsyncQueryRunner implements AsyncQueryRunnerService { public AsyncQueryRunnerService override(String operation, Object value) { this.queryRunner.override(operation, value); return this; } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); }
AsyncQueryRunner implements AsyncQueryRunnerService { public AsyncQueryRunnerService override(String operation, Object value) { this.queryRunner.override(operation, value); return this; } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); Future<int[]> batch(final String sql, final Object[][]...
AsyncQueryRunner implements AsyncQueryRunnerService { public AsyncQueryRunnerService override(String operation, Object value) { this.queryRunner.override(operation, value); return this; } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); Future<int[]> batch(final String sql, final Object[][]...
@Test public void testRemoveOverride() throws Exception { asyncRunner.removeOverride(""); verify(runner, times(1)).removeOverride(""); }
public AsyncQueryRunnerService removeOverride(String operation) { this.queryRunner.removeOverride(operation); return this; }
AsyncQueryRunner implements AsyncQueryRunnerService { public AsyncQueryRunnerService removeOverride(String operation) { this.queryRunner.removeOverride(operation); return this; } }
AsyncQueryRunner implements AsyncQueryRunnerService { public AsyncQueryRunnerService removeOverride(String operation) { this.queryRunner.removeOverride(operation); return this; } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); }
AsyncQueryRunner implements AsyncQueryRunnerService { public AsyncQueryRunnerService removeOverride(String operation) { this.queryRunner.removeOverride(operation); return this; } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); Future<int[]> batch(final String sql, final Object[][] params);...
AsyncQueryRunner implements AsyncQueryRunnerService { public AsyncQueryRunnerService removeOverride(String operation) { this.queryRunner.removeOverride(operation); return this; } AsyncQueryRunner(QueryRunnerService runner, ExecutorService executorService); Future<int[]> batch(final String sql, final Object[][] params);...
@Test public void testNewInstance() throws Exception { Connection result = null; result = ConnectionProxy.newInstance(conn); Assert.assertEquals(true, Proxy.isProxyClass(result.getClass())); Assert.assertEquals(true, result instanceof Connection); }
public static Connection newInstance(Connection conn) { return (Connection) java.lang.reflect.Proxy.newProxyInstance(Connection.class.getClassLoader(), new Class[]{Connection.class}, new ConnectionProxy(conn)); }
ConnectionProxy implements java.lang.reflect.InvocationHandler { public static Connection newInstance(Connection conn) { return (Connection) java.lang.reflect.Proxy.newProxyInstance(Connection.class.getClassLoader(), new Class[]{Connection.class}, new ConnectionProxy(conn)); } }
ConnectionProxy implements java.lang.reflect.InvocationHandler { public static Connection newInstance(Connection conn) { return (Connection) java.lang.reflect.Proxy.newProxyInstance(Connection.class.getClassLoader(), new Class[]{Connection.class}, new ConnectionProxy(conn)); } ConnectionProxy(Connection conn); }
ConnectionProxy implements java.lang.reflect.InvocationHandler { public static Connection newInstance(Connection conn) { return (Connection) java.lang.reflect.Proxy.newProxyInstance(Connection.class.getClassLoader(), new Class[]{Connection.class}, new ConnectionProxy(conn)); } ConnectionProxy(Connection conn); static C...
ConnectionProxy implements java.lang.reflect.InvocationHandler { public static Connection newInstance(Connection conn) { return (Connection) java.lang.reflect.Proxy.newProxyInstance(Connection.class.getClassLoader(), new Class[]{Connection.class}, new ConnectionProxy(conn)); } ConnectionProxy(Connection conn); static C...
@Test public void testInvoke() throws Exception { Connection result = null; result = ConnectionProxy.newInstance(conn); result.isClosed(); result.close(); verify(conn, times(1)).isClosed(); verify(conn, never()).close(); }
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { Object result = null; String methodName = method.getName(); if ("close".equals(methodName) == true) { } else { try { result = method.invoke(conn, args); } catch (InvocationTargetException e) { throw e.getTargetException(); } catch (Exce...
ConnectionProxy implements java.lang.reflect.InvocationHandler { public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { Object result = null; String methodName = method.getName(); if ("close".equals(methodName) == true) { } else { try { result = method.invoke(conn, args); } catch (Invocatio...
ConnectionProxy implements java.lang.reflect.InvocationHandler { public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { Object result = null; String methodName = method.getName(); if ("close".equals(methodName) == true) { } else { try { result = method.invoke(conn, args); } catch (Invocatio...
ConnectionProxy implements java.lang.reflect.InvocationHandler { public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { Object result = null; String methodName = method.getName(); if ("close".equals(methodName) == true) { } else { try { result = method.invoke(conn, args); } catch (Invocatio...
ConnectionProxy implements java.lang.reflect.InvocationHandler { public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { Object result = null; String methodName = method.getName(); if ("close".equals(methodName) == true) { } else { try { result = method.invoke(conn, args); } catch (Invocatio...
@Test public void testIsolationLevelDS() throws SQLException { QueryRunnerService queryRunner = null; queryRunner = MjdbcFactory.getQueryRunner(ds); testIsolationLevel(queryRunner); verify(ds, times(4)).getConnection(); verify(conn, never()).setTransactionIsolation(any(int.class)); queryRunner.setTransactionIsolationLe...
public Connection getConnection() throws SQLException { Connection activeConn = null; if (this.getDataSource() != null) { if (this.conn == null) { this.conn = this.getDataSource().getConnection(); } if (this.conn != null) { initConnection(this.conn); } } if (this.conn == null) { throw new SQLException("Null connection"...
BaseTransactionHandler implements TransactionHandler { public Connection getConnection() throws SQLException { Connection activeConn = null; if (this.getDataSource() != null) { if (this.conn == null) { this.conn = this.getDataSource().getConnection(); } if (this.conn != null) { initConnection(this.conn); } } if (this.c...
BaseTransactionHandler implements TransactionHandler { public Connection getConnection() throws SQLException { Connection activeConn = null; if (this.getDataSource() != null) { if (this.conn == null) { this.conn = this.getDataSource().getConnection(); } if (this.conn != null) { initConnection(this.conn); } } if (this.c...
BaseTransactionHandler implements TransactionHandler { public Connection getConnection() throws SQLException { Connection activeConn = null; if (this.getDataSource() != null) { if (this.conn == null) { this.conn = this.getDataSource().getConnection(); } if (this.conn != null) { initConnection(this.conn); } } if (this.c...
BaseTransactionHandler implements TransactionHandler { public Connection getConnection() throws SQLException { Connection activeConn = null; if (this.getDataSource() != null) { if (this.conn == null) { this.conn = this.getDataSource().getConnection(); } if (this.conn != null) { initConnection(this.conn); } } if (this.c...
@Test public void closeNullConnection() throws Exception { MidaoUtils.close((Connection) null); }
public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } }
MidaoUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } }
MidaoUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } }
MidaoUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection conn, Statement stmt,...
MidaoUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection conn, Statement stmt,...
@Test public void closeConnection() throws Exception { Connection mockCon = mock(Connection.class); MidaoUtils.close(mockCon); verify(mockCon).close(); }
public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } }
MidaoUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } }
MidaoUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } }
MidaoUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection conn, Statement stmt,...
MidaoUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection conn, Statement stmt,...
@Test public void closeNullResultSet() throws Exception { MidaoUtils.close((ResultSet) null); }
public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } }
MidaoUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } }
MidaoUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } }
MidaoUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection conn, Statement stmt,...
MidaoUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection conn, Statement stmt,...
@Test public void closeResultSet() throws Exception { ResultSet mockResultSet = mock(ResultSet.class); MidaoUtils.close(mockResultSet); verify(mockResultSet).close(); }
public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } }
MidaoUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } }
MidaoUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } }
MidaoUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection conn, Statement stmt,...
MidaoUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection conn, Statement stmt,...
@Test public void closeNullStatement() throws Exception { MidaoUtils.close((Statement) null); }
public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } }
MidaoUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } }
MidaoUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } }
MidaoUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection conn, Statement stmt,...
MidaoUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection conn, Statement stmt,...
@Test(expected = NoClassDefFoundError.class) public void testCreateDataSourceUrl3() throws Exception { MjdbcFactory.createDataSource("", "", "", ""); }
public static DataSource createDataSource(Properties poolProperties) throws SQLException { try { return MjdbcPoolBinder.createDataSource(poolProperties); } catch (NoClassDefFoundError ex) { throw new NoClassDefFoundError(ERROR_COULDNT_FIND_POOL_PROVIDER); } }
MjdbcFactory { public static DataSource createDataSource(Properties poolProperties) throws SQLException { try { return MjdbcPoolBinder.createDataSource(poolProperties); } catch (NoClassDefFoundError ex) { throw new NoClassDefFoundError(ERROR_COULDNT_FIND_POOL_PROVIDER); } } }
MjdbcFactory { public static DataSource createDataSource(Properties poolProperties) throws SQLException { try { return MjdbcPoolBinder.createDataSource(poolProperties); } catch (NoClassDefFoundError ex) { throw new NoClassDefFoundError(ERROR_COULDNT_FIND_POOL_PROVIDER); } } }
MjdbcFactory { public static DataSource createDataSource(Properties poolProperties) throws SQLException { try { return MjdbcPoolBinder.createDataSource(poolProperties); } catch (NoClassDefFoundError ex) { throw new NoClassDefFoundError(ERROR_COULDNT_FIND_POOL_PROVIDER); } } static QueryRunnerService getQueryRunner(Dat...
MjdbcFactory { public static DataSource createDataSource(Properties poolProperties) throws SQLException { try { return MjdbcPoolBinder.createDataSource(poolProperties); } catch (NoClassDefFoundError ex) { throw new NoClassDefFoundError(ERROR_COULDNT_FIND_POOL_PROVIDER); } } static QueryRunnerService getQueryRunner(Dat...
@Test public void closeStatement() throws Exception { Statement mockStatement = mock(Statement.class); MidaoUtils.close(mockStatement); verify(mockStatement).close(); }
public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } }
MidaoUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } }
MidaoUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } }
MidaoUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection conn, Statement stmt,...
MidaoUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection conn, Statement stmt,...
@Test public void closeQuietlyNullConnection() throws Exception { MidaoUtils.closeQuietly((Connection) null); }
public static void closeQuietly(Connection conn) { try { close(conn); } catch (SQLException e) { } }
MidaoUtils { public static void closeQuietly(Connection conn) { try { close(conn); } catch (SQLException e) { } } }
MidaoUtils { public static void closeQuietly(Connection conn) { try { close(conn); } catch (SQLException e) { } } }
MidaoUtils { public static void closeQuietly(Connection conn) { try { close(conn); } catch (SQLException e) { } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection conn, Statement stmt, ...
MidaoUtils { public static void closeQuietly(Connection conn) { try { close(conn); } catch (SQLException e) { } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection conn, Statement stmt, ...
@Test public void closeQuietlyNullResultSet() throws Exception { MidaoUtils.closeQuietly((ResultSet) null); }
public static void closeQuietly(Connection conn) { try { close(conn); } catch (SQLException e) { } }
MidaoUtils { public static void closeQuietly(Connection conn) { try { close(conn); } catch (SQLException e) { } } }
MidaoUtils { public static void closeQuietly(Connection conn) { try { close(conn); } catch (SQLException e) { } } }
MidaoUtils { public static void closeQuietly(Connection conn) { try { close(conn); } catch (SQLException e) { } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection conn, Statement stmt, ...
MidaoUtils { public static void closeQuietly(Connection conn) { try { close(conn); } catch (SQLException e) { } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection conn, Statement stmt, ...
@Test public void closeQuietlyNullStatement() throws Exception { MidaoUtils.closeQuietly((Statement) null); }
public static void closeQuietly(Connection conn) { try { close(conn); } catch (SQLException e) { } }
MidaoUtils { public static void closeQuietly(Connection conn) { try { close(conn); } catch (SQLException e) { } } }
MidaoUtils { public static void closeQuietly(Connection conn) { try { close(conn); } catch (SQLException e) { } } }
MidaoUtils { public static void closeQuietly(Connection conn) { try { close(conn); } catch (SQLException e) { } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection conn, Statement stmt, ...
MidaoUtils { public static void closeQuietly(Connection conn) { try { close(conn); } catch (SQLException e) { } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection conn, Statement stmt, ...
@Test public void commitAndClose() throws Exception { Connection mockConnection = mock(Connection.class); MidaoUtils.commitAndClose(mockConnection); verify(mockConnection).commit(); verify(mockConnection).close(); }
public static void commitAndClose(Connection conn) throws SQLException { if (conn != null) { try { conn.commit(); } finally { conn.close(); } } }
MidaoUtils { public static void commitAndClose(Connection conn) throws SQLException { if (conn != null) { try { conn.commit(); } finally { conn.close(); } } } }
MidaoUtils { public static void commitAndClose(Connection conn) throws SQLException { if (conn != null) { try { conn.commit(); } finally { conn.close(); } } } }
MidaoUtils { public static void commitAndClose(Connection conn) throws SQLException { if (conn != null) { try { conn.commit(); } finally { conn.close(); } } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void c...
MidaoUtils { public static void commitAndClose(Connection conn) throws SQLException { if (conn != null) { try { conn.commit(); } finally { conn.close(); } } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void c...
@Test public void commitAndCloseQuietly() throws Exception { Connection mockConnection = mock(Connection.class); MidaoUtils.commitAndClose(mockConnection); verify(mockConnection).commit(); verify(mockConnection).close(); }
public static void commitAndCloseQuietly(Connection conn) { try { commitAndClose(conn); } catch (SQLException e) { } }
MidaoUtils { public static void commitAndCloseQuietly(Connection conn) { try { commitAndClose(conn); } catch (SQLException e) { } } }
MidaoUtils { public static void commitAndCloseQuietly(Connection conn) { try { commitAndClose(conn); } catch (SQLException e) { } } }
MidaoUtils { public static void commitAndCloseQuietly(Connection conn) { try { commitAndClose(conn); } catch (SQLException e) { } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection conn...
MidaoUtils { public static void commitAndCloseQuietly(Connection conn) { try { commitAndClose(conn); } catch (SQLException e) { } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection conn...
@Test public void rollbackNull() throws Exception { MidaoUtils.rollback(null); }
public static void rollback(Connection conn) throws SQLException { if (conn != null) { conn.rollback(); } }
MidaoUtils { public static void rollback(Connection conn) throws SQLException { if (conn != null) { conn.rollback(); } } }
MidaoUtils { public static void rollback(Connection conn) throws SQLException { if (conn != null) { conn.rollback(); } } }
MidaoUtils { public static void rollback(Connection conn) throws SQLException { if (conn != null) { conn.rollback(); } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection conn, Statement...
MidaoUtils { public static void rollback(Connection conn) throws SQLException { if (conn != null) { conn.rollback(); } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection conn, Statement...
@Test public void rollback() throws Exception { Connection mockConnection = mock(Connection.class); MidaoUtils.rollback(mockConnection); verify(mockConnection).rollback(); }
public static void rollback(Connection conn) throws SQLException { if (conn != null) { conn.rollback(); } }
MidaoUtils { public static void rollback(Connection conn) throws SQLException { if (conn != null) { conn.rollback(); } } }
MidaoUtils { public static void rollback(Connection conn) throws SQLException { if (conn != null) { conn.rollback(); } } }
MidaoUtils { public static void rollback(Connection conn) throws SQLException { if (conn != null) { conn.rollback(); } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection conn, Statement...
MidaoUtils { public static void rollback(Connection conn) throws SQLException { if (conn != null) { conn.rollback(); } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection conn, Statement...
@Test public void rollbackAndCloseNull() throws Exception { MidaoUtils.rollbackAndClose(null); }
public static void rollbackAndClose(Connection conn) throws SQLException { if (conn != null) { try { conn.rollback(); } finally { conn.close(); } } }
MidaoUtils { public static void rollbackAndClose(Connection conn) throws SQLException { if (conn != null) { try { conn.rollback(); } finally { conn.close(); } } } }
MidaoUtils { public static void rollbackAndClose(Connection conn) throws SQLException { if (conn != null) { try { conn.rollback(); } finally { conn.close(); } } } }
MidaoUtils { public static void rollbackAndClose(Connection conn) throws SQLException { if (conn != null) { try { conn.rollback(); } finally { conn.close(); } } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static vo...
MidaoUtils { public static void rollbackAndClose(Connection conn) throws SQLException { if (conn != null) { try { conn.rollback(); } finally { conn.close(); } } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static vo...
@Test public void rollbackAndClose() throws Exception { Connection mockConnection = mock(Connection.class); MidaoUtils.rollbackAndClose(mockConnection); verify(mockConnection).rollback(); verify(mockConnection).close(); }
public static void rollbackAndClose(Connection conn) throws SQLException { if (conn != null) { try { conn.rollback(); } finally { conn.close(); } } }
MidaoUtils { public static void rollbackAndClose(Connection conn) throws SQLException { if (conn != null) { try { conn.rollback(); } finally { conn.close(); } } } }
MidaoUtils { public static void rollbackAndClose(Connection conn) throws SQLException { if (conn != null) { try { conn.rollback(); } finally { conn.close(); } } } }
MidaoUtils { public static void rollbackAndClose(Connection conn) throws SQLException { if (conn != null) { try { conn.rollback(); } finally { conn.close(); } } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static vo...
MidaoUtils { public static void rollbackAndClose(Connection conn) throws SQLException { if (conn != null) { try { conn.rollback(); } finally { conn.close(); } } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static vo...
@Test(expected = NoClassDefFoundError.class) public void testCreateDataSourceUrl4() throws Exception { MjdbcFactory.createDataSource("", "", "", "", 0, 0); }
public static DataSource createDataSource(Properties poolProperties) throws SQLException { try { return MjdbcPoolBinder.createDataSource(poolProperties); } catch (NoClassDefFoundError ex) { throw new NoClassDefFoundError(ERROR_COULDNT_FIND_POOL_PROVIDER); } }
MjdbcFactory { public static DataSource createDataSource(Properties poolProperties) throws SQLException { try { return MjdbcPoolBinder.createDataSource(poolProperties); } catch (NoClassDefFoundError ex) { throw new NoClassDefFoundError(ERROR_COULDNT_FIND_POOL_PROVIDER); } } }
MjdbcFactory { public static DataSource createDataSource(Properties poolProperties) throws SQLException { try { return MjdbcPoolBinder.createDataSource(poolProperties); } catch (NoClassDefFoundError ex) { throw new NoClassDefFoundError(ERROR_COULDNT_FIND_POOL_PROVIDER); } } }
MjdbcFactory { public static DataSource createDataSource(Properties poolProperties) throws SQLException { try { return MjdbcPoolBinder.createDataSource(poolProperties); } catch (NoClassDefFoundError ex) { throw new NoClassDefFoundError(ERROR_COULDNT_FIND_POOL_PROVIDER); } } static QueryRunnerService getQueryRunner(Dat...
MjdbcFactory { public static DataSource createDataSource(Properties poolProperties) throws SQLException { try { return MjdbcPoolBinder.createDataSource(poolProperties); } catch (NoClassDefFoundError ex) { throw new NoClassDefFoundError(ERROR_COULDNT_FIND_POOL_PROVIDER); } } static QueryRunnerService getQueryRunner(Dat...
@Test public void rollbackAndCloseQuietlyNull() throws Exception { MidaoUtils.rollbackAndCloseQuietly(null); }
public static void rollbackAndCloseQuietly(Connection conn) { try { rollbackAndClose(conn); } catch (SQLException e) { } }
MidaoUtils { public static void rollbackAndCloseQuietly(Connection conn) { try { rollbackAndClose(conn); } catch (SQLException e) { } } }
MidaoUtils { public static void rollbackAndCloseQuietly(Connection conn) { try { rollbackAndClose(conn); } catch (SQLException e) { } } }
MidaoUtils { public static void rollbackAndCloseQuietly(Connection conn) { try { rollbackAndClose(conn); } catch (SQLException e) { } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection ...
MidaoUtils { public static void rollbackAndCloseQuietly(Connection conn) { try { rollbackAndClose(conn); } catch (SQLException e) { } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection ...
@Test public void rollbackAndCloseQuietly() throws Exception { Connection mockConnection = mock(Connection.class); MidaoUtils.rollbackAndCloseQuietly(mockConnection); verify(mockConnection).rollback(); verify(mockConnection).close(); }
public static void rollbackAndCloseQuietly(Connection conn) { try { rollbackAndClose(conn); } catch (SQLException e) { } }
MidaoUtils { public static void rollbackAndCloseQuietly(Connection conn) { try { rollbackAndClose(conn); } catch (SQLException e) { } } }
MidaoUtils { public static void rollbackAndCloseQuietly(Connection conn) { try { rollbackAndClose(conn); } catch (SQLException e) { } } }
MidaoUtils { public static void rollbackAndCloseQuietly(Connection conn) { try { rollbackAndClose(conn); } catch (SQLException e) { } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection ...
MidaoUtils { public static void rollbackAndCloseQuietly(Connection conn) { try { rollbackAndClose(conn); } catch (SQLException e) { } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection ...
@Test(expected = Exception.class) public void testAssertNotNull() { AssertUtils.assertNotNull(null); }
public static void assertNotNull(Object value) { if (value == null) { throw new IllegalArgumentException(); } }
AssertUtils { public static void assertNotNull(Object value) { if (value == null) { throw new IllegalArgumentException(); } } }
AssertUtils { public static void assertNotNull(Object value) { if (value == null) { throw new IllegalArgumentException(); } } }
AssertUtils { public static void assertNotNull(Object value) { if (value == null) { throw new IllegalArgumentException(); } } static void assertNotNull(Object value); static void assertNotNull(Object value, String message); static void assertNotNull(Object value, SQLException exception); static void assertNotTrue(bool...
AssertUtils { public static void assertNotNull(Object value) { if (value == null) { throw new IllegalArgumentException(); } } static void assertNotNull(Object value); static void assertNotNull(Object value, String message); static void assertNotNull(Object value, SQLException exception); static void assertNotTrue(bool...
@Test public void testAssertNotNullMessage() { try { AssertUtils.assertNotNull(null, exceptionMessage); } catch (Exception ex) { Assert.assertEquals(exceptionMessage, ex.getMessage()); } }
public static void assertNotNull(Object value) { if (value == null) { throw new IllegalArgumentException(); } }
AssertUtils { public static void assertNotNull(Object value) { if (value == null) { throw new IllegalArgumentException(); } } }
AssertUtils { public static void assertNotNull(Object value) { if (value == null) { throw new IllegalArgumentException(); } } }
AssertUtils { public static void assertNotNull(Object value) { if (value == null) { throw new IllegalArgumentException(); } } static void assertNotNull(Object value); static void assertNotNull(Object value, String message); static void assertNotNull(Object value, SQLException exception); static void assertNotTrue(bool...
AssertUtils { public static void assertNotNull(Object value) { if (value == null) { throw new IllegalArgumentException(); } } static void assertNotNull(Object value); static void assertNotNull(Object value, String message); static void assertNotNull(Object value, SQLException exception); static void assertNotTrue(bool...
@Test public void testAssertNotNullException() throws Exception { SQLException exception = new MjdbcSQLException(exceptionMessage); try { AssertUtils.assertNotNull(null, exception); } catch (MjdbcSQLException ex) { Assert.assertEquals(exceptionMessage, ex.getMessage()); } catch (SQLException ex) { fail(); } }
public static void assertNotNull(Object value) { if (value == null) { throw new IllegalArgumentException(); } }
AssertUtils { public static void assertNotNull(Object value) { if (value == null) { throw new IllegalArgumentException(); } } }
AssertUtils { public static void assertNotNull(Object value) { if (value == null) { throw new IllegalArgumentException(); } } }
AssertUtils { public static void assertNotNull(Object value) { if (value == null) { throw new IllegalArgumentException(); } } static void assertNotNull(Object value); static void assertNotNull(Object value, String message); static void assertNotNull(Object value, SQLException exception); static void assertNotTrue(bool...
AssertUtils { public static void assertNotNull(Object value) { if (value == null) { throw new IllegalArgumentException(); } } static void assertNotNull(Object value); static void assertNotNull(Object value, String message); static void assertNotNull(Object value, SQLException exception); static void assertNotTrue(bool...
@Test public void closeNullConnection() throws Exception { MjdbcUtils.close((Connection) null); }
public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } }
MjdbcUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } }
MjdbcUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } }
MjdbcUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection conn, Statement stmt,...
MjdbcUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection conn, Statement stmt,...
@Test public void closeConnection() throws Exception { Connection mockCon = mock(Connection.class); MjdbcUtils.close(mockCon); verify(mockCon).close(); }
public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } }
MjdbcUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } }
MjdbcUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } }
MjdbcUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection conn, Statement stmt,...
MjdbcUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection conn, Statement stmt,...
@Test public void closeNullResultSet() throws Exception { MjdbcUtils.close((ResultSet) null); }
public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } }
MjdbcUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } }
MjdbcUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } }
MjdbcUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection conn, Statement stmt,...
MjdbcUtils { public static void close(Connection conn) throws SQLException { if (conn != null) { conn.close(); } } static void close(Connection conn); static void close(ResultSet rs); static void close(Statement stmt); static void closeQuietly(Connection conn); static void closeQuietly(Connection conn, Statement stmt,...