
com.github.jinahya.sql.database.metadata.bind.BestRowIdentifier Maven / Gradle / Ivy
/*
* Copyright 2011 Jin Kwon .
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.jinahya.sql.database.metadata.bind;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlType;
/**
*
* @author Jin Kwon <jinahya_at_gmail.com>
*/
@XmlRootElement
@XmlType(
propOrder = {
"scope", "columnName", "dataType", "typeName", "columnSize",
"bufferLength", "decimalDigits", "pseudoColumn"
}
)
public class BestRowIdentifier {
// ------------------------------------------------------------------- scope
public short getScope() {
return scope;
}
public void setScope(final short scope) {
this.scope = scope;
}
// -------------------------------------------------------------- columnName
public String getColumnName() {
return columnName;
}
public void setColumnName(final String columnName) {
this.columnName = columnName;
}
// ---------------------------------------------------------------- dataType
public int getDataType() {
return dataType;
}
public void setDataType(final int dataType) {
this.dataType = dataType;
}
// ---------------------------------------------------------------- typeName
public String getTypeName() {
return typeName;
}
public void setTypeName(final String typeName) {
this.typeName = typeName;
}
// -------------------------------------------------------------- columnSize
public int getColumnSize() {
return columnSize;
}
public void setColumnSize(final int columnSize) {
this.columnSize = columnSize;
}
// ------------------------------------------------------------ bufferLength
public Integer getBufferLength() {
return bufferLength;
}
public void setBufferLength(final Integer bufferLength) {
this.bufferLength = bufferLength;
}
// ----------------------------------------------------------- decimalDigits
public Short getDecimalDigits() {
return decimalDigits;
}
public void setDecimalDigits(final Short decimalDigits) {
this.decimalDigits = decimalDigits;
}
// ------------------------------------------------------------ pseudoColumn
public short getPseudoColumn() {
return pseudoColumn;
}
public void setPseudoColumn(final short pseudoColumn) {
this.pseudoColumn = pseudoColumn;
}
// ------------------------------------------------------------------- table
public Table getTable() {
return table;
}
public void setTable(final Table table) {
this.table = table;
}
@Label("SCOPE")
@XmlElement(required = true)
private short scope;
@Label("COLUMN_NAME")
@XmlElement(required = true)
private String columnName;
@Label("DATA_TYPE")
@XmlElement(required = true)
private int dataType;
@Label("TYPE_NAME")
@XmlElement(required = true)
private String typeName;
@Label("COLUMN_SIZE")
@XmlElement(required = true)
private int columnSize;
@Label("BUFFER_LENGTH")
@Unused
@XmlElement(nillable = true, required = true)
private Integer bufferLength;
@Label("DECIMAL_DIGITS")
@NillableBySpecification
@XmlElement(nillable = true, required = true)
private Short decimalDigits;
@Label("PSEUDO_COLUMN")
@XmlElement(required = true)
private short pseudoColumn;
@XmlTransient
private Table table;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy