import org.mxchange.jcore.criteria.searchable.SearchableCriteria;
import org.mxchange.jcore.database.frontend.BaseDatabaseFrontend;
import org.mxchange.jcore.database.result.Result;
-import org.mxchange.jcore.database.storage.Storeable;
+import org.mxchange.jcore.database.storage.Storable;
import org.mxchange.jcore.exceptions.BadTokenException;
import org.mxchange.jcore.exceptions.CorruptedDatabaseFileException;
import org.mxchange.jcore.exceptions.UnsupportedDatabaseBackendException;
// Then add it
// @todo Nothing is done yet!
- Result<? extends Storeable> result = this.doInsertDataSet();
+ Result<? extends Storable> result = this.doInsertDataSet();
// Debug message
this.getLogger().debug(MessageFormat.format("result={0}", result)); //NOI18N
criteria.setLimit(1);
// Then search for it
- Result<? extends Storeable> result = this.getBackend().doSelectByCriteria(criteria);
+ Result<? extends Storable> result = this.getBackend().doSelectByCriteria(criteria);
// Debug message
this.getLogger().debug(MessageFormat.format("result={0}", result));
// Is there one row at least?
if (result.hasNext()) {
// Then get it
- Storeable storeable = result.next();
+ Storable storeable = result.next();
// Debug message
this.getLogger().debug(MessageFormat.format("storeable={0}", storeable));
}
@Override
- public Storeable getStoreableAtRow (final int rowIndex) {
+ public Storable getStorableAtRow (final int rowIndex) {
throw new UnsupportedOperationException("Not supported yet: rowIndex=" + rowIndex);
}
SearchableCriteria criteria = new SearchCriteria();
// Look for all entries and compare here. Else all entries needs to be compared with many AND statements
- Result<? extends Storeable> result = this.getBackend().doSelectByCriteria(criteria);
+ Result<? extends Storable> result = this.getBackend().doSelectByCriteria(criteria);
// Debug message
this.getLogger().debug(MessageFormat.format("result({0})={1}", result.size(), result));
// Start iteration
- Iterator<? extends Storeable> iterator = result.iterator();
+ Iterator<? extends Storable> iterator = result.iterator();
// Check all entries
while (iterator.hasNext()) {
criteria.addCriteria(AddressbookContactDatabaseConstants.COLUMN_OWN_CONTACT, true);
// Get result
- Result<? extends Storeable> result = this.getBackend().doSelectByCriteria(criteria);
+ Result<? extends Storable> result = this.getBackend().doSelectByCriteria(criteria);
// Deligate this call to backend
return result.hasNext();
}
@Override
- public Storeable toStoreable (final Map<String, String> map) throws NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
+ public Storable toStorable (final Map<String, String> map) throws NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
throw new UnsupportedOperationException("Not supported yet: map=" + map);
}
}
import org.mxchange.jcore.contact.Contact;
import org.mxchange.jcore.contact.Gender;
import org.mxchange.jcore.database.frontend.DatabaseFrontend;
-import org.mxchange.jcore.database.storage.Storeable;
+import org.mxchange.jcore.database.storage.Storable;
import org.mxchange.jcore.exceptions.BadTokenException;
import org.mxchange.jcore.exceptions.CorruptedDatabaseFileException;
import org.mxchange.jcore.exceptions.UnhandledUserChoiceException;
this.getLogger().trace(MessageFormat.format("rowIndex={0},columnIndex={1} CALLED!", rowIndex, columnIndex));
// Then get specific row from database which is a Contact instance
- Storeable storeable = this.getFrontend().getStoreableAtRow(rowIndex);
+ Storable storeable = this.getFrontend().getStorableAtRow(rowIndex);
// Debug message
this.getLogger().debug(MessageFormat.format("storeable={0}", storeable));