com.konakartadmin.app
Class AdminDataIntegrityOptions

java.lang.Object
  extended by com.konakartadmin.app.AdminDataIntegrityOptions

public class AdminDataIntegrityOptions
extends java.lang.Object

The AdminDataIntegrityOptions is used to define the Data Integrity checking that should be executed.


Field Summary
private  boolean attemptRepair
          If set to true an attempt is made to fix data integrity problems
private  java.lang.String custom
          custom field for customer's use
static int DATA_AREA_ALL
          KonaKart Data Area - All areas
static int DATA_AREA_CUSTOMER_GROUPS
          KonaKart Data Area - Customer Groups
static int DATA_AREA_MISC_ITEM_TYPES
          KonaKart Data Area - Miscellaneous Item Types
static int DATA_AREA_NONE
          KonaKart Data Area - No areas - not checking done
static int DATA_AREA_ORDER_STATUSES
          KonaKart Data Area - Order Statuses
private  int dataArea
          The data area to check
 
Constructor Summary
AdminDataIntegrityOptions()
          Constructor
 
Method Summary
 java.lang.String getCustom()
           
 int getDataArea()
           
 boolean isAttemptRepair()
           
 void setAttemptRepair(boolean attemptRepair)
           
 void setCustom(java.lang.String custom)
           
 void setDataArea(int dataArea)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DATA_AREA_NONE

public static final int DATA_AREA_NONE
KonaKart Data Area - No areas - not checking done

See Also:
Constant Field Values

DATA_AREA_ALL

public static final int DATA_AREA_ALL
KonaKart Data Area - All areas

See Also:
Constant Field Values

DATA_AREA_CUSTOMER_GROUPS

public static final int DATA_AREA_CUSTOMER_GROUPS
KonaKart Data Area - Customer Groups

See Also:
Constant Field Values

DATA_AREA_ORDER_STATUSES

public static final int DATA_AREA_ORDER_STATUSES
KonaKart Data Area - Order Statuses

See Also:
Constant Field Values

DATA_AREA_MISC_ITEM_TYPES

public static final int DATA_AREA_MISC_ITEM_TYPES
KonaKart Data Area - Miscellaneous Item Types

See Also:
Constant Field Values

dataArea

private int dataArea
The data area to check


attemptRepair

private boolean attemptRepair
If set to true an attempt is made to fix data integrity problems


custom

private java.lang.String custom
custom field for customer's use

Constructor Detail

AdminDataIntegrityOptions

public AdminDataIntegrityOptions()
Constructor

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
Returns a string containing the attributes of the Option object.

getDataArea

public int getDataArea()
Returns:
the dataArea

setDataArea

public void setDataArea(int dataArea)
Parameters:
dataArea - the dataArea to set

One of:

  • DATA_AREA_NONE
  • DATA_AREA_ALL
  • DATA_AREA_CUSTOMER_GROUPS
  • DATA_AREA_ORDER_STATUSES
  • DATA_AREA_MISC_ITEM_TYPES

isAttemptRepair

public boolean isAttemptRepair()
Returns:
the attemptRepair

setAttemptRepair

public void setAttemptRepair(boolean attemptRepair)
Parameters:
attemptRepair - Set this to true to attempt a repair of the data. When set to false no repair is attempted and consequently the data is never changed.

getCustom

public java.lang.String getCustom()
Returns:
the custom

setCustom

public void setCustom(java.lang.String custom)
Parameters:
custom - the custom to set


Copyright © 2011 DS Data Systems UK Ltd.