pl.mbdev.mysql
Class SqlCredentials
java.lang.Object
pl.mbdev.xml.XmlObject
pl.mbdev.mysql.SqlCredentials
- All Implemented Interfaces:
- Xml
public class SqlCredentials
- extends XmlObject
Credentials for a given MySQL server that can be loaded from and saved to local XML
file.
Copyright 2011 Mateusz Bysiek,
mb@mbdev.pl, http://mbdev.pl/
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
- Author:
- Mateusz Bysiek
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SqlCredentials
public SqlCredentials(XmlTree t)
- Parameters:
t
-
SqlCredentials
public SqlCredentials(java.lang.String hostname,
java.lang.String databaseName,
java.lang.String userName,
java.lang.String password)
- Parameters:
hostname
- databaseName
- userName
- password
-
getHostname
public java.lang.String getHostname()
- Returns:
- the hostname
getDatabaseName
public java.lang.String getDatabaseName()
- Returns:
- the databaseName
getUserName
public java.lang.String getUserName()
- Returns:
- the userName
getPassword
public java.lang.String getPassword()
- Returns:
- the password