- 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
}
public synchronized List<String> deletedBookmarkUids() { return listCall(new ListCallable<String>() { public List<String> call() throws RemoteException { return myInterface.deletedBookmarkUids(); } }); }
public List<Book> recentlyOpenedBooks(final int count) { return listCall(new ListCallable<Book>() { public List<Book> call() throws RemoteException { // 继续前一步得到的序列化集合List<String>序列化为List<Book> // Book String DbBook String return SerializerUtil.deserializeBookList( myInterface.recentlyOpenedBooks(count), BookCollectionShadow.this); // 调用远程服务中的方法 } }); }
public List<HighlightingStyle> highlightingStyles() { return listCall(new ListCallable<HighlightingStyle>() { public List<HighlightingStyle> call() throws RemoteException { return SerializerUtil.deserializeStyleList(myInterface.highlightingStyles()); } }); }
public List<Book> recentlyAddedBooks(final int count) { return listCall(new ListCallable<Book>() { public List<Book> call() throws RemoteException { return SerializerUtil.deserializeBookList( myInterface.recentlyAddedBooks(count), BookCollectionShadow.this ); } }); }
public List<HighlightingStyle> highlightingStyles() { return listCall(new ListCallable<HighlightingStyle>() { public List<HighlightingStyle> call() throws RemoteException { return SerializerUtil.deserializeStyleList(myInterface.highlightingStyles()); } }); }
public List<String> series() { return listCall(new ListCallable<String>() { public List<String> call() throws RemoteException { return myInterface.series(); } }); }
public List<String> labels() { return listCall(new ListCallable<String>() { public List<String> call() throws RemoteException { return myInterface.labels(); } }); }
public List<String> titles(final BookQuery query) { return listCall(new ListCallable<String>() { public List<String> call() throws RemoteException { return myInterface.titles(SerializerUtil.serialize(query)); } }); }
@Override public List<Bookmark> bookmarks(final BookmarkQuery query) { return listCall(new ListCallable<Bookmark>() { public List<Bookmark> call() throws RemoteException { return SerializerUtil.deserializeBookmarkList( myInterface.bookmarks(SerializerUtil.serialize(query)) ); } }); }
public List<Book> books(final BookQuery query) { return listCall(new ListCallable<Book>() { public List<Book> call() throws RemoteException { return SerializerUtil.deserializeBookList( myInterface.books(SerializerUtil.serialize(query)), BookCollectionShadow.this ); } }); }
public List<String> series() { return listCall(new ListCallable<String>() { public List<String> call() throws RemoteException { return myInterface.series(); } }); }
@Override public List<Bookmark> bookmarks(final BookmarkQuery query) { return listCall(new ListCallable<Bookmark>() { public List<Bookmark> call() throws RemoteException { return SerializerUtil.deserializeBookmarkList( myInterface.bookmarks(SerializerUtil.serialize(query)) ); } }); }
public List<String> labels() { return listCall(new ListCallable<String>() { public List<String> call() throws RemoteException { return myInterface.labels(); } }); }
public synchronized List<String> deletedBookmarkUids() { return listCall(new ListCallable<String>() { public List<String> call() throws RemoteException { return myInterface.deletedBookmarkUids(); } }); }
public List<String> firstTitleLetters() { return listCall(new ListCallable<String>() { public List<String> call() throws RemoteException { return myInterface.firstTitleLetters(); } }); }
public List<String> titles(final BookQuery query) { return listCall(new ListCallable<String>() { public List<String> call() throws RemoteException { return myInterface.titles(SerializerUtil.serialize(query)); } }); }
public List<Book> recentlyAddedBooks(final int count) { return listCall(new ListCallable<Book>() { public List<Book> call() throws RemoteException { return SerializerUtil.deserializeBookList( myInterface.recentlyAddedBooks(count), BookCollectionShadow.this ); } }); }
public List<Tag> tags() { return listCall(new ListCallable<Tag>() { public List<Tag> call() throws RemoteException { final List<String> strings = myInterface.tags(); final List<Tag> tags = new ArrayList<Tag>(strings.size()); for (String s : strings) { tags.add(Util.stringToTag(s)); } return tags; } }); }
public List<Tag> tags() { return listCall(new ListCallable<Tag>() { public List<Tag> call() throws RemoteException { final List<String> strings = myInterface.tags(); final List<Tag> tags = new ArrayList<Tag>(strings.size()); for (String s : strings) { tags.add(Util.stringToTag(s)); } return tags; } }); }
public List<Author> authors() { return listCall(new ListCallable<Author>() { public List<Author> call() throws RemoteException { final List<String> strings = myInterface.authors(); final List<Author> authors = new ArrayList<Author>(strings.size()); for (String s : strings) { authors.add(Util.stringToAuthor(s)); } return authors; } }); }