Enum Class InlineViewStyle
- All Implemented Interfaces:
Serializable,Comparable<InlineViewStyle>,Constable
Styles of inline-views for different DBMS'es.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic InlineViewStyleforSession(Session session) Gets a suitable inline-view style for a session.abstract StringReturns the SQL head (opening) of the inline view.abstract StringReturns the SQL fragment for a single row of the inline view.abstract StringReturns the SQL separator between row items.abstract Stringterminator(String name, String[] columnNames) Returns the SQL terminator (closing) of the inline view.static InlineViewStyleReturns the enum constant of this class with the specified name.static InlineViewStyle[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MySQL
-
Oracle
-
Db2
-
INFORMIX1
-
INFORMIX2
-
DB2_ZOS
-
INFORMIX3
-
INFORMIX4
-
FIREBIRD
-
-
Field Details
-
example
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
forSession
Gets a suitable inline-view style for a session.- Parameters:
session- the database session- Returns:
- a suitable
InlineViewStylefor the given session
-
head
Returns the SQL head (opening) of the inline view.- Parameters:
columnNames- the column names of the inline view- Returns:
- the head SQL fragment
- Throws:
SQLException
-
item
public abstract String item(String[] values, String[] columnNames, int rowNumber) throws SQLException Returns the SQL fragment for a single row of the inline view.- Parameters:
values- the SQL literal values for the rowcolumnNames- the column names of the inline viewrowNumber- zero-based index of the row (first row may need column aliases)- Returns:
- the SQL fragment for the row
- Throws:
SQLException
-
separator
Returns the SQL separator between row items.- Returns:
- the separator SQL fragment
- Throws:
SQLException
-
terminator
Returns the SQL terminator (closing) of the inline view.- Parameters:
name- the alias name of the inline viewcolumnNames- the column names of the inline view- Returns:
- the terminator SQL fragment
- Throws:
SQLException
-