java.lang.Object
com.aoindustries.aoserv.client.mysql.TableName
- All Implemented Interfaces:
DtoFactory<MysqlTableName>
,Serializable
,Comparable<TableName>
public final class TableName
extends Object
implements Comparable<TableName>, Serializable, DtoFactory<MysqlTableName>
Represents a name that may be used for a MySQL table. Table names must:
- Be non-null
- Be non-empty
- Be between 1 and 64 characters
- Must start with
[a-z,A-Z,_]
- The rest of the characters may contain [a-z], [A-Z], [0-9], underscore (_), hyphen (-), or dollar ($)
- Author:
- AO Industries, Inc.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The longest name allowed for a MySQL table name. -
Method Summary
-
Field Details
-
MAX_LENGTH
public static final int MAX_LENGTHThe longest name allowed for a MySQL table name.- See Also:
-
-
Method Details
-
validate
Validates a MySQL table name. -
valueOf
- Parameters:
name
- whennull
, returnsnull
- Throws:
ValidationException
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<TableName>
-
toString
-
getDto
- Specified by:
getDto
in interfaceDtoFactory<MysqlTableName>
-