public interface TypeInfoMetaData
| Modifier and Type | Interface and Description |
|---|---|
static class |
TypeInfoMetaData.Hidden |
| Modifier and Type | Method and Description |
|---|---|
int |
getDecimals() |
int |
getJavaSqlTypeInt() |
short |
getNullable() |
int |
getPrecision() |
String |
getSqlTypeName() |
boolean |
isNoNulls() |
boolean |
isNullable() |
boolean |
isNullableUnknown() |
boolean |
isUnsigned() |
default Optional<String> |
javaSqlTypeName() |
static Optional<String> |
lookupJavaSqlType(int javaSqlTypeInt)
Looks up and returns the given int and returns the name of that int
according to
Types. |
static TypeInfoMetaData |
of(ResultSet rs) |
static TypeInfoMetaData |
of(String sqlTypeName,
int javaSqlTypeInt,
int precision,
int decimals,
short nullable,
boolean unsigned) |
static Optional<String> lookupJavaSqlType(int javaSqlTypeInt)
Types. If no value can be found,
Optional.empty() is returned.javaSqlTypeInt - the value in java.sql.Types to lookupTypesstatic TypeInfoMetaData of(ResultSet rs) throws SQLException
SQLExceptionstatic TypeInfoMetaData of(String sqlTypeName, int javaSqlTypeInt, int precision, int decimals, short nullable, boolean unsigned)
String getSqlTypeName()
int getJavaSqlTypeInt()
int getPrecision()
int getDecimals()
short getNullable()
boolean isNoNulls()
boolean isNullable()
boolean isNullableUnknown()
boolean isUnsigned()
Copyright © 2019 Speedment, Inc.. All rights reserved.