@Documented @Retention(value=RUNTIME) @Target(value=METHOD) @AdapterDefinition(storageTypePreferences={java.lang.String.class,Clob.class,Blob.class}) public @interface TextAdapter
Example:
public interface UserInfo extends Storable { @TextAdapter(charset="UTF-8") String getWelcomeMessage(); void setWelcomeMessage(String message); ... }
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String[] |
altCharsets
Optionally specify alternate character sets, which are used if text
cannot be decoded with primary charset.
|
java.lang.String |
charset
Optionally specify a character set, which is used if the storage type is
a Blob.
|
public abstract java.lang.String charset
public abstract java.lang.String[] altCharsets
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.