Class RandomCreditCardNumberGenerator
- java.lang.Object
-
- org.pentaho.di.trans.steps.randomccnumber.RandomCreditCardNumberGenerator
-
public class RandomCreditCardNumberGenerator extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
CARD_TYPE_AIRPLUS
static int
CARD_TYPE_AMEX
static int
CARD_TYPE_BANKCARD
static int
CARD_TYPE_DINERS
static int
CARD_TYPE_DISCOVER
static int
CARD_TYPE_ENROUTE
static int
CARD_TYPE_JCB_15
static int
CARD_TYPE_JCB_16
static int
CARD_TYPE_LASER
static int
CARD_TYPE_MAESTRO
static int
CARD_TYPE_MASTERCARD
static int
CARD_TYPE_SOLO
static int
CARD_TYPE_SWITCH
static int
CARD_TYPE_VISA
static int
CARD_TYPE_VOYAGER
static String[]
cardTypes
-
Constructor Summary
Constructors Constructor Description RandomCreditCardNumberGenerator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String[]
GenerateCreditCardNumbers(int cardType, int size, int howMany)
static String
getCardName(int id)
static int
getCardType(String typeName)
-
-
-
Field Detail
-
CARD_TYPE_AMEX
public static final int CARD_TYPE_AMEX
- See Also:
- Constant Field Values
-
CARD_TYPE_DINERS
public static final int CARD_TYPE_DINERS
- See Also:
- Constant Field Values
-
CARD_TYPE_DISCOVER
public static final int CARD_TYPE_DISCOVER
- See Also:
- Constant Field Values
-
CARD_TYPE_ENROUTE
public static final int CARD_TYPE_ENROUTE
- See Also:
- Constant Field Values
-
CARD_TYPE_JCB_15
public static final int CARD_TYPE_JCB_15
- See Also:
- Constant Field Values
-
CARD_TYPE_JCB_16
public static final int CARD_TYPE_JCB_16
- See Also:
- Constant Field Values
-
CARD_TYPE_MASTERCARD
public static final int CARD_TYPE_MASTERCARD
- See Also:
- Constant Field Values
-
CARD_TYPE_VISA
public static final int CARD_TYPE_VISA
- See Also:
- Constant Field Values
-
CARD_TYPE_VOYAGER
public static final int CARD_TYPE_VOYAGER
- See Also:
- Constant Field Values
-
CARD_TYPE_AIRPLUS
public static final int CARD_TYPE_AIRPLUS
- See Also:
- Constant Field Values
-
CARD_TYPE_BANKCARD
public static final int CARD_TYPE_BANKCARD
- See Also:
- Constant Field Values
-
CARD_TYPE_MAESTRO
public static final int CARD_TYPE_MAESTRO
- See Also:
- Constant Field Values
-
CARD_TYPE_SOLO
public static final int CARD_TYPE_SOLO
- See Also:
- Constant Field Values
-
CARD_TYPE_SWITCH
public static final int CARD_TYPE_SWITCH
- See Also:
- Constant Field Values
-
CARD_TYPE_LASER
public static final int CARD_TYPE_LASER
- See Also:
- Constant Field Values
-
cardTypes
public static final String[] cardTypes
-
-
Method Detail
-
getCardType
public static int getCardType(String typeName)
-
getCardName
public static String getCardName(int id)
-
GenerateCreditCardNumbers
public static String[] GenerateCreditCardNumbers(int cardType, int size, int howMany) throws org.pentaho.di.core.exception.KettleException
- Throws:
org.pentaho.di.core.exception.KettleException
-
-