GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
sqlbuilder.SQLFrame Class Reference

SQL Frame class. More...

Inheritance diagram for sqlbuilder.SQLFrame:
Collaboration diagram for sqlbuilder.SQLFrame:

Public Member Functions

def __init__
 
def OnUniqueValues
 Get unique values. More...
 
def OnSampleValues
 Get sample values. More...
 
def OnAddColumn
 Add column name to the query. More...
 
def OnAddValue
 Add value. More...
 
def OnAddMark
 Add mark. More...
 
def GetSQLStatement
 Return SQL statement. More...
 
def CloseOnApply
 Return True if the dialog will be close on apply. More...
 
def OnText
 
def OnApply
 
def OnVerify
 Verify button pressed. More...
 
def OnClear
 Clear button pressed. More...
 
def OnClose
 Close button pressed. More...
 

Data Fields

 parent
 
 evtHandler
 
 vectmap
 
 mapset
 
 layer
 
 dbInfo
 
 tablename
 
 database
 
 qtype
 
 colvalues
 
 panel
 
 statusbar
 
 text_sql
 
 btn_clear
 
 btn_verify
 
 btn_apply
 
 btn_close
 
 btn_lv
 
 list_columns
 
 radio_cv
 
 list_values
 
 btn_unique
 
 btn_uniquesample
 
 close_onapply
 

Detailed Description

SQL Frame class.

Definition at line 37 of file sqlbuilder.py.

Constructor & Destructor Documentation

def sqlbuilder.SQLFrame.__init__ (   self,
  parent,
  title,
  vectmap,
  id = wx.ID_ANY,
  layer = 1,
  qtype = "select",
  evtHandler = None 
)

Definition at line 40 of file sqlbuilder.py.

Member Function Documentation

def sqlbuilder.SQLFrame.CloseOnApply (   self)

Return True if the dialog will be close on apply.

Definition at line 391 of file sqlbuilder.py.

def sqlbuilder.SQLFrame.GetSQLStatement (   self)

Return SQL statement.

Definition at line 387 of file sqlbuilder.py.

def sqlbuilder.SQLFrame.OnAddColumn (   self,
  event 
)

Add column name to the query.

Definition at line 307 of file sqlbuilder.py.

References sqlbuilder.SQLFrame._add().

def sqlbuilder.SQLFrame.OnAddMark (   self,
  event 
)

Add mark.

Definition at line 337 of file sqlbuilder.py.

References sqlbuilder.SQLFrame._add().

def sqlbuilder.SQLFrame.OnAddValue (   self,
  event 
)
def sqlbuilder.SQLFrame.OnClear (   self,
  event 
)

Clear button pressed.

Definition at line 429 of file sqlbuilder.py.

References sqlbuilder.SQLFrame.tablename.

def sqlbuilder.SQLFrame.OnClose (   self,
  event 
)

Close button pressed.

Definition at line 436 of file sqlbuilder.py.

References sqlbuilder.SQLFrame.evtHandler.

Referenced by dialogs.GroupDialog.OnOk().

def sqlbuilder.SQLFrame.OnSampleValues (   self,
  event 
)

Get sample values.

Definition at line 303 of file sqlbuilder.py.

References sqlbuilder.SQLFrame.OnUniqueValues().

def sqlbuilder.SQLFrame.OnText (   self,
  event 
)
Query string changed

Definition at line 395 of file sqlbuilder.py.

Referenced by widgets.BaseValidator.__init__().

def sqlbuilder.SQLFrame.OnUniqueValues (   self,
  event,
  justsample = False 
)
def sqlbuilder.SQLFrame.OnVerify (   self,
  event 
)

Verify button pressed.

Definition at line 412 of file sqlbuilder.py.

References sqlbuilder.SQLFrame.database, DATA.driver, gcmd.RunCommand(), and sqlbuilder.SQLFrame.tablename.

Field Documentation

sqlbuilder.SQLFrame.btn_apply

Definition at line 121 of file sqlbuilder.py.

sqlbuilder.SQLFrame.btn_clear

Definition at line 116 of file sqlbuilder.py.

sqlbuilder.SQLFrame.btn_close

Definition at line 123 of file sqlbuilder.py.

Referenced by dialogs.ImportDialog.doLayout().

sqlbuilder.SQLFrame.btn_lv

Definition at line 126 of file sqlbuilder.py.

sqlbuilder.SQLFrame.btn_unique

Definition at line 203 of file sqlbuilder.py.

sqlbuilder.SQLFrame.btn_uniquesample

Definition at line 206 of file sqlbuilder.py.

sqlbuilder.SQLFrame.btn_verify

Definition at line 118 of file sqlbuilder.py.

sqlbuilder.SQLFrame.close_onapply

Definition at line 226 of file sqlbuilder.py.

sqlbuilder.SQLFrame.colvalues

Definition at line 65 of file sqlbuilder.py.

sqlbuilder.SQLFrame.database
sqlbuilder.SQLFrame.dbInfo

Definition at line 60 of file sqlbuilder.py.

Referenced by colorrules.VectorColorTable.OnLayerSelection().

sqlbuilder.SQLFrame.evtHandler

Definition at line 48 of file sqlbuilder.py.

Referenced by sqlbuilder.SQLFrame.OnApply(), and sqlbuilder.SQLFrame.OnClose().

sqlbuilder.SQLFrame.list_columns

Definition at line 175 of file sqlbuilder.py.

sqlbuilder.SQLFrame.list_values

Definition at line 197 of file sqlbuilder.py.

sqlbuilder.SQLFrame.mapset

Definition at line 56 of file sqlbuilder.py.

sqlbuilder.SQLFrame.qtype

Definition at line 64 of file sqlbuilder.py.

sqlbuilder.SQLFrame.radio_cv

Definition at line 182 of file sqlbuilder.py.

sqlbuilder.SQLFrame.statusbar

Definition at line 74 of file sqlbuilder.py.

Referenced by goutput.PyStc.OnKeyPressed().

sqlbuilder.SQLFrame.tablename
sqlbuilder.SQLFrame.text_sql

Definition at line 102 of file sqlbuilder.py.

sqlbuilder.SQLFrame.vectmap

Definition at line 53 of file sqlbuilder.py.


The documentation for this class was generated from the following file: