Packagecom.ericfeminella.sql.dao
Classpublic class AbstractSynchronizedSQLDAO
InheritanceAbstractSynchronizedSQLDAO Inheritance AbstractSQLDAO

AbstractSynchronizedSQLDAO provides an abstraction of a synchronized DAO SQL implementation.



Protected Properties
 PropertyDefined by
 Inheritedconnection : SQLConnection
Defines the SQLConnection instance from which all SQLStatements are executed against.
AbstractSQLDAO
Public Methods
 MethodDefined by
  
AbstractSynchronizedSQLDAO(connection:SQLConnection, databaseFile:File = null)
AbstractSynchronizedSQLDAO constructor requires the databasePath from which the database connection is to be made.
AbstractSynchronizedSQLDAO
 Inherited
getConnection():SQLConnection
Retrieves a reference to the SQLConnection instance in which the AbstractSQLDAO object is connected.
AbstractSQLDAO
Protected Methods
 MethodDefined by
 Inherited
applyStatementParameters(statement:SQLStatement, ... parameters):void
Convenience method which executes a prepares SQL statement for execution against a database
AbstractSQLDAO
 Inherited
close(event:SQLEvent):void
Handles a SQLEvent.CLOSE event which is dispatched when a SQLConnection.close() method call completes successfully
AbstractSQLDAO
  
executeStatement(statement:SQLStatement, ... parameters):SQLResult
Convenience method which executes a prepared SQL statement against a local SQL Lite database
AbstractSynchronizedSQLDAO
 Inherited
openFault(event:SQLEvent):void
Handles a SQLEvent.OPEN event which is dispatched when a SQLConnection.open() method call fails.
AbstractSQLDAO
 Inherited
openResult(event:SQLEvent):void
Handles a SQLEvent.OPEN event which is dispatched when a SQLConnection.open() method call completes successfully.
AbstractSQLDAO
Constructor detail
AbstractSynchronizedSQLDAO()constructor
public function AbstractSynchronizedSQLDAO(connection:SQLConnection, databaseFile:File = null)

AbstractSynchronizedSQLDAO constructor requires the databasePath from which the database connection is to be made.

Parameters
connection:SQLConnection — from which the SQLConnection is to be based
 
databaseFile:File (default = null)
Method detail
executeStatement()method
protected function executeStatement(statement:SQLStatement, ... parameters):SQLResult

Convenience method which executes a prepared SQL statement against a local SQL Lite database

Parameters
statement:SQLStatement — instance which is to be executed
 
... parameters — which are to be applied to the statement

Returns
SQLResult