Package | com.ericfeminella.sql.dao |
Class | public class AbstractSQLDAO |
Subclasses | AbstractAsynchronousSQLDAO, AbstractSynchronizedSQLDAO |
AbstractSQLDAO
provides default abstract functionality
which is common amongst all SQLDAO implementations
Property | Defined by | ||
---|---|---|---|
connection : SQLConnection
Defines the
SQLConnection instance from which all
SQLStatements are executed against. | AbstractSQLDAO |
Method | Defined 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 |
Method | Defined 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 |
connection | property |
protected var connection:SQLConnection
Defines the SQLConnection
instance from which all
SQLStatements
are executed against.
AbstractSQLDAO | () | constructor |
public function AbstractSQLDAO(connection:SQLConnection)
AbstractSQLDAO
constructor requires the databasePath from
which the database connection is made.
connection:SQLConnection — to which this instance is bound
|
applyStatementParameters | () | method |
protected function applyStatementParameters(statement:SQLStatement, ... parameters):void
Convenience method which executes a prepares SQL statement for execution against a database
Parametersstatement: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
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.
SQLConnection — SQLConnection instance
|
openFault | () | method |
protected function openFault(event:SQLEvent):void
Handles a SQLEvent.OPEN
event which is dispatched
when a SQLConnection.open()
method call fails.
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.
event:SQLEvent — instance which was dispatched
|