springpython.database.factory
index
/home/gturnquist/spring-python-1.1.x/src/springpython/database/factory.py

Copyright 2006-2008 SpringSource (http://springsource.com), All Rights Reserved
 
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
 
    http://www.apache.org/licenses/LICENSE-2.0
 
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

 
Modules
       
re
sys
types

 
Classes
       
__builtin__.object
ConnectionFactory
MySQLConnectionFactory
PgdbConnectionFactory
SQLServerConnectionFactory
Sqlite3ConnectionFactory
cxoraConnectionFactory

 
class ConnectionFactory(__builtin__.object)
     Methods defined here:
__init__(self, acceptable_types)
commit(self)
connect(self)
convert_sql_binding(self, sql_query)
This is to help Java users migrate to Python. Java notation defines binding variables
points with '?', while Python uses '%s', and this method will convert from one format
to the other.
count_type(self)
getConnection(self)
in_transaction(self)
rollback(self)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class MySQLConnectionFactory(ConnectionFactory)
    
Method resolution order:
MySQLConnectionFactory
ConnectionFactory
__builtin__.object

Methods defined here:
__init__(self, username=None, password=None, hostname=None, db=None)
connect(self)
The import statement is delayed so the library is loaded ONLY if this factory is really used.
count_type(self)
in_transaction(self)

Methods inherited from ConnectionFactory:
commit(self)
convert_sql_binding(self, sql_query)
This is to help Java users migrate to Python. Java notation defines binding variables
points with '?', while Python uses '%s', and this method will convert from one format
to the other.
getConnection(self)
rollback(self)

Data descriptors inherited from ConnectionFactory:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class PgdbConnectionFactory(ConnectionFactory)
    
Method resolution order:
PgdbConnectionFactory
ConnectionFactory
__builtin__.object

Methods defined here:
__init__(self, user=None, password=None, host=None, database=None)
connect(self)
The import statement is delayed so the library is loaded ONLY if this factory is really used.
count_type(self)
in_transaction(self)

Methods inherited from ConnectionFactory:
commit(self)
convert_sql_binding(self, sql_query)
This is to help Java users migrate to Python. Java notation defines binding variables
points with '?', while Python uses '%s', and this method will convert from one format
to the other.
getConnection(self)
rollback(self)

Data descriptors inherited from ConnectionFactory:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class SQLServerConnectionFactory(ConnectionFactory)
    
Method resolution order:
SQLServerConnectionFactory
ConnectionFactory
__builtin__.object

Methods defined here:
__init__(self, **odbc_info)
connect(self)
The import statement is delayed so the library is loaded ONLY if this factory is really used.
convert_sql_binding(self, sql_query)
SQL Server expects parameters to be passed as question marks.
count_type(self)
in_transaction(self)

Methods inherited from ConnectionFactory:
commit(self)
getConnection(self)
rollback(self)

Data descriptors inherited from ConnectionFactory:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class Sqlite3ConnectionFactory(ConnectionFactory)
    
Method resolution order:
Sqlite3ConnectionFactory
ConnectionFactory
__builtin__.object

Methods defined here:
__init__(self, db=None)
connect(self)
The import statement is delayed so the library is loaded ONLY if this factory is really used.
convert_sql_binding(self, sql_query)
count_type(self)
in_transaction(self)

Methods inherited from ConnectionFactory:
commit(self)
getConnection(self)
rollback(self)

Data descriptors inherited from ConnectionFactory:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class cxoraConnectionFactory(ConnectionFactory)
    
Method resolution order:
cxoraConnectionFactory
ConnectionFactory
__builtin__.object

Methods defined here:
__init__(self, username=None, password=None, hostname=None, db=None)
connect(self)
The import statement is delayed so the library is loaded ONLY if this factory is really used.

Methods inherited from ConnectionFactory:
commit(self)
convert_sql_binding(self, sql_query)
This is to help Java users migrate to Python. Java notation defines binding variables
points with '?', while Python uses '%s', and this method will convert from one format
to the other.
count_type(self)
getConnection(self)
in_transaction(self)
rollback(self)

Data descriptors inherited from ConnectionFactory:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)