类 StringNVarcharType
- java.lang.Object
-
- org.hibernate.type.AbstractStandardBasicType<T>
-
- org.hibernate.type.AbstractSingleColumnStandardBasicType<String>
-
- org.hibernate.type.StringNVarcharType
-
- 所有已实现的接口:
Serializable,BasicType,DiscriminatorType<String>,IdentifierType<String>,LiteralType<String>,ProcedureParameterExtractionAware<String>,ProcedureParameterNamedBinder,SingleColumnType<String>,StringRepresentableType<String>,Type
public class StringNVarcharType extends AbstractSingleColumnStandardBasicType<String> implements DiscriminatorType<String>
- 作者:
- Gavin King, Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringNVarcharTypeINSTANCE
-
构造器概要
构造器 构造器 说明 StringNVarcharType()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetName()Returns the abbreviated name of the type.StringobjectToSQLString(String value, Dialect dialect)Convert the value into a string representation, suitable for embedding in an SQL statement as a literal.protected booleanregisterUnderJavaType()StringstringToObject(String xml)Convert the value from the mapping file to a Java object.StringtoString(String value)Render the value to the string representation.-
从类继承的方法 org.hibernate.type.AbstractSingleColumnStandardBasicType
nullSafeSet, sqlType
-
从类继承的方法 org.hibernate.type.AbstractStandardBasicType
assemble, beforeAssemble, canDoExtraction, canDoSetting, compare, deepCopy, deepCopy, defaultSizes, dictatedSizes, disassemble, extract, extract, fromString, fromStringValue, get, getColumnSpan, getDefaultSize, getDictatedSize, getHashCode, getHashCode, getJavaTypeDescriptor, getMutabilityPlan, getRegistrationKeys, getReplacement, getReturnedClass, getSemiResolvedType, getSqlTypeDescriptor, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, isXMLElement, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, nullSafeSet, nullSafeSet, remapSqlTypeDescriptor, replace, replace, resolve, semiResolve, set, setJavaTypeDescriptor, setSqlTypeDescriptor, sqlTypes, toColumnNullness, toLoggableString
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.type.SingleColumnType
fromStringValue, get, nullSafeGet, set
-
从接口继承的方法 org.hibernate.type.Type
assemble, beforeAssemble, compare, deepCopy, defaultSizes, dictatedSizes, disassemble, getColumnSpan, getHashCode, getHashCode, getReturnedClass, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, replace, replace, resolve, resolve, semiResolve, sqlTypes, toColumnNullness, toLoggableString
-
-
-
-
字段详细资料
-
INSTANCE
public static final StringNVarcharType INSTANCE
-
-
方法详细资料
-
registerUnderJavaType
protected boolean registerUnderJavaType()
-
objectToSQLString
public String objectToSQLString(String value, Dialect dialect) throws Exception
从接口复制的说明:LiteralTypeConvert the value into a string representation, suitable for embedding in an SQL statement as a literal.- 指定者:
objectToSQLString在接口中LiteralType<String>- 参数:
value- The value to convertdialect- The SQL dialect- 返回:
- The value's string representation
- 抛出:
Exception- Indicates an issue converting the value to literal string.
-
stringToObject
public String stringToObject(String xml) throws Exception
从接口复制的说明:IdentifierTypeConvert the value from the mapping file to a Java object.- 指定者:
stringToObject在接口中IdentifierType<String>- 参数:
xml- the value of discriminator-value or unsaved-value attribute- 返回:
- The converted value of the string representation.
- 抛出:
Exception- Indicates a problem converting from the string
-
toString
public String toString(String value)
从接口复制的说明:StringRepresentableTypeRender the value to the string representation.- 指定者:
toString在接口中SingleColumnType<String>- 指定者:
toString在接口中StringRepresentableType<String>- 覆盖:
toString在类中AbstractStandardBasicType<String>- 参数:
value- The value to render to string.- 返回:
- The string representation
-
-