public int delete ( DatabaseConnection databaseConnection , T data , ObjectCache objectCache ) throws SQLException { if ( mappedDelete == null ) { mappedDelete = MappedDelete . build ( dao , tableInfo ) ; } int result = mappedDelete . delete ( databaseConnection , data , objectCache ) ; if ( dao != null && ! localIsInBatchMode . get ( ) ) { dao . notifyChanges ( ) ; } return result ; }
Delete an object from the database .