public class JdbcDatastoreFieldDescriptor extends SelectFieldDescriptor
Configuration
will
be the JNDI name of the Data Store (datasource).
Connection
object that is created from the JNDI name, you can use the
DataSourceAccessor
class.
You can also use this JNDI name to perform your own lookup. Here is some example code if you want to do it
on your own:
FieldDescriptor jdbcFieldDescriptor = conf.getField( "MyJDBCDatastoreFieldDescriptorName" );
String jndiName = jdbcFieldDescriptor.getValue();
DataSourceAccessor ds = new DataSourceAccessor();
Connection conn = ds.getConnection(jndiName);
...
AbstractSelectionFieldDescriptor.OptionValue
FieldDescriptor.FieldValidationWrapper
SELECT_ONE
NONE_SELECTED
Constructor and Description |
---|
JdbcDatastoreFieldDescriptor(String name,
String description)
Create a new JdbcDatastoreFieldDescriptor.
|
Modifier and Type | Method and Description |
---|---|
List<AbstractSelectionFieldDescriptor.OptionValue> |
getOptionValues()
Gets the option values list constructed from all the JDBC data sources configured in
the system.
|
getFormattedValue, setOptionValues
addValidator, addValidator, getDefaultForLegacyConfig, getDefaultValue, getDescription, getLabel, getName, getValidationChain, setDefaultForLegacyConfig, setDefaultValue, setLabel
public JdbcDatastoreFieldDescriptor(String name, String description)
name
- The field name (must be unique per AdapterConfigurationGuiDescriptor or TableDescriptor).
This name will also be used as the label for the field in the administrative console.
To ensure configuration can be read in future releases of a plugin, it is recommended to not
change the names - instead use a label to rename a field in the administrative console.description
- The field description displayed in the administrative console.public List<AbstractSelectionFieldDescriptor.OptionValue> getOptionValues()
getOptionValues
in class AbstractSelectionFieldDescriptor
Copyright 2019 Ping Identity Corp. All rights reserved.