
com.github.jinahya.sql.database.metadata.bind.ExportedKey Maven / Gradle / Ivy
/*
* Copyright 2013 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.XmlAttribute;
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 = {"pkcolumnName", "fktableCat", "fktableSchem",
"fktableName", "fkcolumnName", "keySeq", "updateRule",
"deleteRule", "fkName", "pkName", "deferrability"
})
public class ExportedKey {
// -------------------------------------------------------------- pktableCat
public String getPktableCat() {
return pktableCat;
}
// ------------------------------------------------------------ pktableSchem
public String getPktableSchem() {
return pktableSchem;
}
// ------------------------------------------------------------- pktableName
public String getPktableName() {
return pktableName;
}
// ------------------------------------------------------------ pkColumnName
public String getPkcolumnName() {
return pkcolumnName;
}
public void setPkcolumnName(final String pkcolumnName) {
this.pkcolumnName = pkcolumnName;
}
// -------------------------------------------------------------- fktableCat
public String getFktableCat() {
return fktableCat;
}
public void setFktableCat(final String fktableCat) {
this.fktableCat = fktableCat;
}
// ------------------------------------------------------------ fktableSchem
public String getFktableSchem() {
return fktableSchem;
}
public void setFktableSchem(final String fktableSchem) {
this.fktableSchem = fktableSchem;
}
// ------------------------------------------------------------- fktableName
public String getFktableName() {
return fktableName;
}
public void setFktableName(final String fktableName) {
this.fktableName = fktableName;
}
// ------------------------------------------------------------ fkcolumnName
public String getFkcolumnName() {
return fkcolumnName;
}
public void setFkcolumnName(final String fkcolumnName) {
this.fkcolumnName = fkcolumnName;
}
// ------------------------------------------------------------------ keySeq
public short getKeySeq() {
return keySeq;
}
public void setKeySeq(final short keySeq) {
this.keySeq = keySeq;
}
// -------------------------------------------------------------- updateRule
public short getUpdateRule() {
return updateRule;
}
public void setUpdateRule(short updateRule) {
this.updateRule = updateRule;
}
// -------------------------------------------------------------- deleteRule
public short getDeleteRule() {
return deleteRule;
}
public void setDeleteRule(final short deleteRule) {
this.deleteRule = deleteRule;
}
// ------------------------------------------------------------------ fnname
public String getFkName() {
return fkName;
}
public void setFkName(final String fkName) {
this.fkName = fkName;
}
// ------------------------------------------------------------------ pkName
public String getPkName() {
return pkName;
}
public void setPkName(final String pkName) {
this.pkName = pkName;
}
// --------------------------------------------------------- deferrerability
/**
* Returns current value of {@link #deferrability}.
*
* @return current value of {@link #deferrability}.
*/
public short getDeferrability() {
return deferrability;
}
/**
* Replaces value of {@link #deferrability} with given.
*
* @param deferrability new value for {@link #deferrability}
*/
public void setDeferrability(final short deferrability) {
this.deferrability = deferrability;
}
// ------------------------------------------------------------------- table
public Table getTable() {
return table;
}
@Label("PKTABLE_CAT")
@XmlAttribute
private String pktableCat;
@Label("PKTABLE_SCHEM")
@XmlAttribute
private String pktableSchem;
@Label("PKTABLE_NAME")
@XmlAttribute
private String pktableName;
@Label("PKCOLUMN_NAME")
@XmlElement(required = true)
private String pkcolumnName;
@Label("FKTABLE_CAT")
@XmlElement(nillable = true, required = true)
@NillableBySpecification
private String fktableCat;
@Label("FKTABLE_NAME")
@XmlElement(nillable = true, required = true)
@NillableBySpecification
private String fktableSchem;
@Label("FKTABLE_NAME")
@XmlElement(required = true)
private String fktableName;
@Label("FKCOLUMN_NAME")
@XmlElement(required = true)
private String fkcolumnName;
@Label("FKCOLUMN_NAME")
@XmlElement(required = true)
private short keySeq;
@Label("UPDATE_RULE")
@XmlElement(required = true)
private short updateRule;
@Label("DELETE_RULE")
@XmlElement(required = true)
private short deleteRule;
@Label("FK_NAME")
@XmlElement(required = true)
private String fkName;
@Label("PK_NAME")
@XmlElement(required = true)
private String pkName;
@Label("DEFERRABILITY")
@XmlElement(required = true)
private short deferrability;
@XmlTransient
private Table table;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy