this.parseArguments(args);
// Launch application
- ApplicationManager.getManager(this).start();
+ ApplicationManager.getSingeltonManager(this).start();
// Good bye, but this should not be reached ...
this.getLogger().warn("Unusual exit reached."); //NOI18N
// Is there one row at least?
if (result.hasNext()) {
// Then get it
- Storable storeable = result.next();
+ Storable storable = result.next();
// Debug message
- this.getLogger().debug(MessageFormat.format("storeable={0}", storeable));
+ this.getLogger().debug(MessageFormat.format("storable={0}", storable));
// Is it same instance?
- if (!(storeable instanceof Contact)) {
+ if (!(storable instanceof Contact)) {
// Not same instance
- throw new IllegalArgumentException(MessageFormat.format("storeable={0} is not implementing Contact", storeable));
+ throw new IllegalArgumentException(MessageFormat.format("storable={0} is not implementing Contact", storable));
}
// Cast it securely
- contact = (Contact) storeable;
+ contact = (Contact) storable;
}
// Trace message
this.getLogger().trace(MessageFormat.format("rowIndex={0},columnIndex={1} CALLED!", rowIndex, columnIndex)); //NOI18N
// Then get specific row from database which is a Contact instance
- Storable storeable = this.getFrontend().getStorableAtRow(rowIndex);
+ Storable storable = this.getFrontend().getStorableAtRow(rowIndex);
// Debug message
- this.getLogger().debug(MessageFormat.format("storeable={0}", storeable)); //NOI18N
+ this.getLogger().debug(MessageFormat.format("storable={0}", storable)); //NOI18N
// It may return null
- if (null == storeable) {
+ if (null == storable) {
// Nothing found
this.getLogger().warn("contact is null - returning null ..."); //NOI18N
return null;
// Now get that column
Object value = null;
try {
- value = storeable.getValueFromColumn(columnName);
+ value = storable.getValueFromColumn(columnName);
} catch (final IllegalArgumentException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) {
this.abortProgramWithException(ex);
}