Class Encoding
java.lang.Object
com.aoindustries.aoserv.client.AoservObject<Integer,Encoding>
com.aoindustries.aoserv.client.GlobalObject<Integer,Encoding>
com.aoindustries.aoserv.client.GlobalObjectIntegerKey<Encoding>
com.aoindustries.aoserv.client.postgresql.Encoding
- All Implemented Interfaces:
Streamable
,StreamReadable
,StreamWritable
,Row
,AoservReadable
,AoservStreamable
,AoservWritable
Beginning with PostgreSQL 7.1, multiple character encoding formats are
supported, the
PostgresEncoding
s represent the possible
formats.- Author:
- AO Industries, Inc.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The supported encodings.static final String
The 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
ConstructorsConstructorDescriptionEncoding()
Deprecated.Only required for implementation, do not use directly. -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
getColumnImpl
(int i) static String
getDefaultEncoding
(String version) Gets the default PostgreSQL encoding for the given database version.getPostgresVersion
(AoservConnector connector) void
Initializes this object from the raw database contents.void
read
(StreamableInput in, AoservProtocol.Version protocolVersion) void
write
(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 Details
-
ALT
The supported encodings.- See Also:
-
BIG5
The supported encodings.- See Also:
-
EUC_CN
The supported encodings.- See Also:
-
EUC_JIS_2004
The supported encodings.- See Also:
-
EUC_JP
The supported encodings.- See Also:
-
EUC_KR
The supported encodings.- See Also:
-
EUC_TW
The supported encodings.- See Also:
-
GB18030
The supported encodings.- See Also:
-
GBK
The supported encodings.- See Also:
-
ISO_8859_5
The supported encodings.- See Also:
-
ISO_8859_6
The supported encodings.- See Also:
-
ISO_8859_7
The supported encodings.- See Also:
-
ISO_8859_8
The supported encodings.- See Also:
-
JOHAB
The supported encodings.- See Also:
-
KOI8
The supported encodings.- See Also:
-
KOI8R
The supported encodings.- See Also:
-
KOI8U
The supported encodings.- See Also:
-
LATIN1
The supported encodings.- See Also:
-
LATIN2
The supported encodings.- See Also:
-
LATIN3
The supported encodings.- See Also:
-
LATIN4
The supported encodings.- See Also:
-
LATIN5
The supported encodings.- See Also:
-
LATIN6
The supported encodings.- See Also:
-
LATIN7
The supported encodings.- See Also:
-
LATIN8
The supported encodings.- See Also:
-
LATIN9
The supported encodings.- See Also:
-
LATIN10
The supported encodings.- See Also:
-
MULE_INTERNAL
The supported encodings.- See Also:
-
SJIS
The supported encodings.- See Also:
-
SQL_ASCII
The supported encodings.- See Also:
-
UTF8
The supported encodings.- See Also:
-
TCVN
The supported encodings.- See Also:
-
UHC
The supported encodings.- See Also:
-
UNICODE
The supported encodings.- See Also:
-
WIN
The supported encodings.- See Also:
-
WIN866
The supported encodings.- See Also:
-
WIN874
The supported encodings.- See Also:
-
WIN1250
The supported encodings.- See Also:
-
WIN1251
The supported encodings.- See Also:
-
WIN1252
The supported encodings.- See Also:
-
WIN1253
The supported encodings.- See Also:
-
WIN1254
The supported encodings.- See Also:
-
WIN1255
The supported encodings.- See Also:
-
WIN1256
The supported encodings.- See Also:
-
WIN1257
The supported encodings.- See Also:
-
WIN1258
The supported encodings.- See Also:
-
-
Constructor Details
-
Encoding
Deprecated.Only required for implementation, do not use directly.- See Also:
-
-
Method Details
-
getDefaultEncoding
Gets the default PostgreSQL encoding for the given database version. Version <= 8.3: SQL_ASCII. Version >= 9.4: UTF8 -
getColumnImpl
- Specified by:
getColumnImpl
in classAoservObject<Integer,
Encoding>
-
getEncoding
-
getPostgresVersion
- Throws:
SQLException
IOException
-
getTableId
- Specified by:
getTableId
in classAoservObject<Integer,
Encoding>
-
init
Description copied from class:AoservObject
Initializes this object from the raw database contents.- Specified by:
init
in classAoservObject<Integer,
Encoding> - Parameters:
result
- theResultSet
containing the row to copy into this object- Throws:
SQLException
-
read
- Specified by:
read
in interfaceAoservReadable
- Specified by:
read
in interfaceAoservStreamable
- Specified by:
read
in classAoservObject<Integer,
Encoding> - Throws:
IOException
-
write
- Specified by:
write
in interfaceAoservStreamable
- Specified by:
write
in interfaceAoservWritable
- Specified by:
write
in classAoservObject<Integer,
Encoding> - Throws:
IOException
-