|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--iglu.jdbc.Login
a generic login screen for a JDBC database. returns a Connection to a database. Can handle the parameters sent to it as a commandline parser class. It looks for the following parameters:
Field Summary | |
protected static PTextField |
fDriver
the text field for the database. |
protected static javax.swing.JPasswordField |
fPassword
the text field for the password. |
protected static PTextField |
fUrl
the text field for the url. |
static PTextField |
fUsername
the text field for the username. |
static java.lang.String |
sDriver
|
static java.lang.String |
sPassword
|
static java.lang.String |
sUrl
|
static java.lang.String |
sUsername
|
Constructor Summary | |
Login()
|
Method Summary | |
private static java.sql.Connection |
connect()
Connect to the database |
private static java.awt.Component |
createPane()
Create the window for showing the login screen. |
static java.sql.Connection |
doLogin(CommandLineParser clp,
boolean showDialog,
java.lang.String welcomeString)
|
static java.sql.Connection |
doTextLogin(CommandLineParser clp,
boolean showDialog,
java.lang.String welcomeString)
|
private static void |
sortOutArgs(CommandLineParser clp)
assume that everything is null, then fill in what is given on the command line |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static PTextField fUsername
public static java.lang.String sUsername
protected static javax.swing.JPasswordField fPassword
public static java.lang.String sPassword
protected static PTextField fUrl
public static java.lang.String sUrl
protected static PTextField fDriver
public static java.lang.String sDriver
Constructor Detail |
public Login()
Method Detail |
private static void sortOutArgs(CommandLineParser clp)
private static java.awt.Component createPane()
private static java.sql.Connection connect()
public static java.sql.Connection doLogin(CommandLineParser clp, boolean showDialog, java.lang.String welcomeString)
public static java.sql.Connection doTextLogin(CommandLineParser clp, boolean showDialog, java.lang.String welcomeString)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |