com.rapidtransform.core.service
Interface ValidValueService

All Superinterfaces:
Service
All Known Implementing Classes:
ValidValueServiceImpl

public interface ValidValueService
extends Service

Author:
Steve

Method Summary
 ValidValue find(java.lang.Class subclass, java.lang.Long id)
          Returns the ValidValue object for the given subclass and id.
 java.util.Collection<ValidValue> findAll(java.lang.Class subclass)
          Returns a collection of all the ValidValues for the given ValidValue subclass.
 java.util.Collection<ValidValue> findEnabled(java.lang.Class subclass)
          Returns a collection of all enabled ValidValues for the given ValidValue subclass.
 java.util.Collection<java.lang.String> getValueListTypes()
          Returns a collection of existing value list types.
 void remove(ValidValue validValue)
          Removes the given valid value from the database.
 ValidValue save(ValidValue validValue)
          Creates or updates the given ValidValue object to the database.
 

Method Detail

save

@Transactional(rollbackFor=ConveloException.class)
ValidValue save(ValidValue validValue)
                throws ConveloException
Creates or updates the given ValidValue object to the database. This is a generic service method to be used by all subclass types of ValidValue.

Parameters:
validValue -
Returns:
Saved ValidValue object
Throws:
ConveloException

find

ValidValue find(java.lang.Class subclass,
                java.lang.Long id)
                throws ConveloException
Returns the ValidValue object for the given subclass and id.

Parameters:
id -
Returns:
ValidValue
Throws:
ConveloException

findAll

java.util.Collection<ValidValue> findAll(java.lang.Class subclass)
                                         throws ConveloException
Returns a collection of all the ValidValues for the given ValidValue subclass. The collection contains all enabled and disabled values.

Parameters:
validValueClass -
Returns:
Collection of ValidValue objects
Throws:
ConveloException - Exception generated if subclass is not mapped in the validValueDAOs map

findEnabled

java.util.Collection<ValidValue> findEnabled(java.lang.Class subclass)
                                             throws ConveloException
Returns a collection of all enabled ValidValues for the given ValidValue subclass.

Parameters:
subclass -
Returns:
Throws:
ConveloException

getValueListTypes

java.util.Collection<java.lang.String> getValueListTypes()
Returns a collection of existing value list types.

Returns:
Collection of ValidValue classes

remove

void remove(ValidValue validValue)
            throws ConveloException
Removes the given valid value from the database.

Parameters:
validValue -
Throws:
ConveloException