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

src.com.ibm.as400.access.SQLNVarchar Maven / Gradle / Ivy

There is a newer version: 20.0.8
Show newest version
///////////////////////////////////////////////////////////////////////////////
//                                                                             
// JTOpen (IBM Toolbox for Java - OSS version)                                 
//                                                                             
// Filename: SQLNVarchar.java
//                                                                             
// The source code contained herein is licensed under the IBM Public License   
// Version 1.0, which has been approved by the Open Source Initiative.         
// Copyright (C) 2006-2006 International Business Machines Corporation and     
// others. All rights reserved.                                                
//                                                                             
///////////////////////////////////////////////////////////////////////////////

package com.ibm.as400.access;


//@PDA jdbc40 new class

final class SQLNVarchar
extends SQLVarcharBase
{
   
    // Note: maxLength is in bytes not counting 2 for LL.
    //
    SQLNVarchar(int maxLength, SQLConversionSettings settings)
    {
        super(settings, 0, maxLength, ""); 
    }

    public Object clone()
    {
        return new SQLNVarchar(maxLength_, settings_);
    }



    //---------------------------------------------------------//
    //                                                         //
    // DESCRIPTION OF SQL TYPE                                 //
    //                                                         //
    //---------------------------------------------------------//

    public int getSQLType()
    {
        return SQLData.NVARCHAR;
    }


    public String getLocalName()
    {
        return "NVARCHAR";
    }

    public int getType()
    {
    	/* ifdef JDBC40 
        return java.sql.Types.NVARCHAR;
        endif */ 
    	/* ifndef JDBC40 */
        return java.sql.Types.VARCHAR;
    	/* endif */ 
    }

    public String getTypeName()
    {
    	/* ifdef JDBC40 
        return "NVARCHAR";
        endif */ 
    	
    	/* ifndef JDBC40 */
        return "VARCHAR";
    	/* endif */ 
    }


}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy