类 SimpleValue
- java.lang.Object
-
- org.hibernate.mapping.SimpleValue
-
- 所有已实现的接口:
Serializable,KeyValue,Value
- 直接已知子类:
Any,Component,DependantValue,ToOne
public class SimpleValue extends Object implements KeyValue
Any value that maps to columns.- 作者:
- Gavin King
- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringDEFAULT_ID_GEN_STRATEGY
-
构造器概要
构造器 构造器 说明 SimpleValue(MetadataBuildingContext buildingContext)已过时。UseSimpleValue(MetadataBuildingContext, Table)instead.SimpleValue(MetadataBuildingContext buildingContext, Table table)SimpleValue(MetadataImplementor metadata)已过时。UseSimpleValue(MetadataBuildingContext)instead.SimpleValue(MetadataImplementor metadata, Table table)已过时。UseSimpleValue(MetadataBuildingContext, Table)instead.
-
方法概要
-
-
-
构造器详细资料
-
SimpleValue
@Deprecated public SimpleValue(MetadataImplementor metadata)
已过时。UseSimpleValue(MetadataBuildingContext)instead.
-
SimpleValue
@Deprecated public SimpleValue(MetadataImplementor metadata, Table table)
已过时。UseSimpleValue(MetadataBuildingContext, Table)instead.
-
SimpleValue
@Deprecated public SimpleValue(MetadataBuildingContext buildingContext)
已过时。UseSimpleValue(MetadataBuildingContext, Table)instead.
-
SimpleValue
public SimpleValue(MetadataBuildingContext buildingContext, Table table)
-
-
方法详细资料
-
getMetadata
public MetadataImplementor getMetadata()
-
getServiceRegistry
public ServiceRegistry getServiceRegistry()
- 指定者:
getServiceRegistry在接口中Value
-
isCascadeDeleteEnabled
public boolean isCascadeDeleteEnabled()
- 指定者:
isCascadeDeleteEnabled在接口中KeyValue
-
setCascadeDeleteEnabled
public void setCascadeDeleteEnabled(boolean cascadeDeleteEnabled)
-
addColumn
public void addColumn(Column column)
-
addColumn
public void addColumn(Column column, boolean isInsertable, boolean isUpdatable)
-
addFormula
public void addFormula(Formula formula)
-
hasFormula
public boolean hasFormula()
- 指定者:
hasFormula在接口中Value
-
getColumnSpan
public int getColumnSpan()
- 指定者:
getColumnSpan在接口中Value
-
getColumnIterator
public Iterator<Selectable> getColumnIterator()
- 指定者:
getColumnIterator在接口中Value
-
getConstraintColumns
public List getConstraintColumns()
-
getTypeName
public String getTypeName()
-
setTypeName
public void setTypeName(String typeName)
-
makeVersion
public void makeVersion()
-
isVersion
public boolean isVersion()
-
makeNationalized
public void makeNationalized()
-
isNationalized
public boolean isNationalized()
-
makeLob
public void makeLob()
-
isLob
public boolean isLob()
-
setTable
public void setTable(Table table)
-
createForeignKey
public void createForeignKey() throws MappingException- 指定者:
createForeignKey在接口中Value- 抛出:
MappingException
-
createForeignKeyOfEntity
public void createForeignKeyOfEntity(String entityName)
- 指定者:
createForeignKeyOfEntity在接口中KeyValue
-
createIdentifierGenerator
public IdentifierGenerator createIdentifierGenerator(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect, String defaultCatalog, String defaultSchema, RootClass rootClass) throws MappingException
- 指定者:
createIdentifierGenerator在接口中KeyValue- 抛出:
MappingException
-
isUpdateable
public boolean isUpdateable()
- 指定者:
isUpdateable在接口中KeyValue
-
getFetchMode
public FetchMode getFetchMode()
- 指定者:
getFetchMode在接口中Value
-
getIdentifierGeneratorProperties
public Properties getIdentifierGeneratorProperties()
-
getNullValue
public String getNullValue()
- 指定者:
getNullValue在接口中KeyValue
-
getIdentifierGeneratorStrategy
public String getIdentifierGeneratorStrategy()
Returns the identifierGeneratorStrategy.- 返回:
- String
-
isIdentityColumn
public boolean isIdentityColumn(IdentifierGeneratorFactory identifierGeneratorFactory, Dialect dialect)
- 指定者:
isIdentityColumn在接口中KeyValue
-
setIdentifierGeneratorProperties
public void setIdentifierGeneratorProperties(Properties identifierGeneratorProperties)
Sets the identifierGeneratorProperties.- 参数:
identifierGeneratorProperties- The identifierGeneratorProperties to set
-
setIdentifierGeneratorStrategy
public void setIdentifierGeneratorStrategy(String identifierGeneratorStrategy)
Sets the identifierGeneratorStrategy.- 参数:
identifierGeneratorStrategy- The identifierGeneratorStrategy to set
-
setNullValue
public void setNullValue(String nullValue)
Sets the nullValue.- 参数:
nullValue- The nullValue to set
-
getForeignKeyName
public String getForeignKeyName()
-
setForeignKeyName
public void setForeignKeyName(String foreignKeyName)
-
getForeignKeyDefinition
public String getForeignKeyDefinition()
-
setForeignKeyDefinition
public void setForeignKeyDefinition(String foreignKeyDefinition)
-
isAlternateUniqueKey
public boolean isAlternateUniqueKey()
- 指定者:
isAlternateUniqueKey在接口中Value
-
setAlternateUniqueKey
public void setAlternateUniqueKey(boolean unique)
-
isNullable
public boolean isNullable()
- 指定者:
isNullable在接口中Value
-
isSimpleValue
public boolean isSimpleValue()
- 指定者:
isSimpleValue在接口中Value
-
isValid
public boolean isValid(Mapping mapping) throws MappingException
- 指定者:
isValid在接口中Value- 抛出:
MappingException
-
getType
public Type getType() throws MappingException
- 指定者:
getType在接口中Value- 抛出:
MappingException
-
setTypeUsingReflection
public void setTypeUsingReflection(String className, String propertyName) throws MappingException
- 指定者:
setTypeUsingReflection在接口中Value- 抛出:
MappingException
-
isTypeSpecified
public boolean isTypeSpecified()
-
setTypeParameters
public void setTypeParameters(Properties parameterMap)
-
getTypeParameters
public Properties getTypeParameters()
-
copyTypeFrom
public void copyTypeFrom(SimpleValue sourceValue)
-
isSame
public boolean isSame(SimpleValue other)
-
accept
public Object accept(ValueVisitor visitor)
-
getColumnInsertability
public boolean[] getColumnInsertability()
- 指定者:
getColumnInsertability在接口中Value
-
getColumnUpdateability
public boolean[] getColumnUpdateability()
- 指定者:
getColumnUpdateability在接口中Value
-
setJpaAttributeConverterDescriptor
public void setJpaAttributeConverterDescriptor(ConverterDescriptor descriptor)
-
-