private void addCreateUpdateAttributes ( ) throws EFapsException { final Iterator < ? > iter = getType ( ) . getAttributes ( ) . entrySet ( ) . iterator ( ) ; while ( iter . hasNext ( ) ) { final Map . Entry < ? , ? > entry = ( Map . Entry < ? , ? > ) iter . next ( ) ; final Attribute attr = ( Attribute ) entry . getValue ( ) ; final AttributeType attrType = attr . getAttributeType ( ) ; if ( attrType . isCreateUpdate ( ) ) { addInternal ( attr , false , ( Object ) null ) ; } if ( attr . getDefaultValue ( ) != null ) { addInternal ( attr , false , attr . getDefaultValue ( ) ) ; } } }
Add all attributes of the type which must be always updated and the default values .