src.com.ibm.as400.access.SQLNVarchar Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jt400 Show documentation
Show all versions of jt400 Show documentation
The Open Source version of the IBM Toolbox for Java
///////////////////////////////////////////////////////////////////////////////
//
// 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