- 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
}
ChunkAndOffset getChunkGently(AnyObjectId objId) { return recentChunks.find(repo, objId); }
ChunkAndOffset getChunkGently(AnyObjectId objId) { return recentChunks.find(repo, objId); }
ChunkKey findChunk(AnyObjectId objId) throws DhtException { if (objId instanceof RefDataUtil.IdWithChunk) return ((RefDataUtil.IdWithChunk) objId).getChunkKey(); ChunkKey key = repository.getRefDatabase().findChunk(objId); if (key != null) return key; ChunkAndOffset r = recentChunks.find(repo, objId); if (r != null) return r.chunk.getChunkKey(); for (ObjectInfo link : find(objId)) return link.getChunkKey(); return null; }
ChunkKey findChunk(AnyObjectId objId) throws DhtException { if (objId instanceof RefDataUtil.IdWithChunk) return ((RefDataUtil.IdWithChunk) objId).getChunkKey(); ChunkKey key = repository.getRefDatabase().findChunk(objId); if (key != null) return key; ChunkAndOffset r = recentChunks.find(repo, objId); if (r != null) return r.chunk.getChunkKey(); for (ObjectInfo link : find(objId)) return link.getChunkKey(); return null; }
ChunkAndOffset getChunk(AnyObjectId objId, int typeHint, boolean checkRecent) throws DhtException, MissingObjectException { if (checkRecent) { ChunkAndOffset r = recentChunks.find(repo, objId); if (r != null) return r;
ChunkAndOffset getChunk(AnyObjectId objId, int typeHint, boolean checkRecent) throws DhtException, MissingObjectException { if (checkRecent) { ChunkAndOffset r = recentChunks.find(repo, objId); if (r != null) return r;