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

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

public class Ansi92
extends SQLExecutorSupport


Field Summary
static String PREFIX
           
 
Constructor Summary
Ansi92()
           
 
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 applicationName, 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
 

Field Detail

PREFIX

public static final String PREFIX
See Also:
Constant Field Values
Constructor Detail

Ansi92

public Ansi92()
Method Detail

select

public Query select(Config config,
                    String cfid,
                    String applicationName,
                    DatasourceConnection dc,
                    int type,
                    Log log,
                    boolean createTableIfNotExist)
             throws PageException
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

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 applicationName,
                   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
applicationName - 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
Throws:
PageException


Copyright © 2012 Railo