MCPcopy Create free account
hub / github.com/cmu-db/benchbase / getString

Method getString

src/main/java/com/oltpbenchmark/util/SQLUtil.java:121–135  ·  view source on GitHub ↗
(Object obj)

Source from the content-addressed store, hash-verified

119 }
120
121 public static String getString(Object obj) {
122 if (obj == null) {
123 return (null);
124 }
125
126 if (obj instanceof String) {
127 return (String) obj;
128 } else if (obj instanceof BigDecimal bigDecimal) {
129 return bigDecimal.toString();
130 }
131
132 LOG.warn("BAD BAD BAD: returning null because getString does not support {}", obj.getClass());
133
134 return (null);
135 }
136
137 /**
138 * Support for Oracle DB introduced TIMESTAMP fields in Oracle DDL (for example, auctionmark

Callers 15

loadConfigProfileMethod · 0.95
loadItemsMethod · 0.95
processItemRecordMethod · 0.95
executeGetUserInfoMethod · 0.95
executeNewCommentMethod · 0.95
loadConfigProfileMethod · 0.95
loadConfigHistogramsMethod · 0.95
loadCodeXrefMethod · 0.95
loadCachedFlightsMethod · 0.95
mainMethod · 0.80

Calls 2

getClassMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected