Enum Class JdbcArrayColumns.DefaultSupport
java.lang.Object
java.lang.Enum<JdbcArrayColumns.DefaultSupport>
org.springframework.data.jdbc.core.convert.JdbcArrayColumns.DefaultSupport
- All Implemented Interfaces:
Serializable
,Comparable<JdbcArrayColumns.DefaultSupport>
,Constable
,JdbcArrayColumns
,ArrayColumns
- Enclosing interface:
- JdbcArrayColumns
public static enum JdbcArrayColumns.DefaultSupport
extends Enum<JdbcArrayColumns.DefaultSupport>
implements JdbcArrayColumns
Default
ArrayColumns
implementation for dialects that do not support array-typed columns.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface org.springframework.data.jdbc.core.convert.JdbcArrayColumns
JdbcArrayColumns.DefaultSupport, JdbcArrayColumns.Unsupported
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetArrayTypeName
(SQLType jdbcType) boolean
Returns true if the dialect supports array-typed columns.Returns the enum constant of this class with the specified name.static JdbcArrayColumns.DefaultSupport[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface org.springframework.data.jdbc.core.convert.JdbcArrayColumns
getArrayType, getSqlType
-
Enum Constant Details
-
INSTANCE
-
-
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
-
isSupported
public boolean isSupported()Description copied from interface:ArrayColumns
Returns true if the dialect supports array-typed columns.- Specified by:
isSupported
in interfaceArrayColumns
- Returns:
- true if the dialect supports array-typed columns.
-
getArrayTypeName
Description copied from interface:JdbcArrayColumns
The appropriate SQL type as a String which should be used to represent the givenSQLType
in anArray
. Defaults to the name of the argument.- Specified by:
getArrayTypeName
in interfaceJdbcArrayColumns
- Parameters:
jdbcType
- theSQLType
value representing the type that should be stored in theArray
. Must not be null.- Returns:
- the appropriate SQL type as a String which should be used to represent the given
SQLType
in anArray
. Guaranteed to be not null.
-