/** * Create an instance of {@link XJobQuery } * */ public XJobQuery createXJobQuery() { return new XJobQuery(); }
public XJobQuery withQuery(String value) { setQuery(value); return this; }
public XJobQuery withConf(MapType... values) { if (values!= null) { for (MapType value: values) { getConf().add(value); } } return this; }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { String theQuery; theQuery = this.getQuery(); strategy.appendField(locator, this, "query", buffer, theQuery); } { List<MapType> theConf; theConf = (((this.conf!= null)&&(!this.conf.isEmpty()))?this.getConf():null); strategy.appendField(locator, this, "conf", buffer, theConf); } return buffer; }
public XExecution getXExecution(String query, String db, List<MapType> queryConfig, List<MapType> sessionConfig){ XExecution execution = new XExecution(); XJobQuery xJobQuery = new XJobQuery(); xJobQuery.setQuery(query); if (queryConfig != null){ xJobQuery.withConf(queryConfig); } XSessionType sessionType = new XSessionType(); if (db == null){ db = getCurrentDB(); } sessionType.setDb(db); if (sessionConfig != null){ sessionType.withConf(sessionConfig); } execution.setQuery(xJobQuery); execution.setSession(sessionType); return execution; }
private XExecution getTestExecution() { XExecution execution = new XExecution(); XJobQuery query = new XJobQuery(); query.setQuery("select * from test_table"); execution.setQuery(query); XSessionType sessionType = new XSessionType(); sessionType.setDb("test"); execution.setSession(sessionType); return execution; }
String query = job.getExecution().getQuery().getQuery(); String queryName = job.getName(); queryName += "-" + scheduledTimeMillis;
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; }
public String toString() { final ToStringStrategy strategy = new YAMLToStringStrategy(); final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); }
public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); }
public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { String theQuery; theQuery = this.getQuery(); strategy.appendField(locator, this, "query", buffer, theQuery); } { List<MapType> theConf; theConf = (((this.conf!= null)&&(!this.conf.isEmpty()))?this.getConf():null); strategy.appendField(locator, this, "conf", buffer, theConf); } return buffer; }
private static XExecution getTestExecution(String queryString) { XExecution execution = new XExecution(); XJobQuery query = new XJobQuery(); query.setQuery(queryString); execution.setQuery(query); XSessionType sessionType = new XSessionType(); sessionType.setDb("default"); execution.setSession(sessionType); return execution; }
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; }
public String toString() { final ToStringStrategy strategy = new YAMLToStringStrategy(); final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); }
public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); }
public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { String theQuery; theQuery = this.getQuery(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "query", theQuery), currentHashCode, theQuery); } { List<MapType> theConf; theConf = (((this.conf!= null)&&(!this.conf.isEmpty()))?this.getConf():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "conf", theConf), currentHashCode, theConf); } return currentHashCode; }
public XJobQuery withConf(Collection<MapType> values) { if (values!= null) { getConf().addAll(values); } return this; }
/** * Create an instance of {@link XJobQuery } * */ public XJobQuery createXJobQuery() { return new XJobQuery(); }