Class SQLServer
- java.lang.Object
-
- org.teichert.databaseexplorer.sqlitems.SQLServer
-
- All Implemented Interfaces:
Serializable
,Comparable<ISQLItem<UnvisibleRoot,SQLServer>>
,IFilteredTreeItem
,ISQLItem<UnvisibleRoot,SQLServer>
public class SQLServer extends Object implements IFilteredTreeItem, ISQLItem<UnvisibleRoot,SQLServer>
A Collection ofSQLDatabase
s which can also be loaded lazy like theSQLDatabase
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SQLServer(String id, String ip, String port, String user, String userpwd, String parameters, DatabaseModel model, SQLDatabase... databases)
-
Method Summary
-
-
-
Constructor Detail
-
SQLServer
public SQLServer(String id, String ip, String port, String user, String userpwd, String parameters, DatabaseModel model, SQLDatabase... databases)
-
-
Method Detail
-
setId
public void setId(String id)
-
getId
public String getId()
-
setCustomName
public void setCustomName(String customName)
-
getCustomName
public String getCustomName()
-
setGrouping
public void setGrouping(String grouping)
-
getGrouping
public String getGrouping()
-
getRoot
public UnvisibleRoot getRoot()
-
setRoot
public void setRoot(UnvisibleRoot root)
-
getParameters
public String getParameters()
-
setParameters
public void setParameters(String parameters)
-
hasChildren
public boolean hasChildren()
-
setParent
public SQLServer setParent(UnvisibleRoot root)
- Specified by:
setParent
in interfaceISQLItem<UnvisibleRoot,SQLServer>
-
getParent
public UnvisibleRoot getParent()
- Specified by:
getParent
in interfaceISQLItem<UnvisibleRoot,SQLServer>
-
getIp
public String getIp()
-
setIp
public void setIp(String ip)
-
getPort
public String getPort()
-
setPort
public void setPort(String port)
-
getUser
public String getUser()
-
setUser
public void setUser(String user)
-
getUserpwd
public String getUserpwd()
-
setUserpwd
public void setUserpwd(String userpwd)
-
getIcon
public String getIcon()
-
setModel
public void setModel(DatabaseModel model)
-
getModel
public DatabaseModel getModel()
-
getListOfDatabases
public List<SQLDatabase> getListOfDatabases()
-
setListOfDatabases
public void setListOfDatabases(List<SQLDatabase> listOfDatabases)
-
setLazyLoaded
public void setLazyLoaded(boolean lazyLoaded)
-
isLazyLoaded
public boolean isLazyLoaded()
-
setSshConnId
public void setSshConnId(String sshConnId)
-
getSshConnId
public String getSshConnId()
-
setSshForwardingId
public void setSshForwardingId(String sshForwardingId)
-
getSshForwardingId
public String getSshForwardingId()
-
getName
public String getName()
- Specified by:
getName
in interfaceISQLItem<UnvisibleRoot,SQLServer>
-
getDisplayText
public String getDisplayText()
- Specified by:
getDisplayText
in interfaceIFilteredTreeItem
-
copyFrom
public void copyFrom(SQLServer t)
- Specified by:
copyFrom
in interfaceISQLItem<UnvisibleRoot,SQLServer>
-
clear
public void clear()
- Specified by:
clear
in interfaceISQLItem<UnvisibleRoot,SQLServer>
-
getPosition
public int getPosition()
-
setPosition
public SQLServer setPosition(int position)
-
compareTo
public int compareTo(ISQLItem<UnvisibleRoot,SQLServer> o)
- Specified by:
compareTo
in interfaceComparable<ISQLItem<UnvisibleRoot,SQLServer>>
-
-