- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {Connection c =
DataSource dataSource;dataSource.getConnection()
String url;DriverManager.getConnection(url)
IdentityDatabaseUtil.getDBConnection()
- Smart code suggestions by Codota
}
/** * fluent setter * @see #setWhen(String) * * @param when * required parameter */ public TimeStamp withWhen(final String when) { this.setWhen(when); return this; }
/** * fluent setter * @see #setWhen(String) * * @param when * required parameter */ public TimeStamp withWhen(final String when) { this.setWhen(when); return this; }
@Override public Feature decorate(Feature feature, KmlEncodingContext context) { Placemark pm = (Placemark) feature; // try with the template SimpleFeature sf = context.getCurrentFeature(); try { String[] times = execute(context.getTemplate(), sf); if (times != null && times.length > 0) { if (times.length == 1) { TimeStamp stamp = pm.createAndSetTimeStamp(); stamp.setWhen(times[0]); } else { TimeSpan span = pm.createAndSetTimeSpan(); span.setBegin(times[0]); span.setEnd(times[1]); } } } catch (IOException e) { throw new ServiceException( "Failed to apply KML time template to the current feature", e); } return pm; }