All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.scudata.util.TranSybase Maven / Gradle / Ivy

Go to download

SPL(Structured Process Language) A programming language specially for structured data computing.

The newest version!
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