Package overit.geocall.sql
Class IndexedDBView
java.lang.Object
overit.geocall.sql.DBView
overit.geocall.sql.IndexedDBView
- All Implemented Interfaces:
Serializable,JsonSerializable,DBFieldMapper,DBObjectMapper
This class manages the creation of an indexed DBView
- See Also:
-
Field Summary
Fields inherited from class overit.geocall.sql.DBView
_fieldmap, _objectmap, _shift, DELETED, FIRST_POS, INSERTED, KEEP_ALL, KEEP_FIRST, KEEP_LAST, noUndo, POS_DELETED, POS_INSERTED, POS_UPDATED, roData, roView, UPDATED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAppend the ResultSet to the DBViewvoidAppend a row as the last row of the DBViewvoidAppend a DBView to the current onevoidMakes the changes (insertions, updates and deletions) effectiveprotected voidbuildIndex(overit.geocall.sql.IndexedDBView.Index idx) voidBuild the indexesvoidcreateIndex(String indexName, String fieldName) Creates the indexvoiddelete(int i) Removes a row from the DBViewvoidDrop the indexbooleanReturnstrueif the auto build capability is enabled,falseotherwisevoidInsert a row into a specific position of the DBViewvoidInsert a row as the last row of the DBViewPuts an object to a field in a specific rowintSearch a valuevoidSets an object to a field in a specific rowvoidsetAutoBuild(boolean autoBuild) Sets the auto build capabilityvoidUpdates a row of the DBViewvoidUses the indexMethods inherited from class overit.geocall.sql.DBView
addColumn, addFilter, append0, applyFilterNotOrding, applyFilterOrding, calcRows, cols, defaultFilter, doInsert, empty, find, get, getAttribute, getAttributeNames, getDBFieldMap, getDBFields, getDBFields, getDBObjectMap, getFieldMap, getFieldPos, getFilter, getLongSet, getOrder, getOriginalMap, getOriginalRowList, getRowList, getRowMap, getRowMap, getRowMap, getShift, hasMore, haveDBFieldMap, haveDBObjectMap, isNoUndo, isRoData, isRoView, matchesFilter, matchesFilter, newBaseFields, orderRandom, putAttribute, removeAttribute, removeColumn, removeFilter, removeMapTags, removeOrder, renameColumn, resultingOperation, rows, seek, setDBFieldMap, setDBObjectMap, setFilter, setNoUndo, setOrder, setRoData, setRoView, setShift, toString, undoChanges
-
Constructor Details
-
IndexedDBView
Main constructor for the IndexedDBView- Parameters:
dbv- The DBView
-
-
Method Details
-
createIndex
Creates the index- Parameters:
indexName- The name of the indexfieldName- The name of the field
-
useIndex
Uses the index- Parameters:
indexName- The name of the index
-
seek
Search a value- Parameters:
value- The value to search- Returns:
- The position of the value
-
dropIndex
Drop the index- Parameters:
indexName- The name of the index
-
delete
public void delete(int i) Description copied from class:DBViewRemoves a row from the DBView -
insert
Description copied from class:DBViewInsert a row as the last row of the DBView -
insert
Description copied from class:DBViewInsert a row into a specific position of the DBView -
append
Description copied from class:DBViewAppend the ResultSet to the DBView- Overrides:
appendin classDBView- Parameters:
rs- The ResultSet to append- Throws:
SQLException- If a database access error occurs, or this method is called on a closed result set, anSQLExceptionis raised
-
append
Description copied from class:DBViewAppend a DBView to the current one -
append
Description copied from class:DBViewAppend a row as the last row of the DBView -
update
Description copied from class:DBViewUpdates a row of the DBView -
set
Description copied from class:DBViewSets an object to a field in a specific row -
put
Description copied from class:DBViewPuts an object to a field in a specific row -
setAutoBuild
public void setAutoBuild(boolean autoBuild) Sets the auto build capability- Parameters:
autoBuild- Boolean value indicating if the auto build capability should be enabled
-
getAutoBuild
public boolean getAutoBuild()Returnstrueif the auto build capability is enabled,falseotherwise- Returns:
trueif the auto build capability is enabled,falseotherwise
-
applyChanges
public void applyChanges()Description copied from class:DBViewMakes the changes (insertions, updates and deletions) effective- Overrides:
applyChangesin classDBView
-
buildIndex
protected void buildIndex(overit.geocall.sql.IndexedDBView.Index idx) -
buildIndexes
public void buildIndexes()Build the indexes
-