| Package | com.maclema.mysql |
| Class | public class MySqlService |
| Inheritance | MySqlService flash.events.EventDispatcher |
See also
| Property | Defined By | ||
|---|---|---|---|
| charSet : String = utf8
The character set to use for the connection
| MySqlService | ||
| connected : Boolean [read-only]
Returns true or false indicating is the MySqlService is currently connected. | MySqlService | ||
| database : String
The database to switch to once connected
| MySqlService | ||
| hostname : String
The hostname to connect to
| MySqlService | ||
| lastAffectedRows : int [read-only]
Returns the number of affected rows returned after a data manipulation query by calling send()
| MySqlService | ||
| lastInsertID : int [read-only]
Returns the last insert id returned after a data manipulation query by calling send()
| MySqlService | ||
| lastResult : ArrayCollection [read-only]
Returns the ArrayCollection of rows generated by ResultSet.getRows of the last ResultSet generated
by calling send()
| MySqlService | ||
| lastResultSet : ResultSet [read-only]
Returns the last ResultSet object generated by calling send()
| MySqlService | ||
| password : String
The password to authenticate with
| MySqlService | ||
| port : int = 3306
The port to connect to
| MySqlService | ||
| responder : IResponder
The responder to use for the mysql service
| MySqlService | ||
| username : String
The username to authenticate with
| MySqlService | ||
| Method | Defined By | ||
|---|---|---|---|
Constructs a new MySqlService object. | MySqlService | ||
connect():void
Open the MySql connection
| MySqlService | ||
disconnect():void
Closes the connection
| MySqlService | ||
send(queryObject:*):MySqlToken
Executes a query, you may pass in either an sql string or a Statement object. | MySqlService | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Dispatched when the connection to MySql is terminated | MySqlService | |||
| Dispatch when successfully connected to MySql | MySqlService | |||
| Dispatched when a data manipulation query successfully executes | MySqlService | |||
| Dispatch when a query successfully executes | MySqlService | |||
| Dispatched when an SQL error occurs. | MySqlService | |||
| charSet | property |
public var charSet:String = utf8The character set to use for the connection
| connected | property |
connected:Boolean [read-only] Returns true or false indicating is the MySqlService is currently connected.
This property can be used as the source for data binding.
public function get connected():Boolean| database | property |
public var database:StringThe database to switch to once connected
| hostname | property |
public var hostname:StringThe hostname to connect to
| lastAffectedRows | property |
lastAffectedRows:int [read-only] Returns the number of affected rows returned after a data manipulation query by calling send()
This property can be used as the source for data binding.
public function get lastAffectedRows():int| lastInsertID | property |
lastInsertID:int [read-only] Returns the last insert id returned after a data manipulation query by calling send()
This property can be used as the source for data binding.
public function get lastInsertID():int| lastResult | property |
lastResult:ArrayCollection [read-only] Returns the ArrayCollection of rows generated by ResultSet.getRows of the last ResultSet generated by calling send()
This property can be used as the source for data binding.
public function get lastResult():ArrayCollection| lastResultSet | property |
lastResultSet:ResultSet [read-only] Returns the last ResultSet object generated by calling send()
This property can be used as the source for data binding.
public function get lastResultSet():ResultSet| password | property |
public var password:StringThe password to authenticate with
| port | property |
public var port:int = 3306The port to connect to
| responder | property |
public var responder:IResponderThe responder to use for the mysql service
| username | property |
public var username:StringThe username to authenticate with
| MySqlService | () | Constructor |
public function MySqlService()Constructs a new MySqlService object.
| connect | () | method |
public function connect():voidOpen the MySql connection
| disconnect | () | method |
public function disconnect():voidCloses the connection
| send | () | method |
public function send(queryObject:*):MySqlTokenExecutes a query, you may pass in either an sql string or a Statement object.
Parameters
queryObject:* |
MySqlToken |
| close | Event |
flash.events.EventDispatched when the connection to MySql is terminated
| connect | Event |
flash.events.EventDispatch when successfully connected to MySql
| response | Event |
com.maclema.mysql.events.MySqlEventDispatched when a data manipulation query successfully executes
| result | Event |
| sqlError | Event |