|
||||||||||
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.
Constructor Summary | |
---|---|
SimpleValue()
|
|
SimpleValue(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(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. |
java.lang.String |
getNullValue()
|
Table |
getTable()
|
Type |
getType()
|
java.lang.String |
getTypeName()
|
java.util.Properties |
getTypeParameters()
|
boolean |
hasFormula()
|
boolean |
isAlternateUniqueKey()
|
boolean |
isCascadeDeleteEnabled()
|
boolean |
isIdentityColumn(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 |
Constructor Detail |
---|
public SimpleValue(Table table)
public SimpleValue()
Method Detail |
---|
public boolean isCascadeDeleteEnabled()
isCascadeDeleteEnabled
in interface KeyValue
public void setCascadeDeleteEnabled(boolean cascadeDeleteEnabled)
public void addColumn(Column column)
public void addFormula(Formula formula)
public boolean hasFormula()
hasFormula
in interface Value
public int getColumnSpan()
getColumnSpan
in interface Value
public java.util.Iterator getColumnIterator()
getColumnIterator
in interface Value
public 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 Value
MappingException
public void createForeignKeyOfEntity(java.lang.String entityName)
createForeignKeyOfEntity
in interface KeyValue
public IdentifierGenerator createIdentifierGenerator(Dialect dialect, java.lang.String defaultCatalog, java.lang.String defaultSchema, RootClass rootClass) throws MappingException
createIdentifierGenerator
in interface KeyValue
MappingException
public boolean isUpdateable()
isUpdateable
in interface KeyValue
public FetchMode getFetchMode()
getFetchMode
in interface Value
public java.util.Properties getIdentifierGeneratorProperties()
public java.lang.String getNullValue()
getNullValue
in interface KeyValue
public Table getTable()
getTable
in interface Value
public java.lang.String getIdentifierGeneratorStrategy()
public boolean isIdentityColumn(Dialect dialect)
isIdentityColumn
in interface KeyValue
public 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 Value
public void setAlternateUniqueKey(boolean unique)
public boolean isNullable()
isNullable
in interface Value
public boolean isSimpleValue()
isSimpleValue
in interface Value
public boolean isValid(Mapping mapping) throws MappingException
isValid
in interface Value
MappingException
public Type getType() throws MappingException
getType
in interface Value
MappingException
public void setTypeUsingReflection(java.lang.String className, java.lang.String propertyName) throws MappingException
setTypeUsingReflection
in interface Value
MappingException
public boolean isTypeSpecified()
public void setTypeParameters(java.util.Properties parameterMap)
public java.util.Properties getTypeParameters()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object accept(ValueVisitor visitor)
accept
in interface Value
public boolean[] getColumnInsertability()
getColumnInsertability
in interface Value
public boolean[] getColumnUpdateability()
getColumnUpdateability
in interface Value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |