public static String createClubId(Delegator delegator,String prefix,int length){
  final String clubSeqName="PartyClubSeq";
  String clubId=prefix != null ? prefix : "";
  Long seq=delegator.getNextSeqIdLong(clubSeqName);
  clubId=clubId + UtilFormatOut.formatPaddedNumber(seq.longValue(),(length - clubId.length() - 1));
  int check=UtilValidate.getLuhnCheckDigit(clubId);
  clubId=clubId + Integer.toString(check);
  return clubId;
}

public static String createClubId ( Delegator delegator , String prefix , int length ) { final String clubSeqName = "PartyClubSeq" ; String clubId = prefix != null ? prefix : "" ; Long seq = delegator . getNextSeqIdLong ( clubSeqName ) ; clubId = clubId + UtilFormatOut . formatPaddedNumber ( seq . longValue ( ) , ( length - clubId . length ( ) - 1 ) ) ; int check = UtilValidate . getLuhnCheckDigit ( clubId ) ; clubId = clubId + Integer . toString ( check ) ; return clubId ; }
generate a sequenced club id using the prefix passed and a sequence value + check digit
