public class DurationStringType extends Object implements Convertible<java.time.Duration,String>
Java java.time.Duration
to JDBC DURATION
.Constructor and Description |
---|
DurationStringType() |
DurationStringType(String pattern) |
Modifier and Type | Method and Description |
---|---|
ColumnType |
getColumnType() |
Class<java.time.Duration> |
getType() |
java.time.Duration |
toAttribute(String jdbc)
Convert the jdbc value to attribute format or type
|
String |
toJdbc(java.time.Duration attribute)
Convert attribute to jdbc format or type
|
String |
toString() |
public DurationStringType()
public DurationStringType(String pattern)
public String toJdbc(java.time.Duration attribute)
Convertible
toJdbc
in interface Convertible<java.time.Duration,String>
attribute
- the value of to be convertedpublic java.time.Duration toAttribute(String jdbc)
Convertible
toAttribute
in interface Convertible<java.time.Duration,String>
jdbc
- the value stored at databasepublic Class<java.time.Duration> getType()
getType
in interface Convertible<java.time.Duration,String>
public ColumnType getColumnType()
getColumnType
in interface Convertible<java.time.Duration,String>
Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.