⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 field.java

📁 Very Nice library for using ActiveX controls directly from java without heavy knowledge of JNI, simp
💻 JAVA
字号:
package com.jacob.samples.ado;

import com.jacob.com.Dispatch;
import com.jacob.com.Variant;

public class Field extends Dispatch {
	/**
	 * This constructor is used instead of a case operation to turn a Dispatch
	 * object into a wider object - it must exist in every wrapper class whose
	 * instances may be returned from method calls wrapped in VT_DISPATCH
	 * Variants.
	 */
	public Field(Dispatch d) {
		super(d);
	}

	public Variant getProperties() {
		return Dispatch.get(this, "Properties");
	}

	public int getActualSize() {
		return Dispatch.get(this, "ActualSize").getInt();
	}

	public int getAttributes() {
		return Dispatch.get(this, "Attributes").getInt();
	}

	public int getDefinedSize() {
		return Dispatch.get(this, "DefinedSize").getInt();
	}

	public String getName() {
		return Dispatch.get(this, "Name").toString();
	}

	public int getType() {
		return Dispatch.get(this, "Type").getInt();
	}

	public Variant getValue() {
		return Dispatch.get(this, "Value");
	}

	public void setValue(Variant pvar) {
		Dispatch.put(this, "Value", pvar);
	}

	public byte getPrecision() {
		return Dispatch.get(this, "Precision").getByte();
	}

	public byte getNumericScale() {
		return Dispatch.get(this, "NumericScale").getByte();
	}

	public void AppendChunk(Variant Data) {
		Dispatch.call(this, "AppendChunk", Data);
	}

	public Variant GetChunk(int Length) {
		return Dispatch.call(this, "GetChunk", new Variant(Length));
	}

	public Variant getOriginalValue() {
		return Dispatch.get(this, "OriginalValue");
	}

	public Variant getUnderlyingValue() {
		return Dispatch.get(this, "UnderlyingValue");
	}

	public Variant getDataFormat() {
		return Dispatch.get(this, "DataFormat");
	}

	public void setDataFormat(Variant ppiDF) {
		Dispatch.put(this, "DataFormat", ppiDF);
	}

	public void setPrecision(byte pb) {
		Dispatch.put(this, "Precision", new Variant(pb));
	}

	public void setNumericScale(byte pb) {
		Dispatch.put(this, "NumericScale", new Variant(pb));
	}

	public void setType(int pDataType) {
		Dispatch.put(this, "Type", new Variant(pDataType));
	}

	public void setDefinedSize(int pl) {
		Dispatch.put(this, "DefinedSize", new Variant(pl));
	}

	public void setAttributes(int pl) {
		Dispatch.put(this, "Attributes", new Variant(pl));
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -