com.wm.app.tn.db
Class RROperations

java.lang.Object
  extended by com.wm.app.tn.db.RROperations

public class RROperations
extends java.lang.Object


Field Summary
static java.lang.String LAST_CHANGE_ID
           
 
Constructor Summary
RROperations()
           
 
Method Summary
static java.lang.String add(RoutingRule r, java.lang.String changeId)
           
static boolean containsValue(java.lang.String id, java.lang.String[] ids)
           
static java.lang.String delete(java.lang.String[] ruleIds, java.lang.String changeId, int[] indexes)
           
static java.lang.String getLastChangeId()
           
static int getMaxRuleIndex()
           
static com.wm.data.IData getMetaDataList()
           
static java.lang.String getSessionId()
           
static java.lang.String getUser()
           
static boolean isListCurrent(java.lang.StringBuffer changeUser)
           
static void listModified(java.sql.Connection conn, java.lang.String changeId, java.lang.String changeUser, java.lang.String changeSession)
           
static RoutingRuleList loadAll()
           
static java.lang.String move(java.lang.String[][] rules, int insertAt, java.lang.String changeId)
           
static void populateNames(RoutingRule r)
           
static java.util.LinkedList<java.lang.String> queryByName(java.sql.Connection conn, java.lang.String name)
           
static java.util.LinkedList<java.lang.String> queryByName(java.lang.String name)
           
static int saveAll(RoutingRuleList sched)
           
static RoutingRuleList simpleRuleNameSearch(java.lang.String ruleName)
           
static boolean update(RoutingRule r)
           
static boolean updateStatus(RoutingRule rule)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LAST_CHANGE_ID

public static java.lang.String LAST_CHANGE_ID
Constructor Detail

RROperations

public RROperations()
Method Detail

add

public static java.lang.String add(RoutingRule r,
                                   java.lang.String changeId)
                            throws java.sql.SQLException,
                                   java.io.IOException,
                                   StaleRuleListException
Throws:
java.sql.SQLException
java.io.IOException
StaleRuleListException

update

public static boolean update(RoutingRule r)
                      throws java.sql.SQLException,
                             java.io.IOException,
                             RoutingException
Throws:
java.sql.SQLException
java.io.IOException
RoutingException

updateStatus

public static boolean updateStatus(RoutingRule rule)
                            throws java.sql.SQLException,
                                   java.io.IOException,
                                   RoutingException
Throws:
java.sql.SQLException
java.io.IOException
RoutingException

delete

public static java.lang.String delete(java.lang.String[] ruleIds,
                                      java.lang.String changeId,
                                      int[] indexes)
                               throws java.sql.SQLException,
                                      RoutingException,
                                      StaleRuleListException
Throws:
java.sql.SQLException
RoutingException
StaleRuleListException

move

public static java.lang.String move(java.lang.String[][] rules,
                                    int insertAt,
                                    java.lang.String changeId)
                             throws java.sql.SQLException,
                                    StaleRuleListException
Throws:
java.sql.SQLException
StaleRuleListException

getMetaDataList

public static com.wm.data.IData getMetaDataList()
                                         throws java.sql.SQLException,
                                                RoutingException
Throws:
java.sql.SQLException
RoutingException

saveAll

public static int saveAll(RoutingRuleList sched)
                   throws java.sql.SQLException,
                          java.io.IOException
Throws:
java.sql.SQLException
java.io.IOException

getMaxRuleIndex

public static int getMaxRuleIndex()
                           throws java.sql.SQLException,
                                  java.io.IOException
Throws:
java.sql.SQLException
java.io.IOException

loadAll

public static RoutingRuleList loadAll()
                               throws java.sql.SQLException,
                                      java.io.IOException
Throws:
java.sql.SQLException
java.io.IOException

simpleRuleNameSearch

public static RoutingRuleList simpleRuleNameSearch(java.lang.String ruleName)
                                            throws java.sql.SQLException,
                                                   java.io.IOException
Throws:
java.sql.SQLException
java.io.IOException

isListCurrent

public static boolean isListCurrent(java.lang.StringBuffer changeUser)
                             throws java.sql.SQLException
Throws:
java.sql.SQLException

listModified

public static void listModified(java.sql.Connection conn,
                                java.lang.String changeId,
                                java.lang.String changeUser,
                                java.lang.String changeSession)
                         throws java.sql.SQLException
Throws:
java.sql.SQLException

getLastChangeId

public static java.lang.String getLastChangeId()
                                        throws RoutingException,
                                               java.sql.SQLException
Throws:
RoutingException
java.sql.SQLException

getUser

public static java.lang.String getUser()

getSessionId

public static java.lang.String getSessionId()

queryByName

public static java.util.LinkedList<java.lang.String> queryByName(java.lang.String name)
                                                          throws java.sql.SQLException,
                                                                 java.io.IOException
Throws:
java.sql.SQLException
java.io.IOException

queryByName

public static java.util.LinkedList<java.lang.String> queryByName(java.sql.Connection conn,
                                                                 java.lang.String name)
                                                          throws java.sql.SQLException,
                                                                 java.io.IOException
Throws:
java.sql.SQLException
java.io.IOException

containsValue

public static boolean containsValue(java.lang.String id,
                                    java.lang.String[] ids)

populateNames

public static void populateNames(RoutingRule r)