public HardcodedDataManager(QueryMetadataInterface metadata, CommandContext context, SourceCapabilities capabilities) { this(true); this.lbf = new LanguageBridgeFactory(metadata); ConnectorWorkItem.initLanguageBridgeFactory(lbf, context, capabilities); }
public static Insert example(String groupName) throws Exception { return TstLanguageBridgeFactory.factory.translate(helpExample(groupName)); } public static Insert example2(String groupName) throws Exception {
public static Insert example2(String groupName) throws Exception { return TstLanguageBridgeFactory.factory.translate(helpExample2(groupName)); } public void testGetGroup() throws Exception {
public void testNegated() throws Exception { assertTrue(TstLanguageBridgeFactory.factory.translate(helpExample(true)) instanceof Not); }
public static Query helpExample(boolean distinct) { return new Query(helpExampleSelect(distinct), TestQueryImpl.helpExampleFrom(), TestCompoundCriteriaImpl.helpExample(CompoundCriteria.AND), TestGroupByImpl.helpExample(), TestCompoundCriteriaImpl.helpExample(CompoundCriteria.AND), TestOrderByImpl.helpExample(), null); }
public static SetQuery example() throws Exception { return TstLanguageBridgeFactory.factory.translate(helpExampleSetQuery()); }
public static Not example() throws Exception { return TstLanguageBridgeFactory.factory.translate(helpExample()); }
public void testTranslateWithFunction() throws Exception { TstLanguageBridgeFactory.factory.translate(helpExampleWithFunctions()); }
public static ScalarSubquery example() throws Exception { return (ScalarSubquery)TstLanguageBridgeFactory.factory.translate(helpExample()); }
public static Join example(JoinType type) throws Exception { return TstLanguageBridgeFactory.factory.translate(helpExample(type)); }
public static Comparison example(int operator, int leftVal, int rightVal) throws Exception { return TstLanguageBridgeFactory.factory.translate(helpExample(operator, leftVal, rightVal)); }
public static Select example(boolean distinct) throws Exception { return TstLanguageBridgeFactory.factory.translate(helpExample(distinct)); }
public static ColumnReference example(String groupName, String elementName) throws Exception { return TstLanguageBridgeFactory.factory.translate(helpExample(groupName, elementName)); }
public static DerivedTable example() throws Exception { return (DerivedTable)TstLanguageBridgeFactory.factory.translate(helpExample()); }
public static Function example(String name) throws Exception { return (Function) TstLanguageBridgeFactory.factory.translate(helpExample(name)); }
public static NamedTable example(String groupName, String definition) throws Exception { return TstLanguageBridgeFactory.factory.translate(helpExample(groupName, definition)); }
public static SearchedCase example() throws Exception { return TstLanguageBridgeFactory.factory.translate(helpExample()); }
public static OrderBy example() throws Exception { return TstLanguageBridgeFactory.factory.translate(helpExample(), false); }
public static BatchedUpdates example() throws Exception { return TstLanguageBridgeFactory.factory.translate(helpExample()); }
static ConnectorManager getConnectorManager() throws Exception { final FakeConnector c = new FakeConnector(); ConnectorManager cm = new ConnectorManager("FakeConnector","FakeConnector") { //$NON-NLS-1$ //$NON-NLS-2$ public ExecutionFactory getExecutionFactory() { return c; } public Object getConnectionFactory(){ return c; } }; cm.start(); return cm; }