com.ibm.commerce.rules
Class RulesSystemDataModelEjbImpl

java.lang.Object
  |
  +--com.ibm.commerce.rules.RulesSystemDataModel
        |
        +--com.ibm.commerce.rules.RulesSystemDataModelEjbImpl

public class RulesSystemDataModelEjbImpl
extends RulesSystemDataModel

An EJB-based implementation of the RulesSystemDataModel.


Fields inherited from class com.ibm.commerce.rules.RulesSystemDataModel
COPYRIGHT
 
Constructor Summary
RulesSystemDataModelEjbImpl()
           
 
Method Summary
 boolean commitRuleServerConfiguration(RuleServerConfiguration aRuleServerConfiguration)
          Commits the specified rule server configuration to this data model's persistent store.
 boolean commitRuleServiceConfiguration(RuleServiceConfiguration aRuleServiceConfiguration)
          Commits the specified rule service configuration to this data model's persistent store.
 void commitRuleServiceStatus(java.lang.String aServerName, RuleServiceKey aServiceKey, java.lang.String aCloneName, RuleServiceStatusCode aStatusCode)
          commitRuleServiceStatus method comment.
 int countRuleServiceConfigurations()
          countRuleServiceConfigurations method comment.
 int countRuleServiceConfigurationsInServer(java.lang.String aServerName)
          countRuleServiceConfigurationsInServer method comment.
 void eachRuleServiceConfiguration(RuleServiceConfigurationBlock command)
          eachRuleServiceConfiguration method comment.
 void eachRuleServiceConfigurationInServer(java.lang.String aServerName, RuleServiceConfigurationBlock command)
          eachRuleServiceConfigurationInServer method comment.
protected  java.lang.Integer getRuleServiceId(java.lang.String aServerName, RuleServiceKey aServiceKey)
           
 RuleServerConfiguration lookupRuleServerConfiguration(java.lang.String aServerName)
          lookupRuleServerConfiguration method comment.
 RuleServiceConfiguration lookupRuleServiceConfiguration(java.lang.String aServerName, RuleServiceKey aRuleServiceKey)
          lookupRuleServiceConfiguration method comment.
 RuleServiceStatus lookupRuleServiceStatus(java.lang.String aServerName, RuleServiceKey aServiceKey)
          lookupRuleServiceStatus method comment.
 void removeRuleServerConfiguration(java.lang.String aServerName)
          removeRuleServerConfiguration method comment.
 void removeRuleServiceConfiguration(java.lang.String aServerName, RuleServiceKey aRuleServiceKey)
          removeRuleServiceConfiguration method comment.
 void removeRuleServiceConfigurations(RuleServiceConfigurationFilter filter)
          removeRuleServiceConfigurations method comment.
 boolean ruleServerConfigurationExists(java.lang.String aServerName)
          ruleServerConfigurationExists method comment.
protected  boolean ruleServiceConfigurationExists(RuleServiceConfiguration aRuleServiceConfiguration)
          ruleServiceConfigurationExists method comment.
 boolean ruleServiceConfigurationExists(java.lang.String aServerName, RuleServiceKey aServiceKey)
          ruleServiceConfigurationExists method comment.
 boolean ruleServiceStatusExists(java.lang.String aServerName, RuleServiceKey aServiceKey)
          ruleServiceStatusExists method comment.
 
Methods inherited from class com.ibm.commerce.rules.RulesSystemDataModel
createBlazeRuleServiceConfiguration, getInstance, reset, ruleServerConfigurationExists
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RulesSystemDataModelEjbImpl

public RulesSystemDataModelEjbImpl()
Method Detail

commitRuleServerConfiguration

public boolean commitRuleServerConfiguration(RuleServerConfiguration aRuleServerConfiguration)
                                      throws RulesSystemDataModelException
Commits the specified rule server configuration to this data model's persistent store.
Overrides:
commitRuleServerConfiguration in class RulesSystemDataModel
Returns:
true if a new persistent object was created; false if one was only updated.

commitRuleServiceConfiguration

public boolean commitRuleServiceConfiguration(RuleServiceConfiguration aRuleServiceConfiguration)
                                       throws RulesSystemDataModelException,
                                              RuleServerConfigurationNotFoundException
Commits the specified rule service configuration to this data model's persistent store.
Overrides:
commitRuleServiceConfiguration in class RulesSystemDataModel
Returns:
true if a new persistent object was created; false if one was only updated.

commitRuleServiceStatus

public void commitRuleServiceStatus(java.lang.String aServerName,
                                    RuleServiceKey aServiceKey,
                                    java.lang.String aCloneName,
                                    RuleServiceStatusCode aStatusCode)
commitRuleServiceStatus method comment.
Overrides:
commitRuleServiceStatus in class RulesSystemDataModel
Following copied from class: com.ibm.commerce.rules.RulesSystemDataModel
Parameters:
aServerName - The name of the rule server to which the rule service belongs.
aServiceKey - The identifying key of the rule service.
aCloneName - The name of the clone for which the rule service status is to be reported.
aStatusCode - The status to report for the rule service.
Throws:
RuleServerConfigurationNotFoundException - Indicates that the rule server configuration for the rule server to which the specified rule service belongs does not exist.

countRuleServiceConfigurations

public int countRuleServiceConfigurations()
countRuleServiceConfigurations method comment.
Overrides:
countRuleServiceConfigurations in class RulesSystemDataModel

countRuleServiceConfigurationsInServer

public int countRuleServiceConfigurationsInServer(java.lang.String aServerName)
                                           throws RulesSystemDataModelException
countRuleServiceConfigurationsInServer method comment.
Overrides:
countRuleServiceConfigurationsInServer in class RulesSystemDataModel
Following copied from class: com.ibm.commerce.rules.RulesSystemDataModel
Parameters:
aServerName - The name of a rule server.

eachRuleServiceConfiguration

public void eachRuleServiceConfiguration(RuleServiceConfigurationBlock command)
                                  throws RulesSystemDataModelException
eachRuleServiceConfiguration method comment.
Overrides:
eachRuleServiceConfiguration in class RulesSystemDataModel
Following copied from class: com.ibm.commerce.rules.RulesSystemDataModel
Parameters:
command - A block of code to execute.
See Also:
RuleServiceConfigurationBlock

eachRuleServiceConfigurationInServer

public void eachRuleServiceConfigurationInServer(java.lang.String aServerName,
                                                 RuleServiceConfigurationBlock command)
                                          throws RulesSystemDataModelException
eachRuleServiceConfigurationInServer method comment.
Overrides:
eachRuleServiceConfigurationInServer in class RulesSystemDataModel
Following copied from class: com.ibm.commerce.rules.RulesSystemDataModel
Parameters:
aServerName - The name of a rule server.
command - A block of code to execute.
See Also:
RuleServiceConfigurationBlock

getRuleServiceId

protected java.lang.Integer getRuleServiceId(java.lang.String aServerName,
                                             RuleServiceKey aServiceKey)
                                      throws java.rmi.RemoteException,
                                             javax.naming.NamingException,
                                             javax.ejb.CreateException,
                                             javax.ejb.FinderException

lookupRuleServerConfiguration

public RuleServerConfiguration lookupRuleServerConfiguration(java.lang.String aServerName)
                                                      throws RulesSystemDataModelException,
                                                             RuleServerConfigurationNotFoundException
lookupRuleServerConfiguration method comment.
Overrides:
lookupRuleServerConfiguration in class RulesSystemDataModel
Following copied from class: com.ibm.commerce.rules.RulesSystemDataModel
Throws:
RuleServerConfigurationNotFoundException - Indicates that the rule server configuration does not exist.

lookupRuleServiceConfiguration

public RuleServiceConfiguration lookupRuleServiceConfiguration(java.lang.String aServerName,
                                                               RuleServiceKey aRuleServiceKey)
                                                        throws RuleServiceConfigurationNotFoundException,
                                                               RulesSystemDataModelException
lookupRuleServiceConfiguration method comment.
Overrides:
lookupRuleServiceConfiguration in class RulesSystemDataModel
Following copied from class: com.ibm.commerce.rules.RulesSystemDataModel
Throws:
RuleServerConfigurationNotFoundException - Indicates that the rule server configuration does not exist.
RuleServiceConfigurationNotFoundException - Indicates that the rule service configuration does not exist in the specified rule server.

lookupRuleServiceStatus

public RuleServiceStatus lookupRuleServiceStatus(java.lang.String aServerName,
                                                 RuleServiceKey aServiceKey)
                                          throws RuleServiceConfigurationNotFoundException,
                                                 RuleServerConfigurationNotFoundException,
                                                 RulesSystemDataModelException
lookupRuleServiceStatus method comment.
Overrides:
lookupRuleServiceStatus in class RulesSystemDataModel
Following copied from class: com.ibm.commerce.rules.RulesSystemDataModel
Throws:
RuleServerConfigurationNotFoundException - Indicates that the rule server configuration does not exist.
RuleServiceConfigurationNotFoundException - Indicates that the rule service configuration does not exist in the specified rule server.

removeRuleServerConfiguration

public void removeRuleServerConfiguration(java.lang.String aServerName)
                                   throws RulesSystemDataModelException
removeRuleServerConfiguration method comment.
Overrides:
removeRuleServerConfiguration in class RulesSystemDataModel

removeRuleServiceConfiguration

public void removeRuleServiceConfiguration(java.lang.String aServerName,
                                           RuleServiceKey aRuleServiceKey)
                                    throws RulesSystemDataModelException,
                                           RuleServiceConfigurationNotFoundException
removeRuleServiceConfiguration method comment.
Overrides:
removeRuleServiceConfiguration in class RulesSystemDataModel
Following copied from class: com.ibm.commerce.rules.RulesSystemDataModel
Throws:
RuleServerConfigurationNotFoundException - Indicates that the rule server configuration does not exist.
RuleServiceConfigurationNotFoundException - Indicates that the rule service configuration does not exist in the specified rule server.

removeRuleServiceConfigurations

public void removeRuleServiceConfigurations(RuleServiceConfigurationFilter filter)
                                     throws RulesSystemDataModelException
removeRuleServiceConfigurations method comment.
Overrides:
removeRuleServiceConfigurations in class RulesSystemDataModel

ruleServerConfigurationExists

public boolean ruleServerConfigurationExists(java.lang.String aServerName)
                                      throws RulesSystemDataModelException
ruleServerConfigurationExists method comment.
Overrides:
ruleServerConfigurationExists in class RulesSystemDataModel

ruleServiceConfigurationExists

protected boolean ruleServiceConfigurationExists(RuleServiceConfiguration aRuleServiceConfiguration)
                                          throws RulesSystemDataModelException
ruleServiceConfigurationExists method comment.

ruleServiceConfigurationExists

public boolean ruleServiceConfigurationExists(java.lang.String aServerName,
                                              RuleServiceKey aServiceKey)
                                       throws RulesSystemDataModelException
ruleServiceConfigurationExists method comment.
Overrides:
ruleServiceConfigurationExists in class RulesSystemDataModel

ruleServiceStatusExists

public boolean ruleServiceStatusExists(java.lang.String aServerName,
                                       RuleServiceKey aServiceKey)
ruleServiceStatusExists method comment.
Overrides:
ruleServiceStatusExists in class RulesSystemDataModel