Class Server.Name
java.lang.Object
com.aoindustries.aoserv.client.postgresql.Server.Name
- All Implemented Interfaces:
- DtoFactory<PostgresServerName>,- Internable<Server.Name>,- Serializable,- Comparable<Server.Name>
- Enclosing class:
- Server
public static final class Server.Name
extends Object
implements Comparable<Server.Name>, Serializable, DtoFactory<PostgresServerName>, Internable<Server.Name>
Represents a name that may be used for a PostgreSQL installation.  Names must:
 
- Be non-null
- Be non-empty
- Be between 1 and 31 characters
- Must start with [a-z,0-9]
- The rest of the characters may contain [a-z], [0-9], period (.), hyphen (-), and underscore (_)
- Author:
- AO Industries, Inc.
- See Also:
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionintcompareTo(Server.Name other) booleangetDto()inthashCode()intern()Interns this name much in the same fashion asString.intern().toString()static ValidationResultValidates a PostgreSQL server name.static Server.Name
- 
Field Details- 
MAX_LENGTHpublic static final int MAX_LENGTH- See Also:
 
 
- 
- 
Method Details- 
validateValidates a PostgreSQL server name.
- 
valueOf- Parameters:
- name- when- null, returns- null
- Throws:
- ValidationException
 
- 
equals
- 
hashCodepublic int hashCode()
- 
compareTo- Specified by:
- compareToin interface- Comparable<Server.Name>
 
- 
toString
- 
internInterns this name much in the same fashion asString.intern().- Specified by:
- internin interface- Internable<Server.Name>
- See Also:
 
- 
getDto- Specified by:
- getDtoin interface- DtoFactory<PostgresServerName>
 
 
- 

