Package overit.geocall.basic.ui.xlsx
Class XlsxDBStatementView
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.basic.ui.xlsx.XlsxComponent
overit.geocall.basic.ui.xlsx.XlsxContainer
overit.geocall.basic.ui.xlsx.XlsxTableView
overit.geocall.basic.ui.xlsx.XlsxDBStatementView
- All Implemented Interfaces:
Serializable,XlsxElement,DBObjectMapper,Identified
This class extends
This class represent an Excel file can have more working sheets, in that case every sheet must have a different name and label, the title is optional.
Manages the rappresentation of the DBView.
XlsxTableView and implements DBObjectMapper.This class represent an Excel file can have more working sheets, in that case every sheet must have a different name and label, the title is optional.
Manages the rappresentation of the DBView.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class overit.geocall.basic.ui.xlsx.XlsxTableView
XlsxTableView.BreakUtility -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DBStatementprotected intprotected HashMapprotected intprotected intprotected DBObjectMapprotected IXlsxValueModificatorprotected ResultSetFields inherited from class overit.geocall.basic.ui.xlsx.XlsxTableView
_autoSize, _boldTitles, _breakColumns, _breakColumnsPos, _charSpan, _columnSize, _customSize, _dbv, _defaultStartRow, _enabledChild, _forcedLines4Row, _haveTotal, _lastCol, _lastRow, _lines4Row, _name, _rowHeight, _showTitles, _startCol, _startRow, _titleFont, _titleFontSize, _titleWrap, _vAutoSizeFields inherited from class overit.geocall.basic.ui.xlsx.XlsxComponent
_align, _cellFormat, _cellFormatClass, _font, _format, _valign, _warning -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intvoiddefine(String field, DBObjectMap dbom) voidgetContent(org.apache.poi.ss.usermodel.Sheet sheet, int startrow, int startCol) Implementation of the DBObjectMapper interface.Gets theDBStatement.protected ArrayListgetRow(ResultSet rs, ResultSetMetaData rsmd, int columnCont) booleanChecks the presence of a validDBObjectMapcontained in the instance.protected booleanisCellToAdd(ResultSet _rs) Deprecated.voidsetDataView(Object dbstatement) Needs a DBStatementvoidsetDBObjectMap(DBObjectMap objectmap) Implementation of the DBObjectMapper interface.voidsetMAXROWS(String s) Sets the max number of rows.voidSets the maximum limit of row for the sheetvoidsetXlsValuesModificator(IXlsxValueModificator valuesModificator) Sets theIXlsxValueModificator.Methods inherited from class overit.geocall.basic.ui.xlsx.XlsxTableView
addBreakFunctions, addCells, addCells, addNewColumn, addTestata, addTotali, autoSize, customSize, getCharSpan, getDataView, getDeafultStartRow, getEnabledChild, getHeaderFontColor, getHeadTitles, getIdentity, getLines4Row, getName, getOccupationCol, getOccupationRow, getRowHeight, getStartCol, getStartRow, getTitleFont, getTitleFontSize, getTitleWrap, getXlsxColumnPosByName, hasBoldTitles, haveTotal, initChilds, setAUTOSIZE, setBOLDTITLES, setBREAKCOLUMNS, setCHARSPAN, setColumnSizing, setCUSTOMSIZE, setHEADERFONTCOLOR, setHEADTITLES, setIdentity, setLINES4ROW, setNAME, setROWHEIGHT, setStartCol, setSTARTCOL, setStartRow, setSTARTROW, setTITLEFONT, setTITLEFONTSIZE, setTITLEWRAP, setVAUTOSIZEMethods inherited from class overit.geocall.basic.ui.xlsx.XlsxComponent
getAlign, getBgColor, getBoolean, getBorder, getBorder, getBorder, getBorderColor, getBorderStyle, getCellFormat, getCellStyle, getChildIterator, getChildSize, getColor, getColor, getComment, getDefault, getDocument, getFont, getFontSize, getKey, getLabel, getRegistryName, getSheet, getStyleName, getVAlign, getWarning, hasFontSize, initCellFormat, initChilds, isBold, isEnabled, isForcedBoldState, isForcedFontSize, isHidden, isLocked, isShrinkToFit, isWrap, onInit, setALIGN, setBGCOLOR, setBOLD, setBorder, setBORDER, setBorderColor, setBORDERCOLORRGB, setBorderStyle, setBORDERSTYLE, setCellFormat, setCELLFORMATCLASS, setCellStyle, setCOLOR, setCOMMENT, setDEFAULT, setENABLED, setFONT, setFONTSIZE, setFORMAT, setHIDDEN, setKEY, setLabel, setLABEL, setLOCKED, setREGISTRYNAME, setSheet, setSHRINKTOFIT, setSTYLENAME, setUseBGColor, setUSEBGCOLOR, setUSEDECIMALSPERCENTAGE, setUseHeadColor, setUSEHEADCOLOR, setVALIGN, setWRAP, useBGColor, useDecimalsPercentage, useHeaderColorMethods inherited from class overit.geocall.platform.ui.UINode
addChild, addChildText, getChildren, getNodeId, getParent, getRoot, getSchema, setNodeId, setParent, setSchemaMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface overit.geocall.basic.ui.xlsx.XlsxElement
getWarning
-
Field Details
-
_dbs
-
_dbStatementRow
protected int _dbStatementRow -
_objectmap
-
_poiValuesModificator
-
_resultSet
-
_definitions
-
_maxSheetRows
protected int _maxSheetRows -
_maxRows
protected int _maxRows
-
-
Constructor Details
-
XlsxDBStatementView
public XlsxDBStatementView()
-
-
Method Details
-
setMAXROWS
Sets the max number of rows.- Parameters:
s- The max number to set.
-
setMAXSHEETROWS
Sets the maximum limit of row for the sheet- Parameters:
s- Maximum number of row
-
getDBObjectMap
Implementation of the DBObjectMapper interface. Returns theDBObjectMapinside the instance.- Specified by:
getDBObjectMapin interfaceDBObjectMapper- Returns:
- The
DBObjectMapinside the instance.
-
getDBStatement
Gets theDBStatement.- Returns:
- The
DBStatement.
-
setDBObjectMap
Implementation of the DBObjectMapper interface. Sets theDBObjectMapinside the instance- Specified by:
setDBObjectMapin interfaceDBObjectMapper- Parameters:
objectmap- TheDBObjectMap
-
setDataView
Needs a DBStatement- Overrides:
setDataViewin classXlsxTableView- Parameters:
dbstatement- The DBStatement
-
define
-
setXlsValuesModificator
Sets theIXlsxValueModificator.- Parameters:
valuesModificator- TheIXlsxValueModificatorobject to set.
-
getContent
public void getContent(org.apache.poi.ss.usermodel.Sheet sheet, int startrow, int startCol) throws Exception - Specified by:
getContentin interfaceXlsxElement- Overrides:
getContentin classXlsxTableView- Throws:
Exception
-
addCells
protected int addCells(int startRow, int startCol, ResultSet rs, org.apache.poi.ss.usermodel.Sheet sheet) throws SQLException, Exception - Throws:
SQLExceptionException
-
getRow
protected ArrayList getRow(ResultSet rs, ResultSetMetaData rsmd, int columnCont) throws SQLException - Throws:
SQLException
-
haveDBObjectMap
public boolean haveDBObjectMap()Description copied from interface:DBObjectMapperChecks the presence of a validDBObjectMapcontained in the instance.- Specified by:
haveDBObjectMapin interfaceDBObjectMapper- Returns:
- true if the instance contains a map of object that is not null, false otherwise
-
isCellToAdd
Deprecated.Implement the interface IXlsValuesModificator and usesetXlsValuesModificator(overit.geocall.basic.ui.xlsx.IXlsxValueModificator)- Parameters:
_rs- Implement the interface IXlsValuesModificator and usesetXlsValuesModificator(overit.geocall.basic.ui.xlsx.IXlsxValueModificator)- Returns:
- Implement the interface IXlsValuesModificator and use
setXlsValuesModificator(overit.geocall.basic.ui.xlsx.IXlsxValueModificator) - Throws:
SQLException- Implement the interface IXlsValuesModificator and usesetXlsValuesModificator(overit.geocall.basic.ui.xlsx.IXlsxValueModificator)
-
setXlsValuesModificator(overit.geocall.basic.ui.xlsx.IXlsxValueModificator)