![JAR search and dependency download from the Maven repository](/logo.png)
scala.read.objectid.ssp Maven / Gradle / Ivy
The newest version!
<%@ val renderType: com.foursquare.spindle.codegen.runtime.ObjectIdRenderType %>
<%@ val lhs: String %>
<%@ val indent: String %>
<%@ val wrapLeft: String = "" %>
<%@ val wrapRight: String = "" %>
<% render("../" + renderType.ref.fieldReadTemplate,
Map(
"renderType" -> renderType.ref,
"lhs" -> lhs,
"indent" -> indent,
"wrapLeft" -> (wrapLeft + "{ val bb: java.nio.ByteBuffer = "),
"wrapRight" -> ("; if (bb.hasArray && bb.array().length == 12) { new org.bson.types.ObjectId(bb.array()) } else { val a = new Array[Byte](12) ; bb.get(a) ; new org.bson.types.ObjectId(a) } }" + wrapRight))) %>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy