com.foundationdb.sql.jdbc.jdbc2.ArrayAssistant Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fdb-sql-layer-jdbc Show documentation
Show all versions of fdb-sql-layer-jdbc Show documentation
The FoundationDB SQL Layer Driver for JDBC4
package com.foundationdb.sql.jdbc.jdbc2;
/**
* Implement this interface and register the its instance to ArrayAssistantRegistry,
* to let Postgres driver to support more array type
*
* @author Minglei Tu
*/
public interface ArrayAssistant {
/**
* get array base type
*
* @return
*/
Class baseType();
/**
* build a array element from its binary bytes
*
* @param bytes
* @param pos
* @param len
* @return
*/
Object buildElement(byte[] bytes, int pos, int len);
/**
* build an array element from its literal string
*
* @param literal
* @return
*/
Object buildElement(String literal);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy