Methods Summary |
---|
public java.lang.Object | accept(ValueVisitor visitor)
return visitor.accept(this);
|
public void | createForeignKey()
if ( constrained && referencedPropertyName==null) {
//TODO: handle the case of a foreign key to something other than the pk
createForeignKeyOfEntity( ( (EntityType) getType() ).getAssociatedEntityName() );
}
|
public java.util.List | getConstraintColumns()
ArrayList list = new ArrayList();
Iterator iter = identifier.getColumnIterator();
while ( iter.hasNext() ) list.add( iter.next() );
return list;
|
public java.lang.String | getEntityName()
return entityName;
|
public org.hibernate.type.ForeignKeyDirection | getForeignKeyType()Returns the foreignKeyType.
return foreignKeyType;
|
public KeyValue | getIdentifier()Returns the identifier.
return identifier;
|
public java.lang.String | getPropertyName()
return propertyName;
|
public org.hibernate.type.Type | getType()
if ( getColumnIterator().hasNext() ) {
return new SpecialOneToOneType(
getReferencedEntityName(),
foreignKeyType,
referencedPropertyName,
isLazy(),
isUnwrapProxy(),
entityName,
propertyName
);
}
else {
return TypeFactory.oneToOne(
getReferencedEntityName(),
foreignKeyType,
referencedPropertyName,
isLazy(),
isUnwrapProxy(),
isEmbedded(),
entityName,
propertyName
);
}
|
public boolean | isConstrained()Returns the constrained.
return constrained;
|
public boolean | isNullable()
return !constrained;
|
public void | setConstrained(boolean constrained)Sets the constrained.
this.constrained = constrained;
|
public void | setEntityName(java.lang.String propertyName)
this.entityName = entityName==null ? null : entityName.intern();
|
public void | setForeignKeyType(org.hibernate.type.ForeignKeyDirection foreignKeyType)Sets the foreignKeyType.
this.foreignKeyType = foreignKeyType;
|
public void | setIdentifier(KeyValue identifier)Sets the identifier.
this.identifier = identifier;
|
public void | setPropertyName(java.lang.String propertyName)
this.propertyName = propertyName==null ? null : propertyName.intern();
|