|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.mapping.SimpleValue
public class SimpleValue
Any value that maps to columns.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_ID_GEN_STRATEGY
|
| Constructor Summary | |
|---|---|
SimpleValue(Mappings mappings)
|
|
SimpleValue(Mappings mappings,
Table table)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
accept(ValueVisitor visitor)
|
void |
addColumn(Column column)
|
void |
addFormula(Formula formula)
|
void |
createForeignKey()
|
void |
createForeignKeyOfEntity(java.lang.String entityName)
|
IdentifierGenerator |
createIdentifierGenerator(IdentifierGeneratorFactory identifierGeneratorFactory,
Dialect dialect,
java.lang.String defaultCatalog,
java.lang.String defaultSchema,
RootClass rootClass)
|
boolean[] |
getColumnInsertability()
|
java.util.Iterator |
getColumnIterator()
|
int |
getColumnSpan()
|
boolean[] |
getColumnUpdateability()
|
java.util.List |
getConstraintColumns()
|
FetchMode |
getFetchMode()
|
java.lang.String |
getForeignKeyName()
|
java.util.Properties |
getIdentifierGeneratorProperties()
|
java.lang.String |
getIdentifierGeneratorStrategy()
Returns the identifierGeneratorStrategy. |
Mappings |
getMappings()
|
java.lang.String |
getNullValue()
|
Table |
getTable()
|
Type |
getType()
|
java.lang.String |
getTypeName()
|
java.util.Properties |
getTypeParameters()
|
boolean |
hasFormula()
|
boolean |
isAlternateUniqueKey()
|
boolean |
isCascadeDeleteEnabled()
|
boolean |
isIdentityColumn(IdentifierGeneratorFactory identifierGeneratorFactory,
Dialect dialect)
|
boolean |
isNullable()
|
boolean |
isSimpleValue()
|
boolean |
isTypeSpecified()
|
boolean |
isUpdateable()
|
boolean |
isValid(Mapping mapping)
|
void |
setAlternateUniqueKey(boolean unique)
|
void |
setCascadeDeleteEnabled(boolean cascadeDeleteEnabled)
|
void |
setForeignKeyName(java.lang.String foreignKeyName)
|
void |
setIdentifierGeneratorProperties(java.util.Properties identifierGeneratorProperties)
Sets the identifierGeneratorProperties. |
void |
setIdentifierGeneratorStrategy(java.lang.String identifierGeneratorStrategy)
Sets the identifierGeneratorStrategy. |
void |
setNullValue(java.lang.String nullValue)
Sets the nullValue. |
void |
setTable(Table table)
|
void |
setTypeName(java.lang.String type)
|
void |
setTypeParameters(java.util.Properties parameterMap)
|
void |
setTypeUsingReflection(java.lang.String className,
java.lang.String propertyName)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_ID_GEN_STRATEGY
| Constructor Detail |
|---|
public SimpleValue(Mappings mappings)
public SimpleValue(Mappings mappings,
Table table)
| Method Detail |
|---|
public Mappings getMappings()
public boolean isCascadeDeleteEnabled()
isCascadeDeleteEnabled in interface KeyValuepublic void setCascadeDeleteEnabled(boolean cascadeDeleteEnabled)
public void addColumn(Column column)
public void addFormula(Formula formula)
public boolean hasFormula()
hasFormula in interface Valuepublic int getColumnSpan()
getColumnSpan in interface Valuepublic java.util.Iterator getColumnIterator()
getColumnIterator in interface Valuepublic java.util.List getConstraintColumns()
public java.lang.String getTypeName()
public void setTypeName(java.lang.String type)
public void setTable(Table table)
public void createForeignKey()
throws MappingException
createForeignKey in interface ValueMappingExceptionpublic void createForeignKeyOfEntity(java.lang.String entityName)
createForeignKeyOfEntity in interface KeyValue
public IdentifierGenerator createIdentifierGenerator(IdentifierGeneratorFactory identifierGeneratorFactory,
Dialect dialect,
java.lang.String defaultCatalog,
java.lang.String defaultSchema,
RootClass rootClass)
throws MappingException
createIdentifierGenerator in interface KeyValueMappingExceptionpublic boolean isUpdateable()
isUpdateable in interface KeyValuepublic FetchMode getFetchMode()
getFetchMode in interface Valuepublic java.util.Properties getIdentifierGeneratorProperties()
public java.lang.String getNullValue()
getNullValue in interface KeyValuepublic Table getTable()
getTable in interface Valuepublic java.lang.String getIdentifierGeneratorStrategy()
public boolean isIdentityColumn(IdentifierGeneratorFactory identifierGeneratorFactory,
Dialect dialect)
isIdentityColumn in interface KeyValuepublic void setIdentifierGeneratorProperties(java.util.Properties identifierGeneratorProperties)
identifierGeneratorProperties - The identifierGeneratorProperties to setpublic void setIdentifierGeneratorStrategy(java.lang.String identifierGeneratorStrategy)
identifierGeneratorStrategy - The identifierGeneratorStrategy to setpublic void setNullValue(java.lang.String nullValue)
nullValue - The nullValue to setpublic java.lang.String getForeignKeyName()
public void setForeignKeyName(java.lang.String foreignKeyName)
public boolean isAlternateUniqueKey()
isAlternateUniqueKey in interface Valuepublic void setAlternateUniqueKey(boolean unique)
public boolean isNullable()
isNullable in interface Valuepublic boolean isSimpleValue()
isSimpleValue in interface Value
public boolean isValid(Mapping mapping)
throws MappingException
isValid in interface ValueMappingException
public Type getType()
throws MappingException
getType in interface ValueMappingException
public void setTypeUsingReflection(java.lang.String className,
java.lang.String propertyName)
throws MappingException
setTypeUsingReflection in interface ValueMappingExceptionpublic boolean isTypeSpecified()
public void setTypeParameters(java.util.Properties parameterMap)
public java.util.Properties getTypeParameters()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object accept(ValueVisitor visitor)
accept in interface Valuepublic boolean[] getColumnInsertability()
getColumnInsertability in interface Valuepublic boolean[] getColumnUpdateability()
getColumnUpdateability in interface Value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||