Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hibernate.exception
Class TemplatedViolatedConstraintNameExtracter  view TemplatedViolatedConstraintNameExtracter download TemplatedViolatedConstraintNameExtracter.java

java.lang.Object
  extended byorg.hibernate.exception.TemplatedViolatedConstraintNameExtracter
All Implemented Interfaces:
ViolatedConstraintNameExtracter

public abstract class TemplatedViolatedConstraintNameExtracter
extends java.lang.Object
implements ViolatedConstraintNameExtracter

Knows how to extract a violated constraint name from an error message based on the fact that the constraint name is templated within the message.


Constructor Summary
TemplatedViolatedConstraintNameExtracter()
           
 
Method Summary
protected  java.lang.String extractUsingTemplate(java.lang.String templateStart, java.lang.String templateEnd, java.lang.String message)
          Extracts the constraint name based on a template (i.e., templateStartconstraintNametemplateEnd).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.hibernate.exception.ViolatedConstraintNameExtracter
extractConstraintName
 

Constructor Detail

TemplatedViolatedConstraintNameExtracter

public TemplatedViolatedConstraintNameExtracter()
Method Detail

extractUsingTemplate

protected java.lang.String extractUsingTemplate(java.lang.String templateStart,
                                                java.lang.String templateEnd,
                                                java.lang.String message)
Extracts the constraint name based on a template (i.e., templateStartconstraintNametemplateEnd).