public final class ColumnMetadata extends Object implements Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
equals(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() |
String |
getName() |
static String |
getName(Path<?> path) |
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(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 ColumnMetadata named(String name)
NullPointerException
- if the name is nullpublic 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)
Copyright © 2007–2015 Mysema Ltd. All rights reserved.