Class JoinsEditProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.qw.ui.editproviders.AbstractQueryWizardEditProvider
-
- com._1c.g5.v8.dt.qw.ui.editproviders.JoinsEditProvider
-
public class JoinsEditProvider extends AbstractQueryWizardEditProvider
Edit provider for select fields
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com._1c.g5.v8.dt.qw.ui.editproviders.AbstractQueryWizardEditProvider
AbstractQueryWizardEditProvider.MoveType
-
-
Field Summary
Fields Modifier and Type Field Description static int
SET_EXPRESSION
static int
SET_GROUP
static int
SET_GROUP_START
static int
SET_JOINTYPE
static int
SET_NEW_SOURCE_ALIAS
-
Fields inherited from class com._1c.g5.v8.dt.qw.ui.editproviders.AbstractQueryWizardEditProvider
source
-
-
Constructor Summary
Constructors Constructor Description JoinsEditProvider(QueryWizardSource source)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
autoLinkSource(QuerySchemaSource source, QueryWizardSource queryWizardSource)
Create auto join for sourcestatic QuerySchemaQuerySourceJoin
autoLinkWithSource(QuerySchemaSource src, QuerySchemaSource dest, QueryWizardSource queryWizardSource, boolean isCreateDefaultLink)
Create auto join between sourcesstatic QuerySchemaExpression
createSourcesAutoLink(QuerySchemaSource src, QuerySchemaSource dest, QueryWizardSource queryWizardsource, boolean isCreateDefaultLink)
Generate join condition for sourcesstatic QuerySchemaQueryGroupSourceJoin
getJoinGroup(QuerySchemaQuerySourceJoin join)
Get parent group for joinint
indexOf(Object value)
Looking index of valueboolean
move(Object value, Object targetValue)
Move itemboolean
remove(Object value)
Remove itemboolean
setItemData(int itemFuture, Object item, Object newValue)
-
-
-
Field Detail
-
SET_EXPRESSION
public static final int SET_EXPRESSION
- See Also:
- Constant Field Values
-
SET_JOINTYPE
public static final int SET_JOINTYPE
- See Also:
- Constant Field Values
-
SET_GROUP
public static final int SET_GROUP
- See Also:
- Constant Field Values
-
SET_GROUP_START
public static final int SET_GROUP_START
- See Also:
- Constant Field Values
-
SET_NEW_SOURCE_ALIAS
public static final int SET_NEW_SOURCE_ALIAS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JoinsEditProvider
public JoinsEditProvider(QueryWizardSource source)
- Parameters:
source
- QueryWizardSource
-
-
Method Detail
-
getJoinGroup
public static QuerySchemaQueryGroupSourceJoin getJoinGroup(QuerySchemaQuerySourceJoin join)
Get parent group for join- Parameters:
join
- - join- Returns:
- parent group or null
-
autoLinkSource
public static void autoLinkSource(QuerySchemaSource source, QueryWizardSource queryWizardSource)
Create auto join for source- Parameters:
source
- - query wizard sourcequeryWizardSource
-
-
autoLinkWithSource
public static QuerySchemaQuerySourceJoin autoLinkWithSource(QuerySchemaSource src, QuerySchemaSource dest, QueryWizardSource queryWizardSource, boolean isCreateDefaultLink)
Create auto join between sources- Parameters:
src
- root sourcedest
- destination sourcequeryWizardSource
-isCreateDefaultLink
- generate default join condition, if can't make auto join- Returns:
- new join
-
createSourcesAutoLink
public static QuerySchemaExpression createSourcesAutoLink(QuerySchemaSource src, QuerySchemaSource dest, QueryWizardSource queryWizardsource, boolean isCreateDefaultLink)
Generate join condition for sources- Parameters:
src
- root sourcedest
- destination sourcequeryWizardsource
-isCreateDefaultLink
- generate default join condition, if can't make auto join- Returns:
- join condition
-
remove
public boolean remove(Object value)
Description copied from class:AbstractQueryWizardEditProvider
Remove item- Overrides:
remove
in classAbstractQueryWizardEditProvider
- Parameters:
value
- - value which need to be removed- Returns:
- true if successfully else false
-
setItemData
public boolean setItemData(int itemFuture, Object item, Object newValue)
- Overrides:
setItemData
in classAbstractQueryWizardEditProvider
- Parameters:
itemFuture
- which item future changeitem
- item at which data need to changednewValue
- new future value- Returns:
- true if future was changed
-
move
public boolean move(Object value, Object targetValue)
Description copied from class:AbstractQueryWizardEditProvider
Move item- Overrides:
move
in classAbstractQueryWizardEditProvider
- Parameters:
value
- - value need to be movedtargetValue
- - target value- Returns:
- true if successfully else false
-
indexOf
public int indexOf(Object value)
Description copied from class:AbstractQueryWizardEditProvider
Looking index of value- Overrides:
indexOf
in classAbstractQueryWizardEditProvider
- Parameters:
value
- - value- Returns:
- index of value. Return -1 if value not found
-
-