001package io.ebeaninternal.dbmigration.ddlgeneration.platform; 002 003public class DdlHelp { 004 public static final String DROP_DEFAULT = "DROP DEFAULT"; 005 006 public static final String DROP_COMMENT = "DROP COMMENT"; 007 008 public static final String DROP_CONSTRAINT = "DROP CONSTRAINT"; 009 010 public static final String DROP_FOREIGN_KEY = "DROP FOREIGN KEY"; 011 012 /** 013 * Return true if the default value is the special DROP DEFAULT value. 014 */ 015 public static boolean isDropDefault(String value) { 016 return DROP_DEFAULT.equals(value); 017 } 018 019 /** 020 * Return true if the default value is the special DROP COMMENT value. 021 */ 022 public static boolean isDropComment(String value) { 023 return DROP_COMMENT.equals(value); 024 } 025 026 /** 027 * Return true if the default value is the special DROP CONSTRAINT value. 028 */ 029 public static boolean isDropConstraint(String value) { 030 return DROP_CONSTRAINT.equals(value); 031 } 032 033 /** 034 * Return true if the default value is the special DROP FOREIGN KEY value. 035 */ 036 public static boolean isDropForeignKey(String value) { 037 return DROP_FOREIGN_KEY.equals(value); 038 } 039}