public final class ColumnMetadata
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
static ColumnMetadata |
getColumnMetadata(Path<?> path)
Returns this path's column metadata if present.
|
int |
getDigits()
the number of fractional digits
|
int |
getIndex() |
int |
getJdbcType() |
java.lang.String |
getName() |
static java.lang.String |
getName(Path<?> path)
Extract the column name for the given path, returns the path name, if no ColumnMetadata is attached
|
int |
getSize()
For char or date types this is the maximum number of characters, for numeric or decimal types this is precision.
|
boolean |
hasDigits() |
int |
hashCode() |
boolean |
hasJdbcType() |
boolean |
hasSize() |
boolean |
isNullable() |
static ColumnMetadata |
named(java.lang.String name)
Creates default column meta data with the given column name, but without
any type or constraint information.
|
ColumnMetadata |
notNull() |
ColumnMetadata |
ofType(int jdbcType) |
ColumnMetadata |
withDigits(int decimalDigits) |
ColumnMetadata |
withIndex(int index) |
ColumnMetadata |
withSize(int size) |
public static ColumnMetadata getColumnMetadata(Path<?> path)
public static java.lang.String getName(Path<?> path)
path
- patchpublic static ColumnMetadata named(java.lang.String name)
java.lang.NullPointerException
- if the name is nullpublic java.lang.String getName()
public int getIndex()
public ColumnMetadata withIndex(int index)
public int getJdbcType()
public boolean hasJdbcType()
public ColumnMetadata ofType(int jdbcType)
public boolean isNullable()
public ColumnMetadata notNull()
public int getSize()
public boolean hasSize()
public ColumnMetadata withSize(int size)
public int getDigits()
public boolean hasDigits()
public ColumnMetadata withDigits(int decimalDigits)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2007–2021 Querydsl. All rights reserved.