org.firebirdsql.jna.fbclient.ISC_BLOB_DESC Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jaybird Show documentation
Show all versions of jaybird Show documentation
JDBC Driver for the Firebird RDBMS
/*
* Firebird Open Source JDBC Driver
*
* Distributable under LGPL license.
* You may obtain a copy of the License at http://www.gnu.org/copyleft/lgpl.html
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* LGPL License for more details.
*
* This file was created by members of the firebird development team.
* All individual contributions remain the Copyright (C) of those
* individuals. Contributors to this file are either listed here or
* can be obtained from a source control history command.
*
* All rights reserved.
*/
package org.firebirdsql.jna.fbclient;
import com.sun.jna.Structure;
/**
* JNA wrapper for ISC_BLOB_DESC.
*
* This file was initially autogenerated by JNAerator, a tool written by Olivier Chafik that uses a few opensource projects..
*
*
* This file was modified manually, do not automatically regenerate!
*
* @since 3.0
*/
@Structure.FieldOrder({ "blob_desc_subtype", "blob_desc_charset", "blob_desc_segment_size", "blob_desc_field_name",
"blob_desc_relation_name" })
public class ISC_BLOB_DESC extends Structure {
public short blob_desc_subtype;
public short blob_desc_charset;
public short blob_desc_segment_size;
/// C type : ISC_UCHAR[32]
public byte[] blob_desc_field_name = new byte[32];
/// C type : ISC_UCHAR[32]
public byte[] blob_desc_relation_name = new byte[32];
public ISC_BLOB_DESC() {
super();
}
/**
* @param blob_desc_field_name C type : ISC_UCHAR[32]
* @param blob_desc_relation_name C type : ISC_UCHAR[32]
*/
public ISC_BLOB_DESC(short blob_desc_subtype, short blob_desc_charset, short blob_desc_segment_size, byte blob_desc_field_name[], byte blob_desc_relation_name[]) {
super();
this.blob_desc_subtype = blob_desc_subtype;
this.blob_desc_charset = blob_desc_charset;
this.blob_desc_segment_size = blob_desc_segment_size;
if (blob_desc_field_name.length != this.blob_desc_field_name.length)
throw new IllegalArgumentException("Wrong array size !");
this.blob_desc_field_name = blob_desc_field_name;
if (blob_desc_relation_name.length != this.blob_desc_relation_name.length)
throw new IllegalArgumentException("Wrong array size !");
this.blob_desc_relation_name = blob_desc_relation_name;
}
public static class ByReference extends ISC_BLOB_DESC implements Structure.ByReference {
}
public static class ByValue extends ISC_BLOB_DESC implements Structure.ByValue {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy