com.googlecode.paradox.data.table.value.BlobDescriptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of paradoxdriver Show documentation
Show all versions of paradoxdriver Show documentation
A Paradox Java Driver (using JDBC 4)
/*
* BlobDescriptor.java 12/22/2014 Copyright (C) 2014 Leonardo Alves da Costa This program is free software: you can
* redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later version. 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 GNU General Public License for more details. You should have received a
* copy of the GNU General Public License along with this program. If not, see .
*/
package com.googlecode.paradox.data.table.value;
import com.googlecode.paradox.metadata.BlobTable;
/**
* Describe the blob information from database file.
*
* @author Leonardo Alves da Costa
* @author Andre Mikhaylov
* @version 1.1
* @since 1.2
*/
public class BlobDescriptor {
/**
* The blob table.
*/
private final BlobTable file;
/**
* Blob file offset.
*/
private long offset;
/**
* The blob leader.
*/
private byte[] leader;
/**
* Creates a new instance.
*
* @param file
* the blob file reference.
*/
public BlobDescriptor(final BlobTable file) {
this.file = file;
}
/**
* Gets the blob file.
*
* @return the blob file.
*/
public final BlobTable getFile() {
return this.file;
}
/**
* Gets the blob offset.
*
* @return the blob offset.
*/
public final long getOffset() {
return this.offset;
}
/**
* Sets the blob offset.
*
* @param offset
* the blob offset.
*/
public final void setOffset(final long offset) {
this.offset = offset;
}
/**
* Gets the clob leader.
*
* @return the clob leader.
*/
public byte[] getLeader() {
return this.leader;
}
/**
* Sets the clob leader.
*
* @param leader
* the clob leader.
*/
public void setLeader(final byte[] leader) {
this.leader = leader;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy