public boolean removeLocalMetadata ( InvMetadata metadata ) { InvDatasetImpl parentDataset = ( ( InvDatasetImpl ) metadata . getParentDataset ( ) ) ; List localMdata = parentDataset . getLocalMetadata ( ) . getMetadata ( ) ; if ( localMdata . contains ( metadata ) ) { if ( localMdata . remove ( metadata ) ) { hashCode = 0 ; // Need to recalculate the hash code. return ( true ) ; } } return ( false ) ; }
Remove the given InvMetadata from the set of metadata local to this dataset .