palio.connectors
Class MySQLConnector

java.lang.Object
  extended by palio.connectors.Connector
      extended by palio.connectors.PooledConnector
          extended by palio.connectors.SQLConnector
              extended by palio.connectors.SQLPalioConnector
                  extended by palio.connectors.MySQLConnector
All Implemented Interfaces:
BasicPalioConnectable, DedicatedConnectionSupport, PalioConnectable, SQLConnectable, SQLConnectableExt, Constants

public class MySQLConnector
extends SQLPalioConnector

Author:
Grzegorz Tymiński, Radoslaw Osinski

Nested Class Summary
 
Nested classes/interfaces inherited from interface palio.connectors.SQLConnectable
SQLConnectable.QueryReader
 
Field Summary
 
Fields inherited from interface palio.connectors.SQLConnectable
DB2, GENERIC, HIBERNATE, HSQL, MSSQL, MYSQL, ORACLE, PALIO, POSTGRESQL, SYBASE
 
Fields inherited from interface palio.Constants
DECIMAL_ZERO, INTEGER_ONE, LONG_MINUS_ONE, LONG_ONE, LONG_THREE, LONG_TWO, LONG_ZERO, STRING_EMPTY
 
Constructor Summary
MySQLConnector(java.lang.String url, java.util.Properties properties)
           
 
Method Summary
static boolean acceptsURL(java.lang.String URL)
          Method tests if given URL fits MySQL connection.
 java.lang.Long getSequence(java.lang.String sequenceName)
           
 int getType()
           
 boolean needWriteLob()
           
 
Methods inherited from class palio.connectors.SQLPalioConnector
activateSession, addAccessPrivToPage, addObjectToFeature, addPrivToRole, addRoleToUser, addSessionParam, addUser, closeSession, createFeature, createFeature, createOrUpdateDatabaseForModule, createPriv, createRegion, createRole, createRole, delAccessPrivFromPage, deleteFeature, deleteObjectFromFeature, deletePriv, deleteRegion, deleteRole, getAllFeatures, getAllMedia, getAllObjects, getAllPages, getAllPrivs, getAllRoles, getFeature, getFeature, getFeaturesList, getFreeFeatureID, getFreePrivID, getFreeRegionID, getFreeRoleID, getFreeSessionID, getFreeUserID, getGenerator, getMedia, getMimeType, getObject, getPage, getPriv, getPriv, getPrivsList, getRegion, getRegion, getRole, getRole, getRolePrivs, getRolesList, getRolesRegionsForUser, getSession, getTreeType, getUser, getUser, getUsers, loadConfig, loadSessions, lockUser, putMedia, putObject, putSession, removeRoleFromUser, removeRoleFromUser, removeUser, remPrivFromRole, setConfig, setSessionRegion, setUserSession, unlockUser, updateDatabase, updateFeature, updateRole, updateSessionParam, updateUser, visitingPage
 
Methods inherited from class palio.connectors.SQLConnector
commit, debugInit, debugSave, dedicatedCommit, dedicatedRollback, dedicatedStart, dedicatedStop, executeFunction, executePL_SQL, executeProcedure, fastRead, getConnectorTypes, getInfo, getMetaData, getOutTypeParamForClass, getResultSet, getResultSetMetaData, info, init, isNoTransaction, isTransaction, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, readAsMaps, readAsMaps, readAsMaps, readAsMaps, readAsMaps, readAsMaps, readAsMaps, readLine, readLine, readLine, readLineAsMap, readLineAsMap, readLineAsMap, rollback, transactionStart, transactionStop, write, write, write, writeLob, writeLob
 
Methods inherited from class palio.connectors.PooledConnector
BusyChecker, clearThreadResources, close, DedicateChecker, FreeChecker, refresh
 
Methods inherited from class palio.connectors.Connector
getConnector, getInstance, getName, getUrl, init, setDedicatedLogConfiguration, setInstance
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface palio.connectors.SQLConnectable
commit, executeFunction, executePL_SQL, executeProcedure, fastRead, getMetaData, getName, getResultSet, getResultSetMetaData, getUrl, isNoTransaction, isTransaction, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, read, readAsMaps, readAsMaps, readAsMaps, readAsMaps, readAsMaps, readAsMaps, readAsMaps, readLine, readLine, readLine, readLineAsMap, readLineAsMap, readLineAsMap, rollback, transactionStart, transactionStop, write, write, write, writeLob, writeLob
 
Methods inherited from interface palio.connectors.BasicPalioConnectable
getName
 

Constructor Detail

MySQLConnector

public MySQLConnector(java.lang.String url,
                      java.util.Properties properties)
Method Detail

acceptsURL

public static final boolean acceptsURL(java.lang.String URL)
                                throws palio.PalioException
Method tests if given URL fits MySQL connection.

Parameters:
URL - URL to database.
Returns:
true if given URL connects with MySQL database or false if it does not connect to MySQL database.
Throws:
palio.PalioException

getType

public int getType()

getSequence

public java.lang.Long getSequence(java.lang.String sequenceName)
                           throws palio.PalioException
Throws:
palio.PalioException

needWriteLob

public boolean needWriteLob()
                     throws palio.PalioException
Throws:
palio.PalioException