railo.runtime.type.scope.storage.db
Class MySQL
java.lang.Object
railo.runtime.type.scope.storage.db.SQLExecutorSupport
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 |
MySQL
public MySQL()
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 contextcfid
- CFID of the current userapplicationName
- name of the current application contextdc
- Datasource Connection to usetype
- 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 contextcfid
- CFID of the current userapplicationName
- name of the current application contextdc
- Datasource Connection to usetype
- storage type (Scope.SCOPE_CLIENT,Scope.SCOPE_SESSION)data
- data to storetimeSpan
- 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 contextcfid
- CFID of the current userappName
- name of the current application contextdc
- Datasource Connection to usetype
- 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