package org.seasar.doma.extension.gen.internal.message;

import org.seasar.doma.extension.gen.MessageResource;

/** @author taedium */
public enum Message implements MessageResource {
  DOMAGEN0001("The parameter '{0}' is null."),
  DOMAGEN0003("GenerationType.IDENTITY is not supported for the RDBMS '{0}'."),
  DOMAGEN0004("GenerationType.SEQUENCE is not supported for the RDBMS '{0}'."),
  DOMAGEN0005(
      "Cannot get any tables. Check parameters such as url, dialectName, tableNamePattern and so on."),
  DOMAGEN0007("The mandatory parameter '{0}' is not specified."),
  DOMAGEN0013("The class '{1}' to which the parameter '{0}' refers is not found. {2}"),
  DOMAGEN0014(
      "The class '{1}' to which the parameter '{0}' refers must be a subtype of the class '{2}'."),
  DOMAGEN0015(
      "The class '{1}' to which the parameter '{0}' refers cannot be instantiated. The class '{1}' must have a public default constructor. {2}"),
  DOMAGEN0017("The class '{0}' is used as a dialect class."),
  DOMAGEN0018(
      "The column '{1}' of the table '{0}' is not mapped to any Java classes. So it will be mapped to java.lang.String. (The column data type is {2} and the JDBC SQL type is {3})"),
  DOMAGEN0019("The file is created. {0}"),
  DOMAGEN0020("The file is overwritten. {0}"),
  DOMAGEN0021(
      "The column '{2}' which corresponds to the property '{1}' of the entity class '{0}' is not defined in the table '{3}'."),
  DOMAGEN0022(
      "Cannot infer the property '{1}' from the property '{0}'. Specify the property '{1}' explicitly."),

  DOMAGEN5001(
      "The JDBC driver may not be loaded. Check that the JDBC driver is in the classpath. If the JDBC driver is not loaded automatically, load it explicitly using Class.forName. ex) Class.forName(\"oracle.jdbc.driver.OracleDriver\")"),
  DOMAGEN5002("The url parameter is not specified."),

  DOMAGEN9001("The exception was thrown. {0}"),
  ;

  private final String messagePattern;

  private Message(String messagePattern) {
    this.messagePattern = messagePattern;
  }

  @Override
  public String getCode() {
    return name();
  }

  @Override
  public String getMessagePattern() {
    return messagePattern;
  }

  @Override
  public String getMessage(Object... args) {
    return MessageFormatter.getMessage(this, args);
  }
}

@@ -202,29 +202,31 @@
 e parameter 
-'%7B0%7D'
+%5C%22%7B0%7D%5C%22
  is null.%22),
@@ -288,37 +288,39 @@
 d for the RDBMS 
-'%7B0%7D'
+%5C%22%7B0%7D%5C%22
 .%22),%0A  DOMAGEN00
@@ -378,21 +378,23 @@
 e RDBMS 
-'%7B0%7D'
+%5C%22%7B0%7D%5C%22
 .%22),%0A  D
@@ -548,21 +548,23 @@
 rameter 
-'%7B0%7D'
+%5C%22%7B0%7D%5C%22
  is not 
@@ -594,37 +594,39 @@
 0013(%22The class 
-'%7B1%7D'
+%5C%22%7B1%7D%5C%22
  to which the pa
@@ -625,37 +625,39 @@
 h the parameter 
-'%7B0%7D'
+%5C%22%7B0%7D%5C%22
  refers is not f
@@ -693,37 +693,39 @@
      %22The class 
-'%7B1%7D'
+%5C%22%7B1%7D%5C%22
  to which the pa
@@ -724,37 +724,39 @@
 h the parameter 
-'%7B0%7D'
+%5C%22%7B0%7D%5C%22
  refers must be 
@@ -778,21 +778,23 @@
 e class 
-'%7B2%7D'
+%5C%22%7B2%7D%5C%22
 .%22),%0A  D
@@ -822,21 +822,23 @@
 e class 
-'%7B1%7D'
+%5C%22%7B1%7D%5C%22
  to whic
@@ -853,21 +853,23 @@
 rameter 
-'%7B0%7D'
+%5C%22%7B0%7D%5C%22
  refers 
@@ -902,21 +902,23 @@
 e class 
-'%7B1%7D'
+%5C%22%7B1%7D%5C%22
  must ha
@@ -978,29 +978,31 @@
 (%22The class 
-'%7B0%7D'
+%5C%22%7B0%7D%5C%22
  is used as 
@@ -1054,21 +1054,23 @@
  column 
-'%7B1%7D'
+%5C%22%7B1%7D%5C%22
  of the 
@@ -1075,21 +1075,23 @@
 e table 
-'%7B0%7D'
+%5C%22%7B0%7D%5C%22
  is not 
@@ -1349,13 +1349,15 @@
 umn 
-'%7B2%7D'
+%5C%22%7B2%7D%5C%22
  whi
@@ -1387,21 +1387,23 @@
 roperty 
-'%7B1%7D'
+%5C%22%7B1%7D%5C%22
  of the 
@@ -1415,21 +1415,23 @@
 y class 
-'%7B0%7D'
+%5C%22%7B0%7D%5C%22
  is not 
@@ -1455,13 +1455,15 @@
 ble 
-'%7B3%7D'
+%5C%22%7B3%7D%5C%22
 .%22),
@@ -1511,21 +1511,23 @@
 roperty 
-'%7B1%7D'
+%5C%22%7B1%7D%5C%22
  from th
@@ -1541,13 +1541,15 @@
 rty 
-'%7B0%7D'
+%5C%22%7B0%7D%5C%22
 . Sp
@@ -1571,13 +1571,15 @@
 rty 
-'%7B1%7D'
+%5C%22%7B1%7D%5C%22
  exp

Use a double quotation `"` to indicate message parameters