public class SqlScriptSaveOptions extends SaveOptions
| Constructor and Description |
|---|
SqlScriptSaveOptions()
Creates options for saving sql file.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAddBlankLineBetweenRows()
Insert blank line between each data.
|
boolean |
getCheckAllDataForColumnType()
Check all data to find columns' data type.
|
boolean |
getCheckIfTableExists()
Check if the table name exists before creating
|
SqlScriptColumnTypeMap |
getColumnTypeMap()
Gets the map of column type for different database.
|
boolean |
getCreateTable()
Indicates whether exporting sql of creating table.
|
CellArea |
getExportArea()
Gets the exporting range.
|
boolean |
getExportAsString()
Indicates whether exporting all data as string value.
|
java.lang.String |
getIdName()
Gets the name of id column.
|
int |
getOperatorType()
Gets the operator type of sql.
|
int |
getPrimaryKey()
Represents which column is primary key of the data table.
|
char |
getSeparator()
Gets character separator of sql script.
|
int[] |
getSheetIndexes()
Represents the indexes of exported sheets.
|
int |
getStartId()
Gets the start id.
|
java.lang.String |
getTableName()
Gets the table name.
|
boolean |
hasHeaderRow()
Indicates whether the range contains header row.
|
void |
setAddBlankLineBetweenRows(boolean value)
Insert blank line between each data.
|
void |
setCheckAllDataForColumnType(boolean value)
Check all data to find columns' data type.
|
void |
setCheckIfTableExists(boolean value)
Check if the table name exists before creating
|
void |
setColumnTypeMap(SqlScriptColumnTypeMap value)
Sets the map of column type for different database.
|
void |
setCreateTable(boolean value)
Indicates whether exporting sql of creating table.
|
void |
setExportArea(CellArea value)
Sets the exporting range.
|
void |
setExportAsString(boolean value)
Indicates whether exporting all data as string value.
|
void |
setHasHeaderRow(boolean value)
Indicates whether the range contains header row.
|
void |
setIdName(java.lang.String value)
Sets the name of id column.
|
void |
setOperatorType(int value)
Sets the operator type of sql.
|
void |
setPrimaryKey(int value)
Represents which column is primary key of the data table.
|
void |
setSeparator(char value)
Sets character separator of sql script.
|
void |
setSheetIndexes(int[] value)
Represents the indexes of exported sheets.
|
void |
setStartId(int value)
Sets the start id.
|
void |
setTableName(java.lang.String value)
Sets the table name.
|
getCachedFileFolder, getCheckExcelRestriction, getClearData, getCreateDirectory, getEncryptDocumentProperties, getMergeAreas, getRefreshChartCache, getSaveFormat, getSortExternalNames, getSortNames, getUpdateSmartArt, getValidateMergedAreas, getWarningCallback, setCachedFileFolder, setCheckExcelRestriction, setClearData, setCreateDirectory, setEncryptDocumentProperties, setMergeAreas, setRefreshChartCache, setSortExternalNames, setSortNames, setUpdateSmartArt, setValidateMergedAreas, setWarningCallbackpublic SqlScriptSaveOptions()
public boolean getCheckIfTableExists()
public void setCheckIfTableExists(boolean value)
public SqlScriptColumnTypeMap getColumnTypeMap()
public void setColumnTypeMap(SqlScriptColumnTypeMap value)
public boolean getCheckAllDataForColumnType()
Remarks
The default value is false, we only check the first row for performance. If this property is true and the columns contains mixed value type, the columns' type will be text.public void setCheckAllDataForColumnType(boolean value)
Remarks
The default value is false, we only check the first row for performance. If this property is true and the columns contains mixed value type, the columns' type will be text.public boolean getAddBlankLineBetweenRows()
Remarks
IfgetSeparator() is '\n' , it's better to set this property as true to increase readability.public void setAddBlankLineBetweenRows(boolean value)
Remarks
IfgetSeparator() is '\n' , it's better to set this property as true to increase readability.public char getSeparator()
Remarks
Only can be ' ' or '\n'. If thepublic void setSeparator(char value)
Remarks
Only can be ' ' or '\n'. If thepublic int getOperatorType()
public void setOperatorType(int value)
public int getPrimaryKey()
public void setPrimaryKey(int value)
public boolean getCreateTable()
public void setCreateTable(boolean value)
public java.lang.String getIdName()
Remarks
If this property is set , a column will be inserted with automatical increment int value.public void setIdName(java.lang.String value)
Remarks
If this property is set , a column will be inserted with automatical increment int value.public int getStartId()
Remarks
Only works whengetIdName() is set.public void setStartId(int value)
Remarks
Only works whengetIdName() is set.public java.lang.String getTableName()
public void setTableName(java.lang.String value)
public boolean getExportAsString()
public void setExportAsString(boolean value)
public int[] getSheetIndexes()
public void setSheetIndexes(int[] value)
public CellArea getExportArea()
public void setExportArea(CellArea value)
public boolean hasHeaderRow()
public void setHasHeaderRow(boolean value)
See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.