private static int configFieldNameToNum ( String configName ) { if ( configName . equals ( "columnName" ) ) { return COLUMN_NAME ; } else if ( configName . equals ( "dataType" ) ) { return DATA_TYPE ; } else if ( configName . equals ( "defaultValue" ) ) { return DEFAULT_VALUE ; } else if ( configName . equals ( "width" ) ) { return WIDTH ; } else if ( configName . equals ( "canBeNull" ) ) { return CAN_BE_NULL ; } else if ( configName . equals ( "id" ) ) { return ID ; } else if ( configName . equals ( "generatedId" ) ) { return GENERATED_ID ; } else if ( configName . equals ( "generatedIdSequence" ) ) { return GENERATED_ID_SEQUENCE ; } else if ( configName . equals ( "foreign" ) ) { return FOREIGN ; } else if ( configName . equals ( "useGetSet" ) ) { return USE_GET_SET ; } else if ( configName . equals ( "unknownEnumName" ) ) { return UNKNOWN_ENUM_NAME ; } else if ( configName . equals ( "throwIfNull" ) ) { return THROW_IF_NULL ; } else if ( configName . equals ( "persisted" ) ) { return PERSISTED ; } else if ( configName . equals ( "format" ) ) { return FORMAT ; } else if ( configName . equals ( "unique" ) ) { return UNIQUE ; } else if ( configName . equals ( "uniqueCombo" ) ) { return UNIQUE_COMBO ; } else if ( configName . equals ( "index" ) ) { return INDEX ; } else if ( configName . equals ( "uniqueIndex" ) ) { return UNIQUE_INDEX ; } else if ( configName . equals ( "indexName" ) ) { return INDEX_NAME ; } else if ( configName . equals ( "uniqueIndexName" ) ) { return UNIQUE_INDEX_NAME ; } else if ( configName . equals ( "foreignAutoRefresh" ) ) { return FOREIGN_AUTO_REFRESH ; } else if ( configName . equals ( "maxForeignAutoRefreshLevel" ) ) { return MAX_FOREIGN_AUTO_REFRESH_LEVEL ; } else if ( configName . equals ( "persisterClass" ) ) { return PERSISTER_CLASS ; } else if ( configName . equals ( "allowGeneratedIdInsert" ) ) { return ALLOW_GENERATED_ID_INSERT ; } else if ( configName . equals ( "columnDefinition" ) ) { return COLUMN_DEFINITON ; } else if ( configName . equals ( "fullColumnDefinition" ) ) { return FULL_COLUMN_DEFINITON ; } else if ( configName . equals ( "foreignAutoCreate" ) ) { return FOREIGN_AUTO_CREATE ; } else if ( configName . equals ( "version" ) ) { return VERSION ; } else if ( configName . equals ( "foreignColumnName" ) ) { return FOREIGN_COLUMN_NAME ; } else if ( configName . equals ( "readOnly" ) ) { return READ_ONLY ; } else { throw new IllegalStateException ( "Could not find support for DatabaseField " + configName ) ; } }
Convert the name of the