Package org.h2.value
Class ExtTypeInfoRow
- java.lang.Object
-
- org.h2.value.ExtTypeInfo
-
- org.h2.value.ExtTypeInfoRow
-
- All Implemented Interfaces:
HasSQL
public final class ExtTypeInfoRow extends ExtTypeInfo
Extended parameters of the ROW data type.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.LinkedHashMap<java.lang.String,TypeInfo>fieldsprivate inthash-
Fields inherited from interface org.h2.util.HasSQL
ADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS
-
-
Constructor Summary
Constructors Constructor Description ExtTypeInfoRow(java.util.LinkedHashMap<java.lang.String,TypeInfo> fields)Creates new instance of extended parameters of ROW data type.ExtTypeInfoRow(Typed[] fields)Creates new instance of extended parameters of ROW data type.ExtTypeInfoRow(Typed[] fields, int degree)Creates new instance of extended parameters of ROW data type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.Set<java.util.Map.Entry<java.lang.String,TypeInfo>>getFields()Returns fields.java.lang.StringBuildergetSQL(java.lang.StringBuilder builder, int sqlFlags)Appends the SQL statement of this object to the specified builder.inthashCode()-
Methods inherited from class org.h2.value.ExtTypeInfo
toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.h2.util.HasSQL
getSQL, getTraceSQL
-
-
-
-
Field Detail
-
fields
private final java.util.LinkedHashMap<java.lang.String,TypeInfo> fields
-
hash
private int hash
-
-
Constructor Detail
-
ExtTypeInfoRow
public ExtTypeInfoRow(Typed[] fields)
Creates new instance of extended parameters of ROW data type.- Parameters:
fields- fields
-
ExtTypeInfoRow
public ExtTypeInfoRow(Typed[] fields, int degree)
Creates new instance of extended parameters of ROW data type.- Parameters:
fields- fieldsdegree- number of fields to use
-
ExtTypeInfoRow
public ExtTypeInfoRow(java.util.LinkedHashMap<java.lang.String,TypeInfo> fields)
Creates new instance of extended parameters of ROW data type.- Parameters:
fields- fields
-
-
Method Detail
-
getFields
public java.util.Set<java.util.Map.Entry<java.lang.String,TypeInfo>> getFields()
Returns fields.- Returns:
- fields
-
getSQL
public java.lang.StringBuilder getSQL(java.lang.StringBuilder builder, int sqlFlags)Description copied from interface:HasSQLAppends the SQL statement of this object to the specified builder.- Parameters:
builder- string buildersqlFlags- formatting flags- Returns:
- the specified string builder
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-