Packagecom.maclema.mysql
Classpublic class Field
InheritanceField Inheritance Object

The Field class represents a MySql table column.



Public Methods
 MethodDefined By
  
Field(packet:ProxiedPacket, charSet:String)
Constructs a new Field instance by reading a Packet returned from MySql.
Field
  
getAsType():int
Returns an actionscript type identifier which is defined in MySql.AS3_TYPE_
Field
  
getCatalog():String
Catalog.
Field
  
Character set number
Field
  
getDatabase():String
Database identifier
Field
  
The number of positions after the decimal point
Field
  
getFlags():int
Possible flag values
Field
  
getLength():int
Length of column, according to the definition.
Field
  
getName():String
Column identifier after AS clase
Field
  
getRealName():String
Original column identifier
Field
  
getRealTable():String
Original table identifier
Field
  
getTable():String
The table identifier after the AS clause
Field
  
getType():int
The code for the column's data type
Field
Constructor Detail
Field()Constructor
public function Field(packet:ProxiedPacket, charSet:String)

Constructs a new Field instance by reading a Packet returned from MySql.

Parameters
packet:ProxiedPacket
 
charSet:String
Method Detail
getAsType()method
public function getAsType():int

Returns an actionscript type identifier which is defined in MySql.AS3_TYPE_

Returns
int
getCatalog()method 
public function getCatalog():String

Catalog. For 4.1, 5.0 and 5.1 the value is "def".

Returns
String
getCharacterSet()method 
public function getCharacterSet():int

Character set number

Returns
int
getDatabase()method 
public function getDatabase():String

Database identifier

Returns
String
getDecimals()method 
public function getDecimals():int

The number of positions after the decimal point

Returns
int
getFlags()method 
public function getFlags():int

Possible flag values

Returns
int
getLength()method 
public function getLength():int

Length of column, according to the definition. Also known as "display length". The value given here may be larger than the actual length, for example an instance of a VARCHAR(2) column may have only 1 character in it.

Returns
int
getName()method 
public function getName():String

Column identifier after AS clase

Returns
String
getRealName()method 
public function getRealName():String

Original column identifier

Returns
String
getRealTable()method 
public function getRealTable():String

Original table identifier

Returns
String
getTable()method 
public function getTable():String

The table identifier after the AS clause

Returns
String
getType()method 
public function getType():int

The code for the column's data type

Returns
int