Package org.h2gis.functions.io.dbf
Class DBFWrite
- java.lang.Object
-
- org.h2gis.api.AbstractFunction
-
- org.h2gis.functions.io.dbf.DBFWrite
-
- All Implemented Interfaces:
org.h2gis.api.Function,org.h2gis.api.ScalarFunction
public class DBFWrite extends org.h2gis.api.AbstractFunction implements org.h2gis.api.ScalarFunction- Author:
- Nicolas Fortin, Erwan Bocher, CNRS
-
-
Constructor Summary
Constructors Constructor Description DBFWrite()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidexportTable(Connection connection, String fileName, String tableReference)static voidexportTable(Connection connection, String fileName, String tableReference, String encoding, boolean deleteFile)Read a table and write it into a dbf file.static voidexportTable(Connection connection, String fileName, String tableReference, org.h2.value.Value option)Read a table and write it into a dbf file.StringgetJavaStaticMethod()-
Methods inherited from class org.h2gis.api.AbstractFunction
addProperty, getProperty, removeProperty
-
-
-
-
Method Detail
-
getJavaStaticMethod
public String getJavaStaticMethod()
- Specified by:
getJavaStaticMethodin interfaceorg.h2gis.api.ScalarFunction
-
exportTable
public static void exportTable(Connection connection, String fileName, String tableReference) throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
exportTable
public static void exportTable(Connection connection, String fileName, String tableReference, String encoding, boolean deleteFile) throws IOException, SQLException
Read a table and write it into a dbf file.- Parameters:
connection- Active connectionfileName- Shape file name or URItableReference- Table name or select query Note : The select query must be enclosed in parenthesisencoding- charset encodingdeleteFile- true to delete output file- Throws:
IOExceptionSQLException
-
exportTable
public static void exportTable(Connection connection, String fileName, String tableReference, org.h2.value.Value option) throws IOException, SQLException
Read a table and write it into a dbf file.- Parameters:
connection- Active connectionfileName- Shape file name or URItableReference- Table name or select query Note : The select query must be enclosed in parenthesisoption- Could be string file encoding charset or boolean value to delete the existing file- Throws:
IOExceptionSQLException
-
-