|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.osmosis.core.database.DatabaseLoginCredentials
public class DatabaseLoginCredentials
Stores all information required to connect to a database.
Constructor Summary | |
---|---|
DatabaseLoginCredentials(java.lang.String host,
java.lang.String database,
java.lang.String user,
java.lang.String password,
boolean forceUtf8,
boolean profileSql,
DatabaseType dbType)
Creates a new instance. |
Method Summary | |
---|---|
java.lang.String |
getDatabase()
Returns the database. |
DatabaseType |
getDbType()
Return database type. |
boolean |
getForceUtf8()
Returns the force utf-8 flag. |
java.lang.String |
getHost()
Returns the host. |
java.lang.String |
getPassword()
Returns the password. |
boolean |
getProfileSql()
Returns the profile SQL flag. |
java.lang.String |
getUser()
Returns the user. |
void |
setDatabase(java.lang.String database)
Updates the database. |
void |
setDbType(DatabaseType dbType)
Updates database type. |
void |
setDbType(java.lang.String property)
Updates the database type. |
void |
setForceUtf8(boolean forceUtf8)
Updates the force utf-8 flag. |
void |
setHost(java.lang.String host)
Updates the host. |
void |
setPassword(java.lang.String password)
Updates the password. |
void |
setProfileSql(boolean profileSql)
Updates the profile SQL flag. |
void |
setUser(java.lang.String user)
Updates the user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DatabaseLoginCredentials(java.lang.String host, java.lang.String database, java.lang.String user, java.lang.String password, boolean forceUtf8, boolean profileSql, DatabaseType dbType)
host
- The server hosting the database.database
- The database instance.user
- The user name for authentication.password
- The password for authentication.forceUtf8
- If true, the database connection will be forced to use utf-8 instead of the
database default.profileSql
- If true, profile logging will be enabled on the database connection causing all
queries to be logged to stderr.dbType
- The database type.Method Detail |
---|
public java.lang.String getHost()
public void setHost(java.lang.String host)
host
- The new host.public java.lang.String getDatabase()
public void setDatabase(java.lang.String database)
database
- The new database.public java.lang.String getUser()
public void setUser(java.lang.String user)
user
- The new user.public java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
- The new password.public boolean getForceUtf8()
public void setForceUtf8(boolean forceUtf8)
forceUtf8
- The new force utf-8 flag.public boolean getProfileSql()
public void setProfileSql(boolean profileSql)
profileSql
- The new profile SQL flag.public DatabaseType getDbType()
public void setDbType(DatabaseType dbType)
dbType
- database typepublic void setDbType(java.lang.String property)
property
- The database type property.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |