Package org.apache.jena.jdbc.utils
Class JdbcNodeUtils
java.lang.Object
org.apache.jena.jdbc.utils.JdbcNodeUtils
Class with helpful utility methods for Jena JDBC
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Tries to convert a node to a booleanstatic byte
Tries to convert a node to a bytestatic Date
Tries to convert a node to a datestatic BigDecimal
Tries to convert a node to a decimalstatic double
Tries to convert a node to a doublestatic float
Tries to convert a node to a floatstatic int
Tries to convert a node to an integerstatic long
Tries to convert a node to a long integerstatic short
Tries to convert a node to a short integerstatic String
Tries to convert a now to a stringstatic Time
Tries to convert a node to a timestatic Timestamp
toTimestamp
(Node n) Tries to convert a node to a timestampstatic URL
Tries to convert a node to a URL
-
Method Details
-
toBoolean
Tries to convert a node to a boolean- Parameters:
n
- Node- Returns:
- Boolean
- Throws:
SQLException
- Thrown if the node cannot be converted
-
toByte
Tries to convert a node to a byte- Parameters:
n
- Node- Returns:
- Byte
- Throws:
SQLException
- Thrown if the node cannot be converted
-
toShort
Tries to convert a node to a short integer- Parameters:
n
- Node- Returns:
- Short Integer
- Throws:
SQLException
- Thrown if the node cannot be converted
-
toInt
Tries to convert a node to an integer- Parameters:
n
- Node- Returns:
- Integer
- Throws:
SQLException
- Thrown if the node cannot be converted
-
toLong
Tries to convert a node to a long integer- Parameters:
n
- Node- Returns:
- Long Integer
- Throws:
SQLException
- Thrown if the node cannot be converted
-
toFloat
Tries to convert a node to a float- Parameters:
n
- Node- Returns:
- Float
- Throws:
SQLException
- Thrown if the node cannot be converted
-
toDouble
Tries to convert a node to a double- Parameters:
n
- Node- Returns:
- Double
- Throws:
SQLException
- Thrown if the node cannot be converted
-
toDecimal
Tries to convert a node to a decimal- Parameters:
n
- Node- Returns:
- Decimal
- Throws:
SQLException
- Thrown if the node cannot be converted
-
toDate
Tries to convert a node to a date- Parameters:
n
- Node- Returns:
- Date
- Throws:
SQLException
- Thrown if the node cannot be converted
-
toTime
Tries to convert a node to a time- Parameters:
n
- Node- Returns:
- Time
- Throws:
SQLException
- Thrown if the node cannot be converted
-
toTimestamp
Tries to convert a node to a timestamp- Parameters:
n
- Node- Returns:
- Timestamp
- Throws:
SQLException
- Thrown if the node cannot be converted
-
toString
Tries to convert a now to a string- Parameters:
n
- Node- Returns:
- String
- Throws:
SQLException
- Thrown if the node cannot be converted
-
toURL
Tries to convert a node to a URL- Parameters:
n
- Node- Returns:
- URL or null
- Throws:
SQLException
- Thrown if the node cannot be converted
-