com.scudata.util.TranSybase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of esproc Show documentation
Show all versions of esproc Show documentation
SPL(Structured Process Language) A programming language specially for structured data computing.
package com.scudata.util;
import java.sql.*;
public class TranSybase
{
public static int TYPE_SYBASE_TIMESTAMP = 3;
public static Object tran(int type, Object val) throws SQLException {
if (type == TYPE_SYBASE_TIMESTAMP && val instanceof Timestamp) {
Timestamp dv = (Timestamp) val;
if (dv != null) {
return new Timestamp(dv.getTime());
}
else {
return null;
}
}
return val;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy