Like what you see? Have a play with our trial version.

Error rendering macro 'rw-search'

null

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Basically, the JDBCMetaData class is used for building a connection wizard for a data source. The following functions need to be implemented to create a basic connection wizard: 

 

     public JDBCMetaData(); 

     public void initialiseParameters(); 

     public String buttonPressed(String buttonName) throws Exception; 
 

...

Helper functions that are also accessible in JDBCMetaData: 

 

     protected final void addParameter(Parameter p); 

     public void setParameterValue(String key, Object value); 

     public final Object getParameterValue(String key); 

     public boolean isParameterRequired(String key); 

     public boolean hasDependentParameters(String key); 

 

 

Metadata Function Definitions

 

public JDBCMetaData(); (Constructor) 

The following attributes should be set in the constructor: 

...

Code Block
languagejava
public SkiTeamMetaData() { 

			super(); 

			sourceName = "Ski Team Source"; 
			sourceCode = "SKI_DATA_SOURCE"; 
			driverName = SkiTeamDataSource.class.getName(); 
			sourceType = DBType.THIRD_PARTY; 

} 
 

 

 

public void initialiseParameters(); 

This function is where parameters should be registered. Registered parameters will be displayed to the user when creating a connection with this DataSource. Use the function addParameter() to add required parameters. 

...