Returns the primary key of the newly created book.
8081828384858687888990
{ IOperations operations = vengine.getOperations(); if (publisherId != null) operations.addBook(attributes); else { operations.addBook(attributes, publisherName); // Clear the app's cache of info; in this case, known publishers.
8384858687888990919293
if (publisherId != null) operations.addBook(attributes); else { operations.addBook(attributes, publisherName); // Clear the app's cache of info; in this case, known publishers. vengine.clearCache(); }
123124125126127128129130131132133
126127128129130131132133134135136
105106107108109110111112113114115
try { if (publisherId != null) { operations.addBook(attributes); return false; } operations.addBook(attributes, publisherName);
110111112113114115116117118119120
operations.addBook(attributes); return false; } operations.addBook(attributes, publisherName); return true; } catch (CreateException ex) {
102103104105106107108109110111112
107108109110111112113114115116117