com.hyper9.vangaea.impls.beans.admin
Class ServerInformationBeanImpl

java.lang.Object
  extended by com.hyper9.uvapi.impls.BeanImpl
      extended by com.hyper9.uvapi.impls.UniqueBeanImpl<java.lang.Integer>
          extended by com.hyper9.vangaea.impls.beans.admin.AdminBeanImpl
              extended by com.hyper9.vangaea.impls.beans.admin.ServerInformationBeanImpl
All Implemented Interfaces:
com.hyper9.common.beans.Bean, com.hyper9.common.beans.UniqueBean<java.lang.Integer>, AdminBean, ServerInformationBean, java.io.Serializable

public class ServerInformationBeanImpl
extends AdminBeanImpl
implements ServerInformationBean

A bean describing a row in the tbl_servers table.

Author:
akutz
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.hyper9.vangaea.impls.beans.admin.AdminBeanImpl
conn, isDeleted, isDirty
 
Constructor Summary
ServerInformationBeanImpl()
          The default constructor for serialization.
 
Method Summary
static ServerInformationBean get(java.sql.Connection connection, int serverID)
          Gets a server from the data source.
static ServerInformationBean get(java.sql.Connection connection, java.lang.String serverAlias)
          Gets a server from the data source.
 java.lang.String getAddress()
          Gets the server address.
 java.lang.String getAlias()
          Gets the server alias.
static java.util.List<ServerInformationBean> getAll(java.sql.Connection connection)
          Gets all of the servers from the data source.
 ConnectorTypeBean getConnector(UserBean user, java.lang.String key)
          Gets a connector for the server.
 int getConnectorID()
          Gets the server's connector ID.
 boolean getIgnoreSslErrors()
          Gets a value indicating whether or not to ignore SSL errors.
 int getPort()
          Gets the server port.
 boolean getUseSsl()
          Gets a value indicating whether or not to use SSL.
 void setAddress(java.lang.String toSet)
          Sets the server address.
 void setAlias(java.lang.String toSet)
          Sets the server alias.
 void setConnectorID(int toSet)
          Sets the server's connector ID.
 void setIgnoreSslErrors(boolean toSet)
          Sets a value indicating whether or not to ignore SSL errors.
 void setPort(int toSet)
          Sets the server port.
 void setUseSsl(boolean toSet)
          Sets a value indicating whether or not to use SSL.
 
Methods inherited from class com.hyper9.vangaea.impls.beans.admin.AdminBeanImpl
getConnection, isDeleted, isDirty
 
Methods inherited from class com.hyper9.uvapi.impls.UniqueBeanImpl
getID, setID
 
Methods inherited from class com.hyper9.uvapi.impls.BeanImpl
toString, toString, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hyper9.vangaea.types.beans.admin.AdminBean
getConnection, isDeleted, isDirty
 
Methods inherited from interface com.hyper9.common.beans.UniqueBean
getID, setID
 
Methods inherited from interface com.hyper9.common.beans.Bean
toString, toString, toString, toString
 

Constructor Detail

ServerInformationBeanImpl

public ServerInformationBeanImpl()
The default constructor for serialization.

Method Detail

getAddress

public java.lang.String getAddress()
Description copied from interface: ServerInformationBean
Gets the server address.

Specified by:
getAddress in interface ServerInformationBean
Returns:
The server address.

getAlias

public java.lang.String getAlias()
Description copied from interface: ServerInformationBean
Gets the server alias.

Specified by:
getAlias in interface ServerInformationBean
Returns:
The server alias.

getConnectorID

public int getConnectorID()
Description copied from interface: ServerInformationBean
Gets the server's connector ID.

Specified by:
getConnectorID in interface ServerInformationBean
Returns:
The server's connector ID.

getIgnoreSslErrors

public boolean getIgnoreSslErrors()
Description copied from interface: ServerInformationBean
Gets a value indicating whether or not to ignore SSL errors.

Specified by:
getIgnoreSslErrors in interface ServerInformationBean
Returns:
A value indicating whether or not to ignore SSL errors.

getPort

public int getPort()
Description copied from interface: ServerInformationBean
Gets the server port.

Specified by:
getPort in interface ServerInformationBean
Returns:
The server port.

getUseSsl

public boolean getUseSsl()
Description copied from interface: ServerInformationBean
Gets a value indicating whether or not to use SSL.

Specified by:
getUseSsl in interface ServerInformationBean
Returns:
A value indicating whether or not to use SSL.

setAddress

public void setAddress(java.lang.String toSet)
Description copied from interface: ServerInformationBean
Sets the server address.

Specified by:
setAddress in interface ServerInformationBean
Parameters:
toSet - The server address.

setAlias

public void setAlias(java.lang.String toSet)
Description copied from interface: ServerInformationBean
Sets the server alias.

Specified by:
setAlias in interface ServerInformationBean
Parameters:
toSet - The server alias.

setConnectorID

public void setConnectorID(int toSet)
Description copied from interface: ServerInformationBean
Sets the server's connector ID.

Specified by:
setConnectorID in interface ServerInformationBean
Parameters:
toSet - The server's connector ID.

setIgnoreSslErrors

public void setIgnoreSslErrors(boolean toSet)
Description copied from interface: ServerInformationBean
Sets a value indicating whether or not to ignore SSL errors.

Specified by:
setIgnoreSslErrors in interface ServerInformationBean
Parameters:
toSet - A value indicating whether or not to ignore SSL errors.

setPort

public void setPort(int toSet)
Description copied from interface: ServerInformationBean
Sets the server port.

Specified by:
setPort in interface ServerInformationBean
Parameters:
toSet - The server port.

setUseSsl

public void setUseSsl(boolean toSet)
Description copied from interface: ServerInformationBean
Sets a value indicating whether or not to use SSL.

Specified by:
setUseSsl in interface ServerInformationBean
Parameters:
toSet - A value indicating whether or not to use SSL.

getAll

public static java.util.List<ServerInformationBean> getAll(java.sql.Connection connection)
                                                    throws java.lang.Exception
Gets all of the servers from the data source.

Parameters:
connection - The underlying data connection.
Returns:
All of the servers from the data source.
Throws:
java.lang.Exception - When an error occurs.

get

public static ServerInformationBean get(java.sql.Connection connection,
                                        int serverID)
                                 throws java.lang.Exception
Gets a server from the data source.

Parameters:
connection - The underlying data connection.
serverID - The identifier of the server to get.
Returns:
A server from the data source.
Throws:
java.lang.Exception - When an error occurs.

get

public static ServerInformationBean get(java.sql.Connection connection,
                                        java.lang.String serverAlias)
                                 throws java.lang.Exception
Gets a server from the data source.

Parameters:
connection - The underlying data connection.
serverAlias - The alias of the server to get.
Returns:
A server from the data source.
Throws:
java.lang.Exception - When an error occurs.

getConnector

public ConnectorTypeBean getConnector(UserBean user,
                                      java.lang.String key)
                               throws java.lang.Exception
Description copied from interface: ServerInformationBean
Gets a connector for the server.

Specified by:
getConnector in interface ServerInformationBean
Parameters:
user - The user to get the connector for.
key - The user's decryption key.
Returns:
A connector for the server.
Throws:
java.lang.Exception - When an error occurs.


Copyright © 2009 Hyper9. All Rights Reserved.