Class SqlHelper
- java.lang.Object
-
- com.healthmarketscience.jackcess.impl.SqlHelper
-
- Direct Known Subclasses:
SqlHelperImpl
public class SqlHelper extends Object
Helper class to isolate the java.sql module interactions from the core of jackcess (in java 9+ environments). If the module is enabled (indicating that the application is already using sql constructs), then jackcess will seamlessly interact with sql types. If the module is not enabled (indicating that the application is not using any sql constructs), then jackcess will not require the module in order to function otherwise normally. This base class is the "fallback" class if the java.sql module is not available.- Author:
- James Ahlborn
-
-
Constructor Summary
Constructors Constructor Description SqlHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBlobBytes(Object value)CharSequencegetClobString(Object value)IntegergetNewSqlType(String typeName)booleanisBlob(Object value)booleanisClob(Object value)
-
-
-
Field Detail
-
INSTANCE
public static final SqlHelper INSTANCE
-
-
Method Detail
-
isBlob
public boolean isBlob(Object value)
-
getBlobBytes
public byte[] getBlobBytes(Object value) throws IOException
- Throws:
IOException
-
isClob
public boolean isClob(Object value)
-
getClobString
public CharSequence getClobString(Object value) throws IOException
- Throws:
IOException
-
-