Signed-off-by:Roland Häder <roland@mxchange.org>
/**
* Column own_contact
*/
/**
* Column own_contact
*/
- public static final String COLUMN_NAME_OWN_CONTACT = "own_contact"; //NOI18N
+ public static final String COLUMN_OWN_CONTACT = "own_contact"; //NOI18N
+
+ /**
+ * Column id
+ */
+ public static final String COLUMN_ID = "id";
/**
* No instances are allowed as this class only holds static attributes
/**
* No instances are allowed as this class only holds static attributes
import java.sql.SQLException;
import java.text.MessageFormat;
import java.util.Iterator;
import java.sql.SQLException;
import java.text.MessageFormat;
import java.util.Iterator;
import java.util.StringTokenizer;
import org.mxchange.addressbook.contact.book.BookContact;
import org.mxchange.addressbook.contact.user.UserContact;
import java.util.StringTokenizer;
import org.mxchange.addressbook.contact.book.BookContact;
import org.mxchange.addressbook.contact.user.UserContact;
this.getLogger().trace("CALLED!"); //NOI18N
// Get row index back from backend
this.getLogger().trace("CALLED!"); //NOI18N
// Get row index back from backend
- int rowIndex = this.getBackend().getRowIndexFromColumn(AddressbookContactDatabaseConstants.COLUMN_NAME_OWN_CONTACT, true);
+ int rowIndex = this.getBackend().getRowIndexFromColumn(AddressbookContactDatabaseConstants.COLUMN_OWN_CONTACT, true);
// Debug message
this.getLogger().debug(MessageFormat.format("rowIndex={0}", rowIndex));
// Debug message
this.getLogger().debug(MessageFormat.format("rowIndex={0}", rowIndex));
SearchableCritera critera = new SearchCriteria();
// Add condition
SearchableCritera critera = new SearchCriteria();
// Add condition
- critera.addCriteria(AddressbookContactDatabaseConstants.COLUMN_NAME_OWN_CONTACT, true);
+ critera.addCriteria(AddressbookContactDatabaseConstants.COLUMN_OWN_CONTACT, true);
// Get result
Result<? extends Storeable> result = this.getBackend().doSelectByCriteria(critera);
// Get result
Result<? extends Storeable> result = this.getBackend().doSelectByCriteria(critera);
// Bad state, should not be reached
throw new IllegalStateException("This should not be reached");
}
// Bad state, should not be reached
throw new IllegalStateException("This should not be reached");
}
+
+ @Override
+ public Storeable toStoreable (final Map<String, String> map) throws NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
+ throw new UnsupportedOperationException("Not supported yet: map=" + map);
+ }
+
+ @Override
+ public String getIdName () {
+ // Return id column
+ return AddressbookContactDatabaseConstants.COLUMN_ID;
+ }