palio.connectors
Class PostgreSQLConnector

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.PostgreSQLConnector
All Implemented Interfaces:
BasicPalioConnectable, DedicatedConnectionSupport, PalioConnectable, SQLConnectable, SQLConnectableExt, Constants

public class PostgreSQLConnector
extends SQLPalioConnector

PostgreSQL specific palio connector.

Author:
Krzysztof Synowiec

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
PostgreSQLConnector(java.lang.String url, java.util.Properties properties)
           
 
Method Summary
static boolean acceptsURL(java.lang.String URL)
           
 java.lang.Long getSequence(java.lang.String sequenceName)
           
 int getType()
           
 void init()
           
 boolean isPostgresVersionHigherOrEqual91()
           
 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, 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

PostgreSQLConnector

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

acceptsURL

public static final boolean acceptsURL(java.lang.String URL)
                                throws palio.PalioException
Throws:
palio.PalioException

init

public void init()
          throws palio.PalioException
Overrides:
init in class SQLConnector
Throws:
palio.PalioException

getType

public int getType()

needWriteLob

public boolean needWriteLob()

getSequence

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

isPostgresVersionHigherOrEqual91

public boolean isPostgresVersionHigherOrEqual91()