public static class TextAdapter.Adapter
extends java.lang.Object
TextAdapter
.Constructor and Description |
---|
TextAdapter.Adapter(java.lang.Class<?> type,
java.lang.String propertyName,
java.nio.charset.Charset charset) |
TextAdapter.Adapter(java.lang.Class<?> type,
java.lang.String propertyName,
java.nio.charset.Charset charset,
java.nio.charset.Charset[] altCharsets) |
TextAdapter.Adapter(java.lang.Class<?> type,
java.lang.String propertyName,
java.lang.String charset) |
TextAdapter.Adapter(java.lang.Class<?> type,
java.lang.String propertyName,
TextAdapter ann) |
Modifier and Type | Method and Description |
---|---|
Blob |
adaptToBlob(java.lang.String text) |
Clob |
adaptToClob(java.lang.String text) |
java.lang.String |
adaptToString(Blob blob) |
java.lang.String |
adaptToString(Clob clob) |
public TextAdapter.Adapter(java.lang.Class<?> type, java.lang.String propertyName, TextAdapter ann)
type
- type of object that contains the adapted propertypropertyName
- name of property with adapterann
- specific annotation that binds to this adapter classpublic TextAdapter.Adapter(java.lang.Class<?> type, java.lang.String propertyName, java.lang.String charset)
type
- type of object that contains the adapted propertypropertyName
- name of property withcharset
- character set to use, or null to use default of UTF-8.public TextAdapter.Adapter(java.lang.Class<?> type, java.lang.String propertyName, java.nio.charset.Charset charset)
type
- type of object that contains the adapted propertypropertyName
- name of property withcharset
- character set to use, or null to use default of UTF-8.public TextAdapter.Adapter(java.lang.Class<?> type, java.lang.String propertyName, java.nio.charset.Charset charset, java.nio.charset.Charset[] altCharsets)
type
- type of object that contains the adapted propertypropertyName
- name of property withcharset
- character set to use, or null to use default of UTF-8.altCharsets
- alternate character sets to use, if text cannot be
decoded with primary charsetpublic java.lang.String adaptToString(Clob clob) throws FetchException
FetchException
public java.lang.String adaptToString(Blob blob) throws FetchException
FetchException
public Clob adaptToClob(java.lang.String text)
public Blob adaptToBlob(java.lang.String text) throws PersistException
PersistException
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.