Package acdp.types
Interface StringType
- All Superinterfaces:
Type
The column type analogon of a Java
String
type.
In contrast to the Java String
type this type may be specified such
that the null
value is forbidden.
Besides the property that decides if the null
value is allowed or
not, the string type has three additional properties: The storage scheme, the limit and the charset.
All have an influence on the maximum number of characters in a string value
as follows:
Inrow Storage Scheme
If the chosen charset is a single byte character set then the maximum number of characters in a string is equal to the value of the limit. If the chosen charset is not a single byte character set then the maximum number of characters may be less than the value of the limit.Outrow Storage Scheme
If the chosen charset is a single byte character set then the maximum number of characters in a string is equal ton
= min
(256
limit
- 1, Integer.MAX_VALUE
), e.g., 255 for a limit
equal to 1.
If the chosen charset is not a single byte character set then the maximum
number of characters may be less than n
characters.
There should be no need for clients to implement this interface.
- Author:
- Beat Hörmann
-
Nested Class Summary
Nested classes/interfaces inherited from interface acdp.types.Type
Type.Scheme
-
Method Summary
Methods inherited from interface acdp.types.Type
isCompatible, scheme, typeDesc
-
Method Details
-
charset
Charset charset()Returns the character set of this string type.- Returns:
- The character set, never
null
.
-
limit
int limit()Returns the limit of this string type.- Returns:
- The limit, greater than or equal to 1.
-