Class SourcesEditProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.qw.ui.editproviders.AbstractQueryWizardEditProvider
-
- com._1c.g5.v8.dt.qw.ui.editproviders.SourcesEditProvider
-
public class SourcesEditProvider extends AbstractQueryWizardEditProvider
Edit provider for sources
-
-
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
RENAME_TABLE
static int
REPLACE_TABLE
static int
SET_VIRTUAL_TABLE_PARAMETERS
static int
SET_VIRTUAL_TABLE_PARAMETERS_DSC
static int
TEMP_TABLE_FIELDS
static int
TEMP_TABLE_NAME
-
Fields inherited from class com._1c.g5.v8.dt.qw.ui.editproviders.AbstractQueryWizardEditProvider
source
-
-
Constructor Summary
Constructors Constructor Description SourcesEditProvider(QueryWizardSource source)
SourcesEditProvider(QueryWizardSource source, boolean needRefreshModelAfterAdd)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description QuerySchemaSource
add(Object item)
Add new valuestatic String
calcAlias(String startAlias, QueryWizardSource source)
Calculate unique source aliasstatic DbViewSelectDef
getVirtualTableForSource(QuerySchemaSource virtTable)
Get DbView for virtual tablestatic boolean
isFieldContainField(String fieldName1, String fieldName2)
Is field1 contain name of field2boolean
remove(Object value)
Remove itemvoid
removeAll()
Remove all itemsstatic boolean
removeNonexistentFields(QuerySchemaSource source, QueryWizardSource qwSource)
Remove nonexistent fields in source from querystatic boolean
removeNonexistentFields(QuerySchemaSource source, QueryWizardSource qwSource, List<?> fields)
Remove nonexistent fields in source from queryboolean
replace(Object oldValue, Object newValue)
Replace valueboolean
setItemData(int itemFuture, Object item, Object newValue)
-
Methods inherited from class com._1c.g5.v8.dt.qw.ui.editproviders.AbstractQueryWizardEditProvider
addAll, clearRemoveNodesAdapter, copy, copy, get, getSource, indexOf, isIndexValid, move, move, moveDown, moveUp, remove, set
-
-
-
-
Field Detail
-
SET_VIRTUAL_TABLE_PARAMETERS
public static final int SET_VIRTUAL_TABLE_PARAMETERS
- See Also:
- Constant Field Values
-
SET_VIRTUAL_TABLE_PARAMETERS_DSC
public static final int SET_VIRTUAL_TABLE_PARAMETERS_DSC
- See Also:
- Constant Field Values
-
TEMP_TABLE_NAME
public static final int TEMP_TABLE_NAME
- See Also:
- Constant Field Values
-
TEMP_TABLE_FIELDS
public static final int TEMP_TABLE_FIELDS
- See Also:
- Constant Field Values
-
REPLACE_TABLE
public static final int REPLACE_TABLE
- See Also:
- Constant Field Values
-
RENAME_TABLE
public static final int RENAME_TABLE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SourcesEditProvider
public SourcesEditProvider(QueryWizardSource source, boolean needRefreshModelAfterAdd)
- Parameters:
source
- query schema sourceneedRefreshModelAfterAdd
- is necessary update model after add new source
-
SourcesEditProvider
public SourcesEditProvider(QueryWizardSource source)
- Parameters:
source
- query schema source
-
-
Method Detail
-
getVirtualTableForSource
public static DbViewSelectDef getVirtualTableForSource(QuerySchemaSource virtTable)
Get DbView for virtual table- Parameters:
virtTable
- - virtual table source- Returns:
- DbView for virtual table. Return null, if not virtual table
-
calcAlias
public static String calcAlias(String startAlias, QueryWizardSource source)
Calculate unique source alias- Parameters:
startAlias
- - base aliassource
- - query wizard source- Returns:
- - unique alias
-
removeNonexistentFields
public static boolean removeNonexistentFields(QuerySchemaSource source, QueryWizardSource qwSource)
Remove nonexistent fields in source from query- Parameters:
source
- - source aliasqwSource
- - query wizard source- Returns:
- true if removed one or more elements
-
removeNonexistentFields
public static boolean removeNonexistentFields(QuerySchemaSource source, QueryWizardSource qwSource, List<?> fields)
Remove nonexistent fields in source from query- Parameters:
source
- - source aliasqwSource
- - query wizard sourcefields
- - new fields collection, for temp table- Returns:
- true if removed one or more elements
-
isFieldContainField
public static boolean isFieldContainField(String fieldName1, String fieldName2)
Is field1 contain name of field2- Parameters:
fieldName1
- - field namefieldName2
- - field name- Returns:
- - true if field1 contain name of field1
-
add
public QuerySchemaSource add(Object item)
Description copied from class:AbstractQueryWizardEditProvider
Add new value- Overrides:
add
in classAbstractQueryWizardEditProvider
- Parameters:
item
- - new value- Returns:
- - new added value
-
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
-
removeAll
public void removeAll()
Description copied from class:AbstractQueryWizardEditProvider
Remove all items- Overrides:
removeAll
in classAbstractQueryWizardEditProvider
-
replace
public boolean replace(Object oldValue, Object newValue)
Description copied from class:AbstractQueryWizardEditProvider
Replace value- Overrides:
replace
in classAbstractQueryWizardEditProvider
- Returns:
-
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
-
-