Packagecom.ericfeminella.sql.dao
Classpublic class AbstractSQLDAO
SubclassesAbstractAsynchronousSQLDAO, AbstractSynchronizedSQLDAO

AbstractSQLDAO provides default abstract functionality which is common amongst all SQLDAO implementations



Protected Properties
 PropertyDefined by
  connection : SQLConnection
Defines the SQLConnection instance from which all SQLStatements are executed against.
AbstractSQLDAO
Public Methods
 MethodDefined by
  
AbstractSQLDAO(connection:SQLConnection)
AbstractSQLDAO constructor requires the databasePath from which the database connection is made.
AbstractSQLDAO
  
getConnection():SQLConnection
Retrieves a reference to the SQLConnection instance in which the AbstractSQLDAO object is connected.
AbstractSQLDAO
Protected Methods
 MethodDefined by
  
applyStatementParameters(statement:SQLStatement, ... parameters):void
Convenience method which executes a prepares SQL statement for execution against a database
AbstractSQLDAO
  
close(event:SQLEvent):void
Handles a SQLEvent.CLOSE event which is dispatched when a SQLConnection.close() method call completes successfully
AbstractSQLDAO
  
openFault(event:SQLEvent):void
Handles a SQLEvent.OPEN event which is dispatched when a SQLConnection.open() method call fails.
AbstractSQLDAO
  
openResult(event:SQLEvent):void
Handles a SQLEvent.OPEN event which is dispatched when a SQLConnection.open() method call completes successfully.
AbstractSQLDAO
Property detail
connectionproperty
protected var connection:SQLConnection

Defines the SQLConnection instance from which all SQLStatements are executed against.

Constructor detail
AbstractSQLDAO()constructor
public function AbstractSQLDAO(connection:SQLConnection)

AbstractSQLDAO constructor requires the databasePath from which the database connection is made.

Parameters
connection:SQLConnection — to which this instance is bound
Method detail
applyStatementParameters()method
protected function applyStatementParameters(statement:SQLStatement, ... parameters):void

Convenience method which executes a prepares SQL statement for execution against a database

Parameters
statement:SQLStatement — which is to be executed
 
... parameters — which are to be added to the statements parameters
close()method 
protected function close(event:SQLEvent):void

Handles a SQLEvent.CLOSE event which is dispatched when a SQLConnection.close() method call completes successfully

Parameters
event:SQLEvent — instance which was dispatched
getConnection()method 
public function getConnection():SQLConnection

Retrieves a reference to the SQLConnection instance in which the AbstractSQLDAO object is connected.

Returns
SQLConnectionSQLConnection instance
openFault()method 
protected function openFault(event:SQLEvent):void

Handles a SQLEvent.OPEN event which is dispatched when a SQLConnection.open() method call fails.

Parameters
event:SQLEvent — instance which was dispatched
openResult()method 
protected function openResult(event:SQLEvent):void

Handles a SQLEvent.OPEN event which is dispatched when a SQLConnection.open() method call completes successfully.

Parameters
event:SQLEvent — instance which was dispatched