Methods Summary |
---|
protected void | fireExampleActionEvent()
//Args: event source,event ID, event command
processActionEvent(new ActionEvent(this,ActionEvent.ACTION_PERFORMED, EXAMPLE_EVENT));
|
public java.lang.String | getConnectionURL()
connectionURL=database1.getConnection().getConnectionURL();
return connectionURL;
|
public java.lang.String | getPassword()
password=database1.getConnection().getPassword();
return password;
|
public java.lang.String | getQuery()
query=queryDataSet1.getOriginalQueryString();
return query;
|
public QueryDataSet | getQueryDataSet()
return queryDataSet1;
|
public java.lang.String | getUserName()
userName=database1.getConnection().getUserName();
return userName;
|
private void | jbInit()
navigatorControl1.setDataSet(queryDataSet1);
gridControl1.setDataSet(queryDataSet1);
database1.setConnection(new borland.sql.dataset.ConnectionDescriptor(
connectionURL, userName, password, false, "sun.jdbc.odbc.JdbcOdbcDriver"));
queryDataSet1.setQuery(new borland.sql.dataset.QueryDescriptor(
database1, query, null, true, Load.ALL));
statusBar1.setDataSet(queryDataSet1);
this.setLayout(borderLayout1);
this.add(navigatorControl1, BorderLayout.NORTH);
this.add(gridControl1, BorderLayout.CENTER);
this.add(statusBar1, BorderLayout.SOUTH);
|
public void | setConnectionURL(java.lang.String s)
connectionURL=s;
database1.getConnection().setConnectionURL(s);
|
public void | setPassword(java.lang.String s)
password=s;
database1.getConnection().setPassword(s);
|
public void | setQuery(java.lang.String s)
try {
query=s;
queryDataSet1.close();
queryDataSet1.setQuery(new borland.sql.dataset.QueryDescriptor(database1, query));
queryDataSet1.open();
}
catch (Exception e) {
e.printStackTrace();
}
|
public void | setQueryDataSet(QueryDataSet qds)
navigatorControl1.setDataSet(qds);
gridControl1.setDataSet(qds);
statusBar1.setDataSet(qds);
queryDataSet1 = qds;
|
public void | setUserName(java.lang.String s)
userName=s;
database1.getConnection().setUserName(s);
|