T - the type of the columnC - the context type (typically an object holding some configurable values)public interface Column<T,C>
| Modifier and Type | Method and Description |
|---|---|
ColumnType<T> |
getType() |
boolean |
isColumnUsed(C context)
Returns whether this column should be used.
|
String |
resolveName(C context)
Returns the column's name, based on the context.
|
boolean |
useDefaultForNullValue(C context)
Returns whether the SQL keyword
DEFAULT should be used in
INSERT and UPDATE operations if the value associated with the column
is resolved to null. |
String resolveName(C context)
context - the context to resolve the name withColumnType<T> getType()
boolean isColumnUsed(C context)
context - the context to resolve the value withboolean useDefaultForNullValue(C context)
DEFAULT should be used in
INSERT and UPDATE operations if the value associated with the column
is resolved to null.context - the context to resolve the value withCopyright © 2017–2024. All rights reserved.