Top Description Fields Constructors Methods
com.mysql.cj.util

public final Enum SearchMode

extends Enum<SearchMode>
Class Inheritance
Imports
java.util.Collections, .EnumSet, .Set

Search mode flags enumeration. Primarily used by StringInspector.

Field Summary

Modifier and TypeField and Description
public static final Set<SearchMode>
__BSE_COM_MYM_HNT_WS

Search mode: allow backslash escape, skip block comments, skip line comments, skip MySQL markers, skip hint blocks and skip white space.

public static final Set<SearchMode>
__BSE_MRK_COM_MYM_HNT_WS

Search mode: allow backslash escape, skip between markers, skip block comments, skip line comments, skip MySQL markers, skip hint blocks and skip white space.

public static final Set<SearchMode>
__BSE_MRK_WS

Search mode: allow backslash escape, skip between markers and skip white space.

public static final Set<SearchMode>
__COM_MYM_HNT_WS

Search mode: skip block comments, skip line comments, skip MySQL markers, skip hint blocks and skip white space.

public static final Set<SearchMode>
__FULL

Full search mode: allow backslash escape, skip between markers, skip block comments, skip line comments, skip MySQL markers, skip hint blocks and skip white space.

public static final Set<SearchMode>
__MRK_COM_MYM_HNT_WS

Search mode: skip between markers, skip block comments, skip line comments, skip MySQL markers, skip hint blocks and skip white space.

public static final Set<SearchMode>
__MRK_WS

Search mode: skip between markers and skip white space.

public static final Set<SearchMode>
__NONE

Empty search mode.

public static final SearchMode
ALLOW_BACKSLASH_ESCAPE

Allow backslash escapes.

public static final SearchMode
SKIP_BETWEEN_MARKERS

Skip between markers (quoted text, quoted identifiers, text between parentheses).

public static final SearchMode
SKIP_BLOCK_COMMENTS

Skip between block comments ("/* text...

public static final SearchMode
SKIP_HINT_BLOCKS

Skip hint blocks ("/*+ text...

public static final SearchMode
SKIP_LINE_COMMENTS

Skip line comments ("-- text...", "# text...").

public static final SearchMode
SKIP_MYSQL_MARKERS

Skip MySQL specific markers ("/*![12345]" and "*\/") but not their contents.

public static final SearchMode
SKIP_WHITE_SPACE

Skip white space.

public static final SearchMode
VOID

Dummy search mode.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static SearchMode
public static SearchMode[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

__BSE_COM_MYM_HNT_WSback to summary
public static final Set<SearchMode> __BSE_COM_MYM_HNT_WS

Search mode: allow backslash escape, skip block comments, skip line comments, skip MySQL markers, skip hint blocks and skip white space.

__BSE_MRK_COM_MYM_HNT_WSback to summary
public static final Set<SearchMode> __BSE_MRK_COM_MYM_HNT_WS

Search mode: allow backslash escape, skip between markers, skip block comments, skip line comments, skip MySQL markers, skip hint blocks and skip white space.

__BSE_MRK_WSback to summary
public static final Set<SearchMode> __BSE_MRK_WS

Search mode: allow backslash escape, skip between markers and skip white space.

__COM_MYM_HNT_WSback to summary
public static final Set<SearchMode> __COM_MYM_HNT_WS

Search mode: skip block comments, skip line comments, skip MySQL markers, skip hint blocks and skip white space.

__FULLback to summary
public static final Set<SearchMode> __FULL

Full search mode: allow backslash escape, skip between markers, skip block comments, skip line comments, skip MySQL markers, skip hint blocks and skip white space. This is technically equivalent to __BSE_MRK_COM_MYM_HNT_WS.

__MRK_COM_MYM_HNT_WSback to summary
public static final Set<SearchMode> __MRK_COM_MYM_HNT_WS

Search mode: skip between markers, skip block comments, skip line comments, skip MySQL markers, skip hint blocks and skip white space.

__MRK_WSback to summary
public static final Set<SearchMode> __MRK_WS

Search mode: skip between markers and skip white space.

__NONEback to summary
public static final Set<SearchMode> __NONE

Empty search mode. There must be at least one element so that the Set may be later duplicated if needed.

ALLOW_BACKSLASH_ESCAPEback to summary
public static final SearchMode ALLOW_BACKSLASH_ESCAPE

Allow backslash escapes.

SKIP_BETWEEN_MARKERSback to summary
public static final SearchMode SKIP_BETWEEN_MARKERS

Skip between markers (quoted text, quoted identifiers, text between parentheses).

SKIP_BLOCK_COMMENTSback to summary
public static final SearchMode SKIP_BLOCK_COMMENTS

Skip between block comments ("/* text... *\/") but not between hint blocks.

SKIP_HINT_BLOCKSback to summary
public static final SearchMode SKIP_HINT_BLOCKS

Skip hint blocks ("/*+ text... *\/").

SKIP_LINE_COMMENTSback to summary
public static final SearchMode SKIP_LINE_COMMENTS

Skip line comments ("-- text...", "# text...").

SKIP_MYSQL_MARKERSback to summary
public static final SearchMode SKIP_MYSQL_MARKERS

Skip MySQL specific markers ("/*![12345]" and "*\/") but not their contents.

SKIP_WHITE_SPACEback to summary
public static final SearchMode SKIP_WHITE_SPACE

Skip white space.

VOIDback to summary
public static final SearchMode VOID

Dummy search mode. Does nothing.

Constructor Detail

SearchModeback to summary
private SearchMode()

Method Detail

valueOfback to summary
public static SearchMode valueOf(String name)
valuesback to summary
public static SearchMode[] values()