195196197198199200201202203204205
private LOBContent<Reader> toCharacterStream(String valueLobFile, String encoding) throws IOException, DatabaseException { InputStream in = getResourceAsStream(valueLobFile); if (in == null) { throw new DatabaseException("CLOB resource not found: " + valueLobFile); } final int IN_MEMORY_THRESHOLD = 100000; Reader reader = null;
6465666768697071
return column; } else { return null; } } catch (Exception e) { throw new DatabaseException(e); } }
919293949596979899100
for (CachedRow row : allColumnsMetadataRs) { Column exampleColumn = new Column().setRelation(relation).setName(row.getString("COLUMN_NAME")); relation.getColumns().add(exampleColumn); } } catch (Exception e) { throw new DatabaseException(e); } } }
6465666768697071727374
List<CachedRow> metadata = null; try { metadata = listConstraints(table, snapshot, schema); } catch (SQLException e) { throw new DatabaseException(e); } Set<String> seenConstraints = new HashSet<String>(); for (CachedRow constraint : metadata) {
3839404142434445
return null; } return table; } catch (SQLException e) { throw new DatabaseException(e); } }
6364656667686970717273
Table tableExample = (Table) new Table().setName(cleanNameFromDatabase(tableName, database)).setSchema(schema); schema.addDatabaseObject(tableExample); } } catch (SQLException e) { throw new DatabaseException(e); } } }
6869707172737475
returnKey.setBackingIndex(exampleIndex); } return returnKey; } catch (SQLException e) { throw new DatabaseException(e); } }
rs = metaData.getPrimaryKeys(((AbstractJdbcDatabase) database).getJdbcCatalogName(schema), ((AbstractJdbcDatabase) database).getJdbcSchemaName(schema), table.getName()); if (rs.size() > 0) { table.setPrimaryKey(new PrimaryKey().setName(rs.get(0).getString("PK_NAME")).setTable(table)); } } catch (SQLException e) { throw new DatabaseException(e); } } }
343536373839404142
try { Data exampleData = new Data().setTable(table); table.setAttribute("data", exampleData); } catch (Exception e) { throw new DatabaseException(e); } } }
4849505152535455565758
} } } } catch (SQLException e) { throw new DatabaseException(e); } if (match != null && isDefaultCatalog(match, database)) { match.setDefault(true); }