Package com.stimulsoft.report.dictionary
Class StiDataColumn
java.lang.Object
com.stimulsoft.report.dictionary.StiDataColumn
- All Implemented Interfaces:
IStiJsonReportObject,IStiSerializable,IStiSerializableToString,IStiName,IStiInherited
- Direct Known Subclasses:
StiCalcDataColumn
public class StiDataColumn
extends Object
implements IStiSerializable, IStiSerializableToString, IStiName, IStiInherited, IStiJsonReportObject
-
Constructor Summary
ConstructorsConstructorDescriptionby serializing.StiDataColumn(String name, String alias, StiSystemType systemType) Creates a new object of the type StiDataColumn.StiDataColumn(String nameInSource, String name, String alias, StiSystemType systemType) Creates a new object of the type StiDataColumn. -
Method Summary
Modifier and TypeMethodDescriptionclone()voiddeserialize(String strObject) final StringgetAlias()Gets or sets an alias of column data.final StiBusinessObjectGets or sets the Business Object in what the column is described.static StiBusinessObjectGetBusinessObjectFromDataColumn(StiDictionary dictionary, String column) static StringGetColumnNameFromDataColumn(StiDictionary dictionary, String column) Returns column name from the full name of column.static StiDataColumngetDataColumnFromColumnName(StiDictionary dictionary, String column, boolean allowRelationName) static ObjectGetDataFromBusinessObject(StiDictionary dictionary, String column) static ObjectGetDataFromDataColumn(StiDictionary dictionary, String column) static ObjectGetDataFromDataColumn(StiDictionary dictionary, String column, boolean useRelationName) Returns object from the Data Source with full name of column.static StringgetDataFromDataColumnStr(StiDictionary dictionary, String column) getDataListFromDataColumn(StiDictionary dictionary, String column, Integer maxRows) Returns list of object from the Data Source with specified DataColumn.getDatasFromDataColumn(StiDictionary dictionary, String column, Integer maxRows) Returns array of object from the Data Source with specified DataColumn.static Object[]GetDatasFromDataColumn(StiDictionary dictionary, String column) Returns array of object from the Data Source with specified DataColumn.static Object[]getDatasFromDataSourceWithExpression(Object data, String expression, Integer maxRows, boolean firstPositionInDataSource) Returns array of objects from the Data Source or Business Object with specified expression.final StiDataSourceGets or sets the Data Source in what the column is described.static StiDataSourceGetDataSourceFromDataColumn(StiDictionary dictionary, String column) Returns Data Source from the full name of column.final intgetIndex()Gets or sets the index of a column in the collection of columns.final booleangetKey()final StringgetName()Gets or sets a column name.final StringGets or sets a original name.static StringGetRelationName(StiDictionary dictionary, StiDataSource dataSource, String relationName) final StiSystemTypeEnumgetType()Gets or sets the type of column data.protected StringbooleanisArray()static booleanIsDataPathExists(StiDictionary dictionary, String path) Returns true if the path exists in the Data Source or Business Object.booleanbooleanvoidLoadFromJsonObject(JSONObject jObject) final voidfinal voidvoidsetCaption(String caption) final voidsetCorrectName(String value) final voidsetDataSource(StiDataSource value) final voidsetIndex(int value) final voidsetInherited(boolean value) voidfinal voidfinal voidsetNameInSource(String value) voidsetSystemType(StiSystemType systemType) voidsetTypeOrUserType(String systemTypeName) voidsetTypeWasAutoDetected(boolean typeWasAutoDetected) voidsetTypeWasChanged(boolean typeWasChanged) toString()
-
Constructor Details
-
StiDataColumn
public StiDataColumn()by serializing. -
StiDataColumn
Creates a new object of the type StiDataColumn.- Parameters:
name- Name of column.alias- Alias of column.type- Type of data of column.
-
StiDataColumn
Creates a new object of the type StiDataColumn.- Parameters:
name- Name of column.alias- Alias of column.type- Type of data of column.
-
-
Method Details
-
isTypeWasChanged
public boolean isTypeWasChanged() -
setTypeWasChanged
public void setTypeWasChanged(boolean typeWasChanged) -
isTypeWasAutoDetected
public boolean isTypeWasAutoDetected() -
setTypeWasAutoDetected
public void setTypeWasAutoDetected(boolean typeWasAutoDetected) -
setSystemType
- Parameters:
systemType- the systemType to set
-
getKey
- Returns:
- the key
-
setKey
- Parameters:
key- the key to set
-
getName
Gets or sets a column name. -
setName
-
setCorrectName
-
getInherited
public final boolean getInherited()- Specified by:
getInheritedin interfaceIStiInherited
-
setInherited
public final void setInherited(boolean value) - Specified by:
setInheritedin interfaceIStiInherited
-
getDataSource
Gets or sets the Data Source in what the column is described. -
setDataSource
-
getBusinessObject
Gets or sets the Business Object in what the column is described. -
setBusinessObject
-
getIndex
public final int getIndex()Gets or sets the index of a column in the collection of columns. -
setIndex
public final void setIndex(int value) -
getNameInSource
Gets or sets a original name. -
setNameInSource
-
getAlias
Gets or sets an alias of column data. -
setAlias
-
getType
Gets or sets the type of column data. -
GetDataFromDataColumn
-
GetRelationName
public static String GetRelationName(StiDictionary dictionary, StiDataSource dataSource, String relationName) -
GetDataFromBusinessObject
-
GetBusinessObjectFromDataColumn
public static StiBusinessObject GetBusinessObjectFromDataColumn(StiDictionary dictionary, String column) -
IsDataPathExists
Returns true if the path exists in the Data Source or Business Object.- Parameters:
dictionary-path-- Returns:
-
GetDataFromDataColumn
public static Object GetDataFromDataColumn(StiDictionary dictionary, String column, boolean useRelationName) Returns object from the Data Source with full name of column.- Parameters:
dictionary- Dictionary which contain Data Source.column- Full name of column.- Returns:
- Returned object.
-
getColumnPath
-
GetDataSourceFromDataColumn
Returns Data Source from the full name of column.- Parameters:
dictionary- Dictionary which contain Data Source.column- Full name of column.- Returns:
- Data Source.
-
getDataListFromDataColumn
public static List<Object> getDataListFromDataColumn(StiDictionary dictionary, String column, Integer maxRows) Returns list of object from the Data Source with specified DataColumn.- Parameters:
dictionary- Dictionary which contain Data Source.column- Full name of column.maxRows- Returned list of object.- Returns:
-
getDatasFromDataColumn
public static ArrayList<Object> getDatasFromDataColumn(StiDictionary dictionary, String column, Integer maxRows) Returns array of object from the Data Source with specified DataColumn.- Parameters:
dictionary- Dictionary which contain Data Source.column- Full name of column.maxRows-- Returns:
- Returned array of object.
-
GetColumnNameFromDataColumn
Returns column name from the full name of column.- Parameters:
dictionary- Dictionary which contain Data Source.column- Full name of column.- Returns:
- Column name.
-
GetDatasFromDataColumn
Returns array of object from the Data Source with specified DataColumn.- Parameters:
dictionary- Dictionary which contain Data Source.column- Full name of column.- Returns:
- Returned array of object.
-
toString
-
serialize
- Specified by:
serializein interfaceIStiSerializableToString
-
getTypeOrUserType
-
deserialize
- Specified by:
deserializein interfaceIStiSerializableToString
-
setTypeOrUserType
-
getSystemType
- Returns:
- the systemType
-
getDataFromDataColumnStr
-
getCaption
- Returns:
- the caption
-
setCaption
- Parameters:
caption- the caption to set
-
getDataColumnFromColumnName
public static StiDataColumn getDataColumnFromColumnName(StiDictionary dictionary, String column, boolean allowRelationName) -
SaveToJsonObject
- Specified by:
SaveToJsonObjectin interfaceIStiJsonReportObject- Throws:
JSONException
-
LoadFromJsonObject
- Specified by:
LoadFromJsonObjectin interfaceIStiJsonReportObject- Throws:
JSONException
-
isArray
public boolean isArray() -
getDatasFromDataSourceWithExpression
public static Object[] getDatasFromDataSourceWithExpression(Object data, String expression, Integer maxRows, boolean firstPositionInDataSource) Returns array of objects from the Data Source or Business Object with specified expression.- Parameters:
data-expression-maxRows-firstPositionInDataSource-- Returns:
-
clone
-