Class: HSqlTable

Inherits:
HSpreadFieldTable show all
Defined in:
lib/hsqlmanager/hsqltable.rb

Instance Attribute Summary collapse

Attributes inherited from HSpreadFieldTable

#decorator, #summaryList

Attributes inherited from HFieldTable

#allCols, #allRows

Instance Method Summary collapse

Methods inherited from HSpreadFieldTable

#addSummary, #dataByFieldName, #decorate, #evalDataByFieldName, #noname, #showSummary, test, test2

Methods inherited from HFieldTable

#[], #addFieldName, #columnCount, #columnCountByKey, #copyConstructor, #data, #dataByFieldName, #deleteRow, #each, #eachWithFieldName, #fields, #insertRow, #match, #method_missing, #row, #rowCount, #rowWithFieldName, #setCaption, #setData, #setDataByFieldName, #setIntoRecordByFieldName, #show, #showData, #showHeader, #showTotalizers, #sortBy, #sumByFieldName, test, test2, #valueByFieldName, #valueByType

Methods inherited from Array

#<, #addIfNotPresent, #column, #herbertsort, #herbertsort!, #hjoin, #hpartition, #show, #sortByList, #sortByPositionList, #swap, test, #to_js_format

Constructor Details

#initialize(tableName = nil, filter = "true", sortField = "id") ⇒ HSqlTable

Returns a new instance of HSqlTable.



8
9
10
11
12
13
# File 'lib/hsqlmanager/hsqltable.rb', line 8

def initialize(tableName = nil, filter = "true", sortField = "id")
    super()
    @tableName = tableName
    @filter = filter
    @sortField = sortField
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class HFieldTable

Instance Attribute Details

#filterObject

Returns the value of attribute filter.



6
7
8
# File 'lib/hsqlmanager/hsqltable.rb', line 6

def filter
  @filter
end

#sortFieldObject

Returns the value of attribute sortField.



6
7
8
# File 'lib/hsqlmanager/hsqltable.rb', line 6

def sortField
  @sortField
end

#tableNameObject

Returns the value of attribute tableName.



6
7
8
# File 'lib/hsqlmanager/hsqltable.rb', line 6

def tableName
  @tableName
end