Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.alicebot.server.core
Class DBMultiplexor  view DBMultiplexor download DBMultiplexor.java

java.lang.Object
  extended byorg.alicebot.server.core.Multiplexor
      extended byorg.alicebot.server.core.DBMultiplexor

public class DBMultiplexor
extends Multiplexor


Field Summary
private static org.alicebot.server.sql.pool.DbAccessRefsPoolMgr dbManager
           
private static java.lang.String ENC_UTF8
           
private static java.util.HashMap userCacheForBots
           
 
Fields inherited from class org.alicebot.server.core.Multiplexor
ASTERISK, avgResponseTime, EMPTY_STRING, HOST_NAME, INPUT, PREDICATE_EMPTY_DEFAULT, QUOTE_MARK, responseCount, SECRET_KEY, SHOW_CONSOLE, SHOW_MATCH_TRACE, SPACE, STAR, startTime, THAT, TOPIC, totalTime, USE_TARGETING, VALUE
 
Constructor Summary
DBMultiplexor()
           
 
Method Summary
 boolean changePassword(java.lang.String s, java.lang.String s1, java.lang.String s2, java.lang.String s3)
           
 boolean checkUser(java.lang.String s, java.lang.String s1, java.lang.String s2, java.lang.String s3)
           
private  boolean checkUserInDB(java.lang.String s, java.lang.String s1, java.lang.String s2)
           
 boolean createUser(java.lang.String s, java.lang.String s1, java.lang.String s2, java.lang.String s3)
           
 void initialize()
           
 java.lang.String loadPredicate(java.lang.String s, java.lang.String s1, java.lang.String s2)
           
 void savePredicate(java.lang.String s, java.lang.String s1, java.lang.String s2, java.lang.String s3)
           
 int useridCount(java.lang.String s)
           
 
Methods inherited from class org.alicebot.server.core.Multiplexor
addPulse, averageResponseTime, getInternalResponse, getResponse, pulse, queriesPerHour
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dbManager

private static org.alicebot.server.sql.pool.DbAccessRefsPoolMgr dbManager

userCacheForBots

private static java.util.HashMap userCacheForBots

ENC_UTF8

private static final java.lang.String ENC_UTF8
See Also:
Constant Field Values
Constructor Detail

DBMultiplexor

public DBMultiplexor()
Method Detail

initialize

public void initialize()
Overrides:
initialize in class Multiplexor

savePredicate

public void savePredicate(java.lang.String s,
                          java.lang.String s1,
                          java.lang.String s2,
                          java.lang.String s3)
Specified by:
savePredicate in class Multiplexor

loadPredicate

public java.lang.String loadPredicate(java.lang.String s,
                                      java.lang.String s1,
                                      java.lang.String s2)
                               throws NoSuchPredicateException
Specified by:
loadPredicate in class Multiplexor

createUser

public boolean createUser(java.lang.String s,
                          java.lang.String s1,
                          java.lang.String s2,
                          java.lang.String s3)
Specified by:
createUser in class Multiplexor

checkUser

public boolean checkUser(java.lang.String s,
                         java.lang.String s1,
                         java.lang.String s2,
                         java.lang.String s3)
Specified by:
checkUser in class Multiplexor

checkUserInDB

private boolean checkUserInDB(java.lang.String s,
                              java.lang.String s1,
                              java.lang.String s2)

changePassword

public boolean changePassword(java.lang.String s,
                              java.lang.String s1,
                              java.lang.String s2,
                              java.lang.String s3)
Specified by:
changePassword in class Multiplexor

useridCount

public int useridCount(java.lang.String s)
Specified by:
useridCount in class Multiplexor