org.hibernate.tool.hbm2x.visitor
Class DefaultValueVisitor

java.lang.Object
  extended by org.hibernate.tool.hbm2x.visitor.DefaultValueVisitor
All Implemented Interfaces:
org.hibernate.mapping.ValueVisitor
Direct Known Subclasses:
EntityNameFromValueVisitor, HBMTagForValueVisitor, JavaTypeFromValueVisitor

public class DefaultValueVisitor
extends Object
implements org.hibernate.mapping.ValueVisitor

Default ValueVisitor which throws UnsupportedOperationException on all accepts. Can be changed by passing true to the constructor.

Author:
max

Constructor Summary
protected DefaultValueVisitor(boolean throwException)
           
 
Method Summary
 Object accept(org.hibernate.mapping.Any o)
           
 Object accept(org.hibernate.mapping.Array o)
           
 Object accept(org.hibernate.mapping.Bag o)
           
 Object accept(org.hibernate.mapping.Component o)
           
 Object accept(org.hibernate.mapping.DependantValue o)
           
 Object accept(org.hibernate.mapping.IdentifierBag o)
           
 Object accept(org.hibernate.mapping.List o)
           
 Object accept(org.hibernate.mapping.ManyToOne o)
           
 Object accept(org.hibernate.mapping.Map o)
           
 Object accept(org.hibernate.mapping.OneToMany o)
           
 Object accept(org.hibernate.mapping.OneToOne o)
           
 Object accept(org.hibernate.mapping.PrimitiveArray o)
           
 Object accept(org.hibernate.mapping.Set o)
           
 Object accept(org.hibernate.mapping.SimpleValue o)
           
protected  Object handle(org.hibernate.mapping.Value o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultValueVisitor

protected DefaultValueVisitor(boolean throwException)
Parameters:
throwException - if true exception will be thrown, otherwise return null in accept calls.
Method Detail

handle

protected Object handle(org.hibernate.mapping.Value o)

accept

public Object accept(org.hibernate.mapping.Bag o)
Specified by:
accept in interface org.hibernate.mapping.ValueVisitor

accept

public Object accept(org.hibernate.mapping.IdentifierBag o)
Specified by:
accept in interface org.hibernate.mapping.ValueVisitor

accept

public Object accept(org.hibernate.mapping.List o)
Specified by:
accept in interface org.hibernate.mapping.ValueVisitor

accept

public Object accept(org.hibernate.mapping.PrimitiveArray o)
Specified by:
accept in interface org.hibernate.mapping.ValueVisitor

accept

public Object accept(org.hibernate.mapping.Array o)
Specified by:
accept in interface org.hibernate.mapping.ValueVisitor

accept

public Object accept(org.hibernate.mapping.Map o)
Specified by:
accept in interface org.hibernate.mapping.ValueVisitor

accept

public Object accept(org.hibernate.mapping.OneToMany o)
Specified by:
accept in interface org.hibernate.mapping.ValueVisitor

accept

public Object accept(org.hibernate.mapping.Set o)
Specified by:
accept in interface org.hibernate.mapping.ValueVisitor

accept

public Object accept(org.hibernate.mapping.Any o)
Specified by:
accept in interface org.hibernate.mapping.ValueVisitor

accept

public Object accept(org.hibernate.mapping.SimpleValue o)
Specified by:
accept in interface org.hibernate.mapping.ValueVisitor

accept

public Object accept(org.hibernate.mapping.DependantValue o)
Specified by:
accept in interface org.hibernate.mapping.ValueVisitor

accept

public Object accept(org.hibernate.mapping.Component o)
Specified by:
accept in interface org.hibernate.mapping.ValueVisitor

accept

public Object accept(org.hibernate.mapping.ManyToOne o)
Specified by:
accept in interface org.hibernate.mapping.ValueVisitor

accept

public Object accept(org.hibernate.mapping.OneToOne o)
Specified by:
accept in interface org.hibernate.mapping.ValueVisitor