|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.SwingWorker<java.lang.String,java.lang.String>
com.avian.birds.basebirds.AbstractBasicBird
com.avian.birds.basebirds.StdBird
com.avian.birds.db.DataBird
public class DataBird
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.SwingWorker |
---|
javax.swing.SwingWorker.StateValue |
Field Summary | |
---|---|
java.lang.String |
dbDriver
Xmv annotated variable that allows you to select the database driver at runtime. |
java.lang.String |
dbLogin
Xmv annotated variable that allows you to select the login name at runtime. |
java.lang.String |
dbName
Xmv annotated variable that allows you to select the database at runtime. |
java.lang.String |
dbPlaceholder3
Xmv annotated variable that is currently unused. |
java.lang.String |
dbPW
Xmv annotated variable that allows you to select the password at runtime. |
java.lang.String |
dbSQLStatement
Xmv annotated variable that allows you to define the SQL statement at runtime. |
java.lang.String |
dbURL
Xmv annotated variable that allows you to change the database at runtime Requires a matching setter method. |
Fields inherited from class com.avian.birds.basebirds.StdBird |
---|
foodFromTree, healthStatus, jbRefStart, jlRefLastAte, jtaRefHistory, jtfRefHealth, mts, myTupleTree, nts, sampleXmv, startButtonText |
Fields inherited from class com.avian.birds.basebirds.AbstractBasicBird |
---|
bhf, bif, birdDesc, birdHistory, birdName, bof, eatsFood, hatchTime, historyFileName, inputFileName, lastAte, levelOfInfo, lifeTime, napLength, outputFileName, stamina, stopNow, storesFood |
Constructor Summary | |
---|---|
DataBird()
|
Method Summary | |
---|---|
void |
eatFood()
Every Bird must eat food to stay alive and this method provides the instructions to eat from a database. |
void |
setDbDriver(java.lang.String dbOther)
Copies the value in the database driver name field displayed in the Aviary and writes it to the dbDriver variable. |
void |
setDbLogin(java.lang.String dbLogin)
Copies the value in the db login field displayed in the Aviary and writes it to the dbLogin variable. |
void |
setDbName(java.lang.String dbResult)
Copies the value in the database name field displayed in the Aviary and writes it to the dbName variable. |
void |
setDbPlaceholder3(java.lang.String dbSecondOther)
Copies the value in the placeholder field displayed in the Aviary and writes it to the dbPlaceholder variable. |
void |
setDbPW(java.lang.String dbPW)
Copies the value in the db password field displayed in the Aviary and writes it to the dbPW variable. |
void |
setDbSQLStatement(java.lang.String dbSQLStatement)
Copies the value in the SQL Statement field displayed in the Aviary and writes it to the dbStatement variable. |
void |
setDbURL(java.lang.String dbURL)
Copies the value in the database URL field displayed in the Aviary and writes it to the dbURL variable. |
void |
storeFood()
Puts the digested food out for other Birds to eat. |
Methods inherited from class com.avian.birds.basebirds.StdBird |
---|
checkAge, digest, done, setHealthRef, setHealthStatus, setHistoryAreaRef, setJlRefLastAte, setStartButtonRef, setStartButtonText, setTupleTree |
Methods inherited from class com.avian.birds.basebirds.AbstractBasicBird |
---|
addToBirdHistory, doInBackground, getAuxFood, getBirdDescription, getBirdHistory, getBirdName, getEatsFood, getHatchTime, getHistoryFileName, getInputFileName, getLastAte, getLevelOfInfo, getLifeTime, getNameOfFoodToStore, getNapLength, getOutputFileName, getStamina, isStopNow, setBhf, setBif, setBirdDesc, setBirdHistory, setBirdName, setBof, setEatsFood, setHatchTime, setHistoryFileName, setInputFileName, setLevelOfInfo, setLevelOfInfo, setLifeTime, setNapLength, setOutputFileName, setStamina, setStopNow, setStoresFood |
Methods inherited from class javax.swing.SwingWorker |
---|
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, process, publish, removePropertyChangeListener, run, setProgress |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String dbURL
public java.lang.String dbLogin
public java.lang.String dbPW
public java.lang.String dbSQLStatement
public java.lang.String dbName
public java.lang.String dbDriver
public java.lang.String dbPlaceholder3
Constructor Detail |
---|
public DataBird()
Method Detail |
---|
public void setDbURL(java.lang.String dbURL)
dbURL
- is the String value that is entered into this field in Aviary.public void setDbLogin(java.lang.String dbLogin)
dbLogin
- is the String value that is entered into this field in Aviary.public void setDbPW(java.lang.String dbPW)
dbPW
- is the String value that is entered into this field in Aviary.public void setDbSQLStatement(java.lang.String dbSQLStatement)
dbSQLStatement
- is the String value that is entered into this field in Aviary.public void setDbName(java.lang.String dbResult)
dbResult
- is the String value that is entered into this field in Aviary.public void setDbDriver(java.lang.String dbOther)
dbOther
- is the String value that is entered into this field in Aviary.public void setDbPlaceholder3(java.lang.String dbSecondOther)
dbSecondOther
- is the String value that is entered into this field in Aviary.public void eatFood()
eatFood
in class StdBird
public void storeFood()
storeFood
in class StdBird
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |