Class Encoding
- java.lang.Object
-
- com.aoindustries.aoserv.client.AOServObject<K,T>
-
- com.aoindustries.aoserv.client.GlobalObject<Integer,T>
-
- com.aoindustries.aoserv.client.GlobalObjectIntegerKey<Encoding>
-
- com.aoindustries.aoserv.client.postgresql.Encoding
-
- All Implemented Interfaces:
Streamable,StreamReadable,StreamWritable,Row,AOServReadable,AOServStreamable,AOServWritable
public final class Encoding extends GlobalObjectIntegerKey<Encoding>
Beginning with PostgreSQL 7.1, multiple character encoding formats are supported, thePostgresEncodings represent the possible formats.- Author:
- AO Industries, Inc.
- See Also:
Database
-
-
Field Summary
Fields Modifier and Type Field Description static StringALTThe supported encodings.static StringBIG5The supported encodings.static StringEUC_CNThe supported encodings.static StringEUC_JIS_2004The supported encodings.static StringEUC_JPThe supported encodings.static StringEUC_KRThe supported encodings.static StringEUC_TWThe supported encodings.static StringGB18030The supported encodings.static StringGBKThe supported encodings.static StringISO_8859_5The supported encodings.static StringISO_8859_6The supported encodings.static StringISO_8859_7The supported encodings.static StringISO_8859_8The supported encodings.static StringJOHABThe supported encodings.static StringKOI8The supported encodings.static StringKOI8RThe supported encodings.static StringKOI8UThe supported encodings.static StringLATIN1The supported encodings.static StringLATIN10The supported encodings.static StringLATIN2The supported encodings.static StringLATIN3The supported encodings.static StringLATIN4The supported encodings.static StringLATIN5The supported encodings.static StringLATIN6The supported encodings.static StringLATIN7The supported encodings.static StringLATIN8The supported encodings.static StringLATIN9The supported encodings.static StringMULE_INTERNALThe supported encodings.static StringSJISThe supported encodings.static StringSQL_ASCIIThe supported encodings.static StringTCVNThe supported encodings.static StringUHCThe supported encodings.static StringUNICODEThe supported encodings.static StringUTF8The supported encodings.static StringWINThe supported encodings.static StringWIN1250The supported encodings.static StringWIN1251The supported encodings.static StringWIN1252The supported encodings.static StringWIN1253The supported encodings.static StringWIN1254The supported encodings.static StringWIN1255The supported encodings.static StringWIN1256The supported encodings.static StringWIN1257The supported encodings.static StringWIN1258The supported encodings.static StringWIN866The supported encodings.static StringWIN874The supported encodings.-
Fields inherited from class com.aoindustries.aoserv.client.GlobalObjectIntegerKey
pkey
-
Fields inherited from class com.aoindustries.aoserv.client.AOServObject
USE_ARRAY_OF_DOMAIN, USE_SQL_DATA, USE_SQL_DATA_WRITE
-
-
Constructor Summary
Constructors Constructor Description Encoding()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectgetColumnImpl(int i)static StringgetDefaultEncoding(String version)Gets the default PostgreSQL encoding for the given database version.StringgetEncoding()VersiongetPostgresVersion(AOServConnector connector)Table.TableIDgetTableID()voidinit(ResultSet result)Initializes this object from the raw database contents.voidread(StreamableInput in, AoservProtocol.Version protocolVersion)voidwrite(StreamableOutput out, AoservProtocol.Version protocolVersion)-
Methods inherited from class com.aoindustries.aoserv.client.GlobalObjectIntegerKey
equals, getKey, getPkey, hashCode, toStringImpl
-
Methods inherited from class com.aoindustries.aoserv.client.AOServObject
compare, compare, compare, compare, compareIgnoreCaseConsistentWithEquals, compareTo, compareTo, compareTo, getAccountingCode, getColumn, getColumns, getColumns, getDomainLabel, getDomainLabels, getDomainName, getDto, getEmail, getGecos, getGroupId, getHashedKey, getHashedPassword, getHostname, getInetAddress, getLinuxID, getLinuxUserName, getMacAddress, getMySQLDatabaseName, getMySQLServerName, getMysqlUserName, getPort, getPostgresDatabaseName, getPostgresServerName, getPostgresUserId, getTableSchema, getTimeMillis, getTimeMillis, getUnixPath, getUserId, read, toString, write
-
-
-
-
Field Detail
-
ALT
public static final String ALT
The supported encodings.- See Also:
- Constant Field Values
-
BIG5
public static final String BIG5
The supported encodings.- See Also:
- Constant Field Values
-
EUC_CN
public static final String EUC_CN
The supported encodings.- See Also:
- Constant Field Values
-
EUC_JIS_2004
public static final String EUC_JIS_2004
The supported encodings.- See Also:
- Constant Field Values
-
EUC_JP
public static final String EUC_JP
The supported encodings.- See Also:
- Constant Field Values
-
EUC_KR
public static final String EUC_KR
The supported encodings.- See Also:
- Constant Field Values
-
EUC_TW
public static final String EUC_TW
The supported encodings.- See Also:
- Constant Field Values
-
GB18030
public static final String GB18030
The supported encodings.- See Also:
- Constant Field Values
-
GBK
public static final String GBK
The supported encodings.- See Also:
- Constant Field Values
-
ISO_8859_5
public static final String ISO_8859_5
The supported encodings.- See Also:
- Constant Field Values
-
ISO_8859_6
public static final String ISO_8859_6
The supported encodings.- See Also:
- Constant Field Values
-
ISO_8859_7
public static final String ISO_8859_7
The supported encodings.- See Also:
- Constant Field Values
-
ISO_8859_8
public static final String ISO_8859_8
The supported encodings.- See Also:
- Constant Field Values
-
JOHAB
public static final String JOHAB
The supported encodings.- See Also:
- Constant Field Values
-
KOI8
public static final String KOI8
The supported encodings.- See Also:
- Constant Field Values
-
KOI8R
public static final String KOI8R
The supported encodings.- See Also:
- Constant Field Values
-
KOI8U
public static final String KOI8U
The supported encodings.- See Also:
- Constant Field Values
-
LATIN1
public static final String LATIN1
The supported encodings.- See Also:
- Constant Field Values
-
LATIN2
public static final String LATIN2
The supported encodings.- See Also:
- Constant Field Values
-
LATIN3
public static final String LATIN3
The supported encodings.- See Also:
- Constant Field Values
-
LATIN4
public static final String LATIN4
The supported encodings.- See Also:
- Constant Field Values
-
LATIN5
public static final String LATIN5
The supported encodings.- See Also:
- Constant Field Values
-
LATIN6
public static final String LATIN6
The supported encodings.- See Also:
- Constant Field Values
-
LATIN7
public static final String LATIN7
The supported encodings.- See Also:
- Constant Field Values
-
LATIN8
public static final String LATIN8
The supported encodings.- See Also:
- Constant Field Values
-
LATIN9
public static final String LATIN9
The supported encodings.- See Also:
- Constant Field Values
-
LATIN10
public static final String LATIN10
The supported encodings.- See Also:
- Constant Field Values
-
MULE_INTERNAL
public static final String MULE_INTERNAL
The supported encodings.- See Also:
- Constant Field Values
-
SJIS
public static final String SJIS
The supported encodings.- See Also:
- Constant Field Values
-
SQL_ASCII
public static final String SQL_ASCII
The supported encodings.- See Also:
- Constant Field Values
-
UTF8
public static final String UTF8
The supported encodings.- See Also:
- Constant Field Values
-
TCVN
public static final String TCVN
The supported encodings.- See Also:
- Constant Field Values
-
UHC
public static final String UHC
The supported encodings.- See Also:
- Constant Field Values
-
UNICODE
public static final String UNICODE
The supported encodings.- See Also:
- Constant Field Values
-
WIN
public static final String WIN
The supported encodings.- See Also:
- Constant Field Values
-
WIN866
public static final String WIN866
The supported encodings.- See Also:
- Constant Field Values
-
WIN874
public static final String WIN874
The supported encodings.- See Also:
- Constant Field Values
-
WIN1250
public static final String WIN1250
The supported encodings.- See Also:
- Constant Field Values
-
WIN1251
public static final String WIN1251
The supported encodings.- See Also:
- Constant Field Values
-
WIN1252
public static final String WIN1252
The supported encodings.- See Also:
- Constant Field Values
-
WIN1253
public static final String WIN1253
The supported encodings.- See Also:
- Constant Field Values
-
WIN1254
public static final String WIN1254
The supported encodings.- See Also:
- Constant Field Values
-
WIN1255
public static final String WIN1255
The supported encodings.- See Also:
- Constant Field Values
-
WIN1256
public static final String WIN1256
The supported encodings.- See Also:
- Constant Field Values
-
WIN1257
public static final String WIN1257
The supported encodings.- See Also:
- Constant Field Values
-
WIN1258
public static final String WIN1258
The supported encodings.- See Also:
- Constant Field Values
-
-
Method Detail
-
getDefaultEncoding
public static String getDefaultEncoding(String version)
Gets the default PostgreSQL encoding for the given database version. Version <= 8.3: SQL_ASCII. Version >= 9.4: UTF8
-
getColumnImpl
protected Object getColumnImpl(int i)
- Specified by:
getColumnImplin classAOServObject<Integer,Encoding>
-
getEncoding
public String getEncoding()
-
getPostgresVersion
public Version getPostgresVersion(AOServConnector connector) throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getTableID
public Table.TableID getTableID()
- Specified by:
getTableIDin classAOServObject<Integer,Encoding>
-
init
public void init(ResultSet result) throws SQLException
Description copied from class:AOServObjectInitializes this object from the raw database contents.- Specified by:
initin classAOServObject<Integer,Encoding>- Parameters:
result- theResultSetcontaining the row to copy into this object- Throws:
SQLException
-
read
public void read(StreamableInput in, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
readin interfaceAOServReadable- Specified by:
readin interfaceAOServStreamable- Specified by:
readin classAOServObject<Integer,Encoding>- Throws:
IOException
-
write
public void write(StreamableOutput out, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
writein interfaceAOServStreamable- Specified by:
writein interfaceAOServWritable- Specified by:
writein classAOServObject<Integer,Encoding>- Throws:
IOException
-
-