public void processField ( String template , Properties attributes ) throws XDocletException { String name = OjbMemberTagsHandler . getMemberName ( ) ; String defaultType = getDefaultJdbcTypeForCurrentMember ( ) ; String defaultConversion = getDefaultJdbcConversionForCurrentMember ( ) ; FieldDescriptorDef fieldDef = _curClassDef . getField ( name ) ; String attrName ; if ( fieldDef == null ) { fieldDef = new FieldDescriptorDef ( name ) ; _curClassDef . addField ( fieldDef ) ; } LogHelper . debug ( false , OjbTagsHandler . class , "processField" , " Processing field " + fieldDef . getName ( ) ) ; for ( Enumeration attrNames = attributes . propertyNames ( ) ; attrNames . hasMoreElements ( ) ; ) { attrName = ( String ) attrNames . nextElement ( ) ; fieldDef . setProperty ( attrName , attributes . getProperty ( attrName ) ) ; } // storing additional info for later use fieldDef . setProperty ( PropertyHelper . OJB_PROPERTY_JAVA_TYPE , OjbMemberTagsHandler . getMemberType ( ) . getQualifiedName ( ) ) ; fieldDef . setProperty ( PropertyHelper . OJB_PROPERTY_DEFAULT_JDBC_TYPE , defaultType ) ; if ( defaultConversion != null ) { fieldDef . setProperty ( PropertyHelper . OJB_PROPERTY_DEFAULT_CONVERSION , defaultConversion ) ; } _curFieldDef = fieldDef ; generate ( template ) ; _curFieldDef = null ; }
Sets the current field definition derived from the current member and optionally some attributes .