/** * Return a concatened and human readable format of provided result set * @param rs result set to read * @param maxFieldLength Maximum field length to print * @param maxPrintedRows Maximum printed rows * @param addColumns Add column header * @param alignColumns Align columns by using padding * @return human readable format of provided result set * @throws SQLException */ public static String resultSetToString(ResultSet rs,int maxFieldLength, int maxPrintedRows, boolean addColumns, boolean alignColumns) throws SQLException { return resultSetToString(rs, maxFieldLength, maxPrintedRows, addColumns, alignColumns, new AcceptAllFilter()); }
@Override public void removedService(ServiceReference<DriverFunction> reference, DriverFunction service) { driverFunctionContainer.removeDriverFunction(service); } }
/** * @param dataSourceFactory DataSourceFactory instance * @param serviceProperties Must contain DataSourceFactory.OSGI_JDBC_DRIVER_NAME entry. */ public void removeDataSourceFactory(DataSourceFactory dataSourceFactory, Map<String,String> serviceProperties) { dataSourceService.removeDataSourceFactory(dataSourceFactory, serviceProperties); }
@Override public <T> T getObject(String s, Class<T> tClass) throws SQLException { return getObject(findColumn(s), tClass); } @Override
@Override public Date getDate(String s) throws SQLException { return getDate(findColumn(s)); }
@Override public InputStream getBinaryStream(String s) throws SQLException { return getBinaryStream(findColumn(s)); } @Override
@Override public float getFloat(String s) throws SQLException { return getFloat(findColumn(s)); }
@Override public Reader getCharacterStream(String s) throws SQLException { return getCharacterStream(findColumn(s)); }
@Override public Blob getBlob(String s) throws SQLException { return getBlob(findColumn(s)); }
@Override public NClob getNClob(String s) throws SQLException { return getNClob(findColumn(s)); }
@Override public String getNString(String s) throws SQLException { return getNString(findColumn(s)); }
@Override public void fireDatabaseProgression(StateEvent event) { ArrayList<DatabaseProgressionListener> listenerList = progressionListenerMap.get(event.getStateIdentifier()); if(listenerList != null) { for(DatabaseProgressionListener listener : listenerList) { listener.progressionUpdate(event); } } } }
@Override public void setExcludeGeometry(boolean excludeGeometry){ this.excludeGeom = excludeGeometry; if(rowSet != null) { rowSet.setExcludeGeomFields(excludeGeom); } }
@Override public String getRedoPresentationName() { return tableUndoableEdit.getRedoPresentationName(); } }
@Override protected boolean canAddField(int index, int fieldTypeCode, String fieldTypeName) { return MetaData.isNumeric(fieldTypeCode); }
@Override public Time getTime(int i, Calendar calendar) throws SQLException { return getTime(i); }
@Override public boolean canRedo() { return tableUndoableEdit.canRedo(); }
/** * Return a concatened and human readable format of provided result set * @param rs result set to read * @param maxFieldLength Maximum field length to print * @param maxPrintedRows Maximum printed rows * @param addColumns Add column header * @param alignColumns Align columns by using padding * @return human readable format of provided result set * @throws SQLException */ public static String resultSetToString(ResultSet rs,int maxFieldLength, int maxPrintedRows, boolean addColumns, boolean alignColumns) throws SQLException { return resultSetToString(rs, maxFieldLength, maxPrintedRows, addColumns, alignColumns, new AcceptAllFilter()); }
@Override public Object getObject(String s) throws SQLException { return getObject(findColumn(s)); }
@Override public Date getDate(String s, Calendar calendar) throws SQLException { return getDate(findColumn(s), calendar); }