|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.bloof.db.DefaultDbAccess
General class that implements the DbAccess interface. Should fit for most databases
Constructor Summary | |
DefaultDbAccess(java.lang.String aName,
java.lang.String aLogin,
java.lang.String aPassword,
java.lang.String aDbUrl)
Constructs a DefaultDbAccess object |
Method Summary | |
boolean |
equals(java.lang.Object aDatabaseAccess)
Returns true if the specified object equals this one |
java.lang.String |
getDatabaseUrl()
Returns the url of of the database server, needed by drivermanager for connection to the database |
java.lang.String |
getLogin()
Returns the login of the database user |
java.lang.String |
getPassword()
Returns the password of the database user |
int |
hashCode()
|
void |
setDatabaseUrl(java.lang.String aNewUrl)
Method setDataBaseUrl. |
java.lang.String |
toString()
Shows the name of the database access. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DefaultDbAccess(java.lang.String aName, java.lang.String aLogin, java.lang.String aPassword, java.lang.String aDbUrl)
aName
- name of the access methodaLogin
- of the useraPassword
- of the useraDbUrl
- url of the databaseMethod Detail |
public java.lang.String getDatabaseUrl()
DbAccess
getDatabaseUrl
in interface DbAccess
DbAccess.getDatabaseUrl( )
public java.lang.String getLogin()
DbAccess
getLogin
in interface DbAccess
DbAccess.getLogin( )
public java.lang.String getPassword()
DbAccess
getPassword
in interface DbAccess
DbAccess.getPassword( )
public void setDatabaseUrl(java.lang.String aNewUrl)
DbAccess
setDatabaseUrl
in interface DbAccess
aNewUrl
- new UrlDbAccess.setDatabaseUrl( String )
public java.lang.String toString()
DbAccess
toString
in interface DbAccess
toString
in class java.lang.Object
Object.toString( )
public boolean equals(java.lang.Object aDatabaseAccess)
DbAccess
equals
in interface DbAccess
equals
in class java.lang.Object
aDatabaseAccess
- specified object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |