return Byte.valueOf(getDriverType());
/** * {@inheritDoc} */ @Override public RowSet getBestRowIdentifier(ServiceMetaDataArgs args, int scope, boolean nullable) throws GFXDException { ResultSet rs = null; try { final ConnectionHolder connHolder = getValidConnection(args.connId, args.token); EmbedDatabaseMetaData dmd = (EmbedDatabaseMetaData)connHolder .getConnection().getMetaData(); final boolean isODBC = args.getDriverType() == gfxdConstants.DRIVER_ODBC; rs = isODBC ? dmd.getBestRowIdentifierForODBC(null, args.getSchema(), args.getTable(), scope, nullable) : dmd.getBestRowIdentifier(null, args.getSchema(), args.getTable(), scope, nullable); return getRowSet(null, null, rs, INVALID_ID, args.connId, null, 0, false, false, 0, connHolder, true, "getBestRowIdentifier"); } catch (Throwable t) { cleanupResultSet(rs); throw gfxdException(t); } } }
/** * {@inheritDoc} */ @Override public RowSet getIndexInfo(ServiceMetaDataArgs args, boolean unique, boolean approximate) throws GFXDException { ResultSet rs = null; try { final ConnectionHolder connHolder = getValidConnection(args.connId, args.token); EmbedDatabaseMetaData dmd = (EmbedDatabaseMetaData)connHolder .getConnection().getMetaData(); final boolean isODBC = args.getDriverType() == gfxdConstants.DRIVER_ODBC; rs = isODBC ? dmd.getIndexInfoForODBC(null, args.getSchema(), args.getTable(), unique, approximate) : dmd.getIndexInfo(null, args.getSchema(), args.getTable(), unique, approximate); return getRowSet(null, null, rs, INVALID_ID, args.connId, null, 0, false, false, 0, connHolder, true, "getIndexInfo"); } catch (Throwable t) { cleanupResultSet(rs); throw gfxdException(t); } }
/** * {@inheritDoc} */ @Override public RowSet getIndexInfo(ServiceMetaDataArgs args, boolean unique, boolean approximate) throws GFXDException { ResultSet rs = null; try { final ConnectionHolder connHolder = getValidConnection(args.connId, args.token); EmbedDatabaseMetaData dmd = (EmbedDatabaseMetaData)connHolder .getConnection().getMetaData(); final boolean isODBC = args.getDriverType() == gfxdConstants.DRIVER_ODBC; rs = isODBC ? dmd.getIndexInfoForODBC(null, args.getSchema(), args.getTable(), unique, approximate) : dmd.getIndexInfo(null, args.getSchema(), args.getTable(), unique, approximate); return getRowSet(null, null, rs, INVALID_ID, args.connId, null, 0, false, false, 0, connHolder, true, "getIndexInfo"); } catch (Throwable t) { cleanupResultSet(rs); throw gfxdException(t); } }
/** * {@inheritDoc} */ @Override public RowSet getBestRowIdentifier(ServiceMetaDataArgs args, int scope, boolean nullable) throws GFXDException { ResultSet rs = null; try { final ConnectionHolder connHolder = getValidConnection(args.connId, args.token); EmbedDatabaseMetaData dmd = (EmbedDatabaseMetaData)connHolder .getConnection().getMetaData(); final boolean isODBC = args.getDriverType() == gfxdConstants.DRIVER_ODBC; rs = isODBC ? dmd.getBestRowIdentifierForODBC(null, args.getSchema(), args.getTable(), scope, nullable) : dmd.getBestRowIdentifier(null, args.getSchema(), args.getTable(), scope, nullable); return getRowSet(null, null, rs, INVALID_ID, args.connId, null, 0, false, false, 0, connHolder, true, "getBestRowIdentifier"); } catch (Throwable t) { cleanupResultSet(rs); throw gfxdException(t); } } }
EmbedDatabaseMetaData dmd = (EmbedDatabaseMetaData)connHolder .getConnection().getMetaData(); final boolean isODBC = args.getDriverType() == gfxdConstants.DRIVER_ODBC; switch (schemaCall) { case ATTRIBUTES:
EmbedDatabaseMetaData dmd = (EmbedDatabaseMetaData)connHolder .getConnection().getMetaData(); final boolean isODBC = args.getDriverType() == gfxdConstants.DRIVER_ODBC; switch (schemaCall) { case ATTRIBUTES: