|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.exception.TemplatedViolatedConstraintNameExtracter
public abstract class TemplatedViolatedConstraintNameExtracter
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 |
---|
public TemplatedViolatedConstraintNameExtracter()
Method Detail |
---|
protected java.lang.String extractUsingTemplate(java.lang.String templateStart, java.lang.String templateEnd, java.lang.String message)
templateStart
- The pattern denoting the start of the constraint name within the message.templateEnd
- The pattern denoting the end of the constraint name within the message.message
- The templated error message containing the constraint name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |