Interface LegacyDBConfigurator
-
- All Known Implementing Classes:
SQLConfigurator
public interface LegacyDBConfigurator
Classes that implement this will be able to create a NamedQuery from their own config. Used so theConfiguratorMultiplexor
can handle a press of the "convert" button that these classes should also have.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
LegacyDBConfigurator.NamedQueryBindingWrapper
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addConvertButton(javax.swing.JButton convertButton)
Adds a convert button to the configuratorLegacyDBConfigurator.NamedQueryBindingWrapper
createNamedQueries(java.lang.String selectQueryName, java.lang.String updateQueryName)
Creates a SelectNamedQuery
and an UpdateNamedQuery
as well as aNamedQueryBindingConfig
from the info currently on the screen and wraps all of this up in aLegacyDBConfigurator.NamedQueryBindingWrapper
.DesignerContext
getContext()
Needed to save the resource.boolean
hasUpdateQuery()
boolean
hasUpdateSupport()
-
-
-
Method Detail
-
createNamedQueries
LegacyDBConfigurator.NamedQueryBindingWrapper createNamedQueries(java.lang.String selectQueryName, java.lang.String updateQueryName)
Creates a SelectNamedQuery
and an UpdateNamedQuery
as well as aNamedQueryBindingConfig
from the info currently on the screen and wraps all of this up in aLegacyDBConfigurator.NamedQueryBindingWrapper
. The function that calls this is responsible for saving the resources.- Parameters:
selectQueryName
- Path for the new Select NamedQueryupdateQueryName
- Path for the new Update NamedQuery- Returns:
LegacyDBConfigurator.NamedQueryBindingWrapper
with blank paths. Not null.
-
getContext
DesignerContext getContext()
Needed to save the resource. The configurators have a copy already, while the Multiplexor doesn't.
-
addConvertButton
void addConvertButton(javax.swing.JButton convertButton)
Adds a convert button to the configurator- Parameters:
convertButton
- Completely configured button that will get a path and then call createNamedQuery()
-
hasUpdateQuery
boolean hasUpdateQuery()
- Returns:
- true if this configurator has a non-empty update query, false otherwise
-
hasUpdateSupport
boolean hasUpdateSupport()
- Returns:
- true if this configurator has support for push updates, false otherwise
-
-