railo.runtime.type.scope.storage.db
Class MySQL

java.lang.Object
  extended by railo.runtime.type.scope.storage.db.SQLExecutorSupport
      extended by railo.runtime.type.scope.storage.db.MySQL
All Implemented Interfaces:
SQLExecutor

public class MySQL
extends SQLExecutorSupport


Constructor Summary
MySQL()
           
 
Method Summary
 void clean(Config config, DatasourceConnection dc, int type, StorageScopeEngine engine, DatasourceStorageScopeCleaner cleaner, StorageScopeListener listener, Log log)
           
 void delete(Config config, String cfid, String appName, DatasourceConnection dc, int type, Log log)
          deletes the data in the datasource for a specific user (CFID), if there is no data for this user nothing is happeing
 Query select(Config config, String cfid, String applicationName, DatasourceConnection dc, int type, Log log, boolean createTableIfNotExist)
          does a select statement on the datasource to get data
 void update(Config config, String cfid, String applicationName, DatasourceConnection dc, int type, Struct data, long timeSpan, Log log)
          updates the data in the datasource for a specific user (CFID), if the data not exist, a new record is created
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySQL

public MySQL()
Method Detail

select

public Query select(Config config,
                    String cfid,
                    String applicationName,
                    DatasourceConnection dc,
                    int type,
                    Log log,
                    boolean createTableIfNotExist)
             throws PageException,
                    SQLException
Description copied from interface: SQLExecutor
does a select statement on the datasource to get data

Parameters:
config - Config of the current context
cfid - CFID of the current user
applicationName - name of the current application context
dc - Datasource Connection to use
type - storage type (Scope.SCOPE_CLIENT,Scope.SCOPE_SESSION)
createTableIfNotExist - do create the table if not existing
Returns:
data matching criteria
Throws:
PageException
SQLException

update

public void update(Config config,
                   String cfid,
                   String applicationName,
                   DatasourceConnection dc,
                   int type,
                   Struct data,
                   long timeSpan,
                   Log log)
            throws PageException,
                   SQLException
Description copied from interface: SQLExecutor
updates the data in the datasource for a specific user (CFID), if the data not exist, a new record is created

Parameters:
config - Config of the current context
cfid - CFID of the current user
applicationName - name of the current application context
dc - Datasource Connection to use
type - storage type (Scope.SCOPE_CLIENT,Scope.SCOPE_SESSION)
data - data to store
timeSpan - timespan in millis
Throws:
PageException
SQLException

delete

public void delete(Config config,
                   String cfid,
                   String appName,
                   DatasourceConnection dc,
                   int type,
                   Log log)
            throws PageException,
                   SQLException
Description copied from interface: SQLExecutor
deletes the data in the datasource for a specific user (CFID), if there is no data for this user nothing is happeing

Parameters:
config - Config of the current context
cfid - CFID of the current user
appName - name of the current application context
dc - Datasource Connection to use
type - storage type (Scope.SCOPE_CLIENT,Scope.SCOPE_SESSION)
Throws:
PageException
SQLException

clean

public void clean(Config config,
                  DatasourceConnection dc,
                  int type,
                  StorageScopeEngine engine,
                  DatasourceStorageScopeCleaner cleaner,
                  StorageScopeListener listener,
                  Log log)
           throws PageException,
                  SQLException
Throws:
PageException
SQLException


Copyright © 2012 Railo