Package org.dashbuilder.dataset.def
Class SQLDataSetDef
- java.lang.Object
-
- org.dashbuilder.dataset.def.DataSetDef
-
- org.dashbuilder.dataset.def.SQLDataSetDef
-
public class SQLDataSetDef extends DataSetDef
-
-
Field Summary
Fields Modifier and Type Field Description protected @NotNull(groups=SQLDataSetDefValidation.class) @Size(min=1,groups=SQLDataSetDefValidation.class) StringdataSourceprotected StringdbSchemaprotected @NotNull(groups=SQLDataSetDefDbSQLValidation.class) @Size(min=1,groups=SQLDataSetDefDbSQLValidation.class) StringdbSQLprotected @NotNull(groups=SQLDataSetDefDbTableValidation.class) @Size(min=1,groups=SQLDataSetDefDbTableValidation.class) StringdbTableprotected booleanestimateSize-
Fields inherited from class org.dashbuilder.dataset.def.DataSetDef
allColumnsEnabled, cacheEnabled, cacheMaxRows, columns, dataSetFilter, isPublic, name, patternMap, propertyMap, provider, pushEnabled, pushMaxSize, refreshAlways, refreshTime, UUID
-
-
Constructor Summary
Constructors Constructor Description SQLDataSetDef()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataSetDefclone()booleanequals(Object obj)IntegergetCacheMaxRows()StringgetDataSource()StringgetDbSchema()StringgetDbSQL()StringgetDbTable()inthashCode()booleanisCacheEnabled()booleanisEstimateSize()voidsetCacheEnabled(boolean cacheEnabled)voidsetCacheMaxRows(Integer cacheMaxRows)voidsetDataSource(String dataSource)voidsetDbSchema(String dbSchema)voidsetDbSQL(String dbSQL)voidsetDbTable(String dbTable)voidsetEstimateSize(boolean estimateSize)StringtoString()-
Methods inherited from class org.dashbuilder.dataset.def.DataSetDef
addColumn, clone, getColumnById, getColumns, getDataSetFilter, getName, getPattern, getProperty, getPropertyNames, getProvider, getPushMaxSize, getRefreshTime, getRefreshTimeAmount, getUUID, isAllColumnsEnabled, isPublic, isPushEnabled, isRefreshAlways, setAllColumnsEnabled, setColumns, setDataSetFilter, setName, setPattern, setProperty, setProvider, setPublic, setPushEnabled, setPushMaxSize, setRefreshAlways, setRefreshTime, setUUID
-
-
-
-
Field Detail
-
dataSource
@NotNull(groups=SQLDataSetDefValidation.class) @Size(min=1, groups=SQLDataSetDefValidation.class) protected @NotNull(groups=SQLDataSetDefValidation.class) @Size(min=1,groups=SQLDataSetDefValidation.class) String dataSource
-
dbSchema
protected String dbSchema
-
dbTable
@NotNull(groups=SQLDataSetDefDbTableValidation.class) @Size(min=1, groups=SQLDataSetDefDbTableValidation.class) protected @NotNull(groups=SQLDataSetDefDbTableValidation.class) @Size(min=1,groups=SQLDataSetDefDbTableValidation.class) String dbTable
-
dbSQL
@NotNull(groups=SQLDataSetDefDbSQLValidation.class) @Size(min=1, groups=SQLDataSetDefDbSQLValidation.class) protected @NotNull(groups=SQLDataSetDefDbSQLValidation.class) @Size(min=1,groups=SQLDataSetDefDbSQLValidation.class) String dbSQL
-
estimateSize
protected boolean estimateSize
-
-
Method Detail
-
getDataSource
public String getDataSource()
-
setDataSource
public void setDataSource(String dataSource)
-
getDbTable
public String getDbTable()
-
setDbTable
public void setDbTable(String dbTable)
-
getDbSchema
public String getDbSchema()
-
setDbSchema
public void setDbSchema(String dbSchema)
-
getDbSQL
public String getDbSQL()
-
setDbSQL
public void setDbSQL(String dbSQL)
-
isCacheEnabled
public boolean isCacheEnabled()
- Overrides:
isCacheEnabledin classDataSetDef
-
setCacheEnabled
public void setCacheEnabled(boolean cacheEnabled)
- Overrides:
setCacheEnabledin classDataSetDef
-
getCacheMaxRows
public Integer getCacheMaxRows()
- Overrides:
getCacheMaxRowsin classDataSetDef
-
setCacheMaxRows
public void setCacheMaxRows(Integer cacheMaxRows)
- Overrides:
setCacheMaxRowsin classDataSetDef
-
setEstimateSize
public void setEstimateSize(boolean estimateSize)
-
isEstimateSize
public boolean isEstimateSize()
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classDataSetDef
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDataSetDef
-
clone
public DataSetDef clone()
- Overrides:
clonein classDataSetDef
-
-