
com.github.jinahya.database.metadata.bind.Function Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of database-metadata-bind Show documentation
Show all versions of database-metadata-bind Show documentation
bindings for java.sql.DatabaseMetaData
/*
* 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.database.metadata.bind;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Logger;
import static java.util.logging.Logger.getLogger;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* An entity class for binding the result of
* {@link java.sql.DatabaseMetaData#getFunctions(java.lang.String, java.lang.String, java.lang.String)}.
*
* @author Jin Kwon <jinahya_at_gmail.com>
* @see java.sql.DatabaseMetaData#getFunctions(java.lang.String,
* java.lang.String, java.lang.String)
* @see MetadataContext#getFunctions(java.lang.String, java.lang.String,
* java.lang.String)
*/
@XmlRootElement
@XmlType(propOrder = {
"functionName", "remarks", "functionType", "specificName",
// -------------------------------------------------------------------------
"functionColumns"
})
public class Function implements Serializable {
private static final long serialVersionUID = -3318947900237453301L;
// -------------------------------------------------------------------------
private static final Logger logger = getLogger(Function.class.getName());
// -------------------------------------------------------------------------
@Override
public String toString() {
return super.toString() + "{"
+ "functionCat=" + functionCat
+ ",functionSchem=" + functionSchem
+ ",functionName=" + functionName
+ ",remarks=" + remarks
+ ",functionType=" + functionType
+ ",specificName=" + specificName
+ "}";
}
// ------------------------------------------------------------- functionCat
public String getFunctionCat() {
return functionCat;
}
public void setFunctionCat(final String functionCat) {
this.functionCat = functionCat;
}
// ----------------------------------------------------------- functionSchem
public String getFunctionSchem() {
return functionSchem;
}
public void setFunctionSchem(final String functionSchem) {
this.functionSchem = functionSchem;
}
// ------------------------------------------------------------ functionName
public String getFunctionName() {
return functionName;
}
public void setFunctionName(final String functionName) {
this.functionName = functionName;
}
// ----------------------------------------------------------------- remarks
public String getRemarks() {
return remarks;
}
public void setRemarks(final String remarks) {
this.remarks = remarks;
}
// ------------------------------------------------------------ functionType
public short getFunctionType() {
return functionType;
}
public void setFunctionType(final short functionType) {
this.functionType = functionType;
}
// ------------------------------------------------------------ specificName
public String getSpecificName() {
return specificName;
}
public void setSpecificName(final String specificName) {
this.specificName = specificName;
}
// --------------------------------------------------------- functionColumns
public List getFunctionColumns() {
if (functionColumns == null) {
functionColumns = new ArrayList();
}
return functionColumns;
}
// -------------------------------------------------------------------------
@XmlAttribute
@Label("FUNCTION_CAT")
@Bind(label = "FUNCTION_CAT", nillable = true)
@Nillable
private String functionCat;
@XmlAttribute
@Label("FUNCTION_SCHEM")
@Bind(label = "FUNCTION_SCHEM", nillable = true)
@Nillable
private String functionSchem;
// -------------------------------------------------------------------------
@XmlElement
@Label("FUNCTION_NAME")
@Bind(label = "FUNCTION_NAME")
private String functionName;
@XmlElement
@Label("REMARKS")
@Bind(label = "REMARKS")
private String remarks;
@XmlElement
@Label("FUNCTION_TYPE")
@Bind(label = "FUNCTION_TYPE")
private short functionType;
@XmlElement
@Label("SPECIFIC_NAME")
@Bind(label = "SPECIFIC_NAME")
private String specificName;
// -------------------------------------------------------------------------
@XmlElementRef
@Invoke(name = "getFunctionColumns",
types = {String.class, String.class, String.class, String.class},
parameters = {
@Literals({":functionCat", ":functionSchem", ":functionName",
"null"})
}
)
private List functionColumns;
// -------------------------------------------------------------------------
@Deprecated
private Schema schema;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy