Class DbViewUtil
- java.lang.Object
-
- com._1c.g5.v8.dt.metadata.dbview.util.DbViewUtil
-
public class DbViewUtil extends Object
Utility class for DBView definitions.
-
-
Constructor Summary
Constructors Constructor Description DbViewUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BasicDbViewDefsgetBasicDbViewDefs(MdObject mdObject)static List<DbViewFieldDef>getFields(org.eclipse.emf.ecore.EObject context, DbViewFieldDef field)Returns fields from dbviews provided by field types or empty list.static Collection<DbViewFieldDef>getFieldsByType(Type type, boolean skipTables)Returns fields list by type for all visible dbViews.static List<DbViewFieldDef>getFieldsByTypeDescription(org.eclipse.emf.ecore.EObject context, TypeDescription typeDescription)Returns fields provided by type description or empty list.static DbViewTableDefgetMainDbViewDef(TypeItem type)Returns tables list by type.static DbViewDefgetMainTable(MdObject mdObject)Get Main table forMdObjectstatic Collection<DbViewTableDef>getObjectDefs(Type type)static List<DbViewFieldDef>getRlsFields(Object input)Returns object fields for rls.
-
-
-
Method Detail
-
getFields
public static List<DbViewFieldDef> getFields(org.eclipse.emf.ecore.EObject context, DbViewFieldDef field)
Returns fields from dbviews provided by field types or empty list.- Parameters:
context- the context object to figure out execution scopefield- theDbViewFieldDef(notnull).- Returns:
- fields from dbviews provided by field types or empty list.
-
getFieldsByTypeDescription
public static List<DbViewFieldDef> getFieldsByTypeDescription(org.eclipse.emf.ecore.EObject context, TypeDescription typeDescription)
Returns fields provided by type description or empty list.- Parameters:
context- the context object to figure out execution scopetypeDescription- theTypeDescription(may benull)- Returns:
- fields from dbviews provided by field types or empty list.
-
getFieldsByType
public static Collection<DbViewFieldDef> getFieldsByType(Type type, boolean skipTables)
Returns fields list by type for all visible dbViews.- Parameters:
type- type (notnull)skipTables- if true all tabular section fields will be filtered out- Returns:
- fields list or empty list.
-
getObjectDefs
public static Collection<DbViewTableDef> getObjectDefs(Type type)
-
getMainTable
public static DbViewDef getMainTable(MdObject mdObject)
Get Main table forMdObject- Parameters:
mdObject- the source metadata object, cannot benull- Returns:
- the Main
Tablefor given mdObject, ornullif no table find
-
getBasicDbViewDefs
public static BasicDbViewDefs getBasicDbViewDefs(MdObject mdObject)
-
getMainDbViewDef
public static DbViewTableDef getMainDbViewDef(TypeItem type)
Returns tables list by type.- Parameters:
type- type (notnull)- Returns:
- tables, contained in type
-
getRlsFields
public static List<DbViewFieldDef> getRlsFields(Object input)
Returns object fields for rls.- Parameters:
input- the input object, cannot benull- Returns:
- the list rls fields
-
-