1 /****************************************************************************** 2 * The contents of this file are subject to the Compiere License Version 1.1 3 * ("License"); You may not use this file except in compliance with the License 4 * You may obtain a copy of the License at http://www.compiere.org/license.html 5 * Software distributed under the License is distributed on an "AS IS" basis, 6 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 7 * the specific language governing rights and limitations under the License. 8 * The Original Code is Compiere ERP & CRM Smart Business Solution 9 * The Initial Developer of the Original Code is Jorg Janke and ComPiere, Inc. 10 * Portions created by Jorg Janke are Copyright (C) 1999-2003 Jorg Janke, parts 11 * created by ComPiere are Copyright (C) ComPiere, Inc.; All Rights Reserved. 12 * Contributor(s): ______________________________________. 13 *****************************************************************************/ 14 package org.compiere.util; 15 16 import java.io.*; 17 18 /** 19 * Null Parameter for CompiereStatement 20 * 21 * @author Jorg Janke 22 * @version $Id: NullParameter.java,v 1.3 2003/09/27 01:22:18 jjanke Exp $ 23 */ 24 public class NullParameter implements Serializable 25 { 26 /** 27 * Cosntructor 28 * @param type SQL Type java.sql.Types.* 29 */ 30 public NullParameter(int type) 31 { 32 m_type = type; 33 } // NullParameter 34 35 private int m_type = -1; 36 37 /** 38 * Get Type 39 * @return type 40 */ 41 public int getType() 42 { 43 return m_type; 44 } // getType 45 46 /** 47 * String representation 48 * @return info 49 */ 50 public String toString() 51 { 52 return "NullParameter Type=" + m_type; 53 } // toString 54 55 } // NullParameter 56