* @param columnName Column name to convert
* @return Attribute name
*/
- protected String convertColumnNameToAttribute (final String columnName) {
+ protected String convertColumnNameToFieldName (final String columnName) {
// Trace message
this.getLogger().trace(MessageFormat.format("columnName={0} - CALLED!", columnName)); //NOI18N
// Debug message
this.getLogger().debug(MessageFormat.format("fields()={0}", fields.length)); //NOI18N
+ // Convert column_name to fieldName ;-)
+ String fieldName = this.convertColumnNameToFieldName(columnName);
+
// Search for proper field instance
for (final Field field : fields) {
// Debug message
- this.getLogger().debug(MessageFormat.format("field={0},columnName={1}", field, columnName)); //NOI18N
+ this.getLogger().debug(MessageFormat.format("field={0},fieldName={1}", field, fieldName)); //NOI18N
// Does it match?
- if (field.getName().equals(columnName)) {
+ if (field.getName().equals(fieldName)) {
// Found it
type = field.getType();
break;