Class DefaultValueVisitor

java.lang.Object
org.hibernate.tool.internal.export.common.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 Details

    • DefaultValueVisitor

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

    • 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.BasicValue 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