de.smartics.properties.spi.config.ds
Enum DataSourceCode

Package class diagram package DataSourceCode
java.lang.Object
  extended by java.lang.Enum<DataSourceCode>
      extended by de.smartics.properties.spi.config.ds.DataSourceCode
All Implemented Interfaces:
de.smartics.exceptions.code.NumberCode, de.smartics.exceptions.core.Code, ConfigurationsCode, PropertiesCode, Serializable, Comparable< DataSourceCode>

public enum DataSourceCode
     
     
extends Enum< DataSourceCode>
implements ConfigurationsCode

Codes dealing with property problems.


Enum Constant Summary
CANNOT_ACCESS_CONFIGURATION_KEYS
          The table containing the properties cannot be accessed to fetch the configuration keys found therein.
CANNOT_ACCESS_PROPERTIES
          Problems accessing a set of properties in the database.
CANNOT_ACCESS_PROPERTY
          Problems accessing the property in the database.
CANNOT_CREATE_TABLE
          The table containing the properties cannot be created.
CANNOT_DELETE_PROPERTIES
          Problems deleting all property values from the database.
CANNOT_DELETE_PROPERTY
          Problems deleting the value of a property from the database.
CANNOT_DROP_TABLE
          The table containing the properties cannot be dropped.
CANNOT_PRINT_TABLE
          The table containing the properties cannot be accessed for printing.
CANNOT_STORE_PROPERTIES
          Problems storing a set of properties to the database.
CANNOT_STORE_PROPERTY
          Problems storing the value of a property to the database.
INVALID_CONFIGURATION_KEY
          The table containing the properties contains an invalid configuration key.
 
Method Summary
 String getCode()
           
 String getComponentId()
           
 String getDisplayId()
           
 Integer getMajorNumber()
           
 Integer getMinorNumber()
           
 String toString()
          Returns the string representation of the object.
static DataSourceCode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DataSourceCode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CANNOT_CREATE_TABLE

@MessageParamsDescriptor(value=DataSourceMessageBean.class)
public static final DataSourceCode CANNOT_CREATE_TABLE
The table containing the properties cannot be created.


CANNOT_DROP_TABLE

@MessageParamsDescriptor(value=DataSourceMessageBean.class)
public static final DataSourceCode CANNOT_DROP_TABLE
The table containing the properties cannot be dropped.


CANNOT_PRINT_TABLE

@MessageParamsDescriptor(value=DataSourceMessageBean.class)
public static final DataSourceCode CANNOT_PRINT_TABLE
The table containing the properties cannot be accessed for printing.


CANNOT_ACCESS_CONFIGURATION_KEYS

@MessageParamsDescriptor(value=DataSourceMessageBean.class)
public static final DataSourceCode CANNOT_ACCESS_CONFIGURATION_KEYS
The table containing the properties cannot be accessed to fetch the configuration keys found therein.


INVALID_CONFIGURATION_KEY

@MessageParamsDescriptor(value=DataSourceMessageBean.class)
public static final DataSourceCode INVALID_CONFIGURATION_KEY
The table containing the properties contains an invalid configuration key.


CANNOT_ACCESS_PROPERTY

@MessageParamsDescriptor(value=DataSourcePropertyKeyMessageBean.class)
public static final DataSourceCode CANNOT_ACCESS_PROPERTY
Problems accessing the property in the database.


CANNOT_ACCESS_PROPERTIES

@MessageParamsDescriptor(value=DataSourceConfigurationMessageBean.class)
public static final DataSourceCode CANNOT_ACCESS_PROPERTIES
Problems accessing a set of properties in the database.


CANNOT_STORE_PROPERTY

@MessageParamsDescriptor(value=DataSourcePropertyMessageBean.class)
public static final DataSourceCode CANNOT_STORE_PROPERTY
Problems storing the value of a property to the database.


CANNOT_DELETE_PROPERTY

@MessageParamsDescriptor(value=DataSourcePropertyKeyMessageBean.class)
public static final DataSourceCode CANNOT_DELETE_PROPERTY
Problems deleting the value of a property from the database.


CANNOT_DELETE_PROPERTIES

@MessageParamsDescriptor(value=DataSourceMessageBean.class)
public static final DataSourceCode CANNOT_DELETE_PROPERTIES
Problems deleting all property values from the database.


CANNOT_STORE_PROPERTIES

@MessageParamsDescriptor(value=DataSourceConfigurationMessageBean.class)
public static final DataSourceCode CANNOT_STORE_PROPERTIES
Problems storing a set of properties to the database.

Method Detail

values

public static DataSourceCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (DataSourceCode c : DataSourceCode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DataSourceCode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getCode

public String getCode()
Specified by:
getCode in interface de.smartics.exceptions.core.Code

getComponentId

public String getComponentId()
Specified by:
getComponentId in interface de.smartics.exceptions.core.Code

getDisplayId

public String getDisplayId()
Specified by:
getDisplayId in interface de.smartics.exceptions.core.Code

getMajorNumber

public Integer getMajorNumber()
Specified by:
getMajorNumber in interface de.smartics.exceptions.code.NumberCode

getMinorNumber

public Integer getMinorNumber()
Specified by:
getMinorNumber in interface de.smartics.exceptions.code.NumberCode

toString

public String toString()
Returns the string representation of the object.

Specified by:
toString in interface de.smartics.exceptions.core.Code
Overrides:
toString in class Enum<DataSourceCode>
Returns:
the string representation of the object.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.