public class StringBooleanType extends Object implements EnhancedUserType, ParameterizedType
Modifier and Type | Field and Description |
---|---|
static String |
copyright |
static String |
NULL |
Constructor and Description |
---|
StringBooleanType() |
Modifier and Type | Method and Description |
---|---|
Object |
assemble(Serializable cached,
Object owner) |
Object |
deepCopy(Object value) |
Serializable |
disassemble(Object value) |
boolean |
equals(Object x,
Object y) |
Object |
fromXMLString(String xmlValue) |
String |
getFalseString() |
String |
getTrueString() |
int |
hashCode(Object x) |
boolean |
isMutable() |
Object |
nullSafeGet(ResultSet resultSet,
String[] names,
SessionImplementor sessionImplementor,
Object owner) |
void |
nullSafeSet(PreparedStatement statement,
Object value,
int index,
SessionImplementor sessionImplementor) |
String |
objectToSQLString(Object value) |
protected Object |
parseBoolean(String value) |
Object |
replace(Object original,
Object target,
Object owner) |
Class |
returnedClass() |
void |
setParameterValues(Properties parameters) |
int[] |
sqlTypes() |
String |
toXMLString(Object value) |
public static final String copyright
public static final String NULL
public Class returnedClass()
returnedClass
in interface UserType
public boolean equals(Object x, Object y) throws HibernateException
equals
in interface UserType
HibernateException
public int hashCode(Object x) throws HibernateException
hashCode
in interface UserType
HibernateException
public Object nullSafeGet(ResultSet resultSet, String[] names, SessionImplementor sessionImplementor, Object owner) throws HibernateException, SQLException
nullSafeGet
in interface UserType
HibernateException
SQLException
public void nullSafeSet(PreparedStatement statement, Object value, int index, SessionImplementor sessionImplementor) throws HibernateException, SQLException
nullSafeSet
in interface UserType
HibernateException
SQLException
public Object deepCopy(Object value) throws HibernateException
deepCopy
in interface UserType
HibernateException
public Serializable disassemble(Object value) throws HibernateException
disassemble
in interface UserType
HibernateException
public Object assemble(Serializable cached, Object owner) throws HibernateException
assemble
in interface UserType
HibernateException
public Object replace(Object original, Object target, Object owner) throws HibernateException
replace
in interface UserType
HibernateException
public String getTrueString()
public String getFalseString()
public void setParameterValues(Properties parameters)
setParameterValues
in interface ParameterizedType
public String objectToSQLString(Object value)
objectToSQLString
in interface EnhancedUserType
public String toXMLString(Object value)
toXMLString
in interface EnhancedUserType
public Object fromXMLString(String xmlValue)
fromXMLString
in interface EnhancedUserType