java.lang.Object
org.jooq.meta.AbstractDefinition
org.jooq.meta.AbstractRoutineDefinition
- All Implemented Interfaces:
Definition,RoutineDefinition
- Direct Known Subclasses:
FirebirdRoutineDefinition,H2RoutineDefinition,HSQLDBRoutineDefinition,MySQLRoutineDefinition,PostgresRoutineDefinition,XMLRoutineDefinition
public abstract class AbstractRoutineDefinition
extends AbstractDefinition
implements RoutineDefinition
- Author:
- Lukas Eder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ParameterDefinition>protected List<ParameterDefinition>protected List<ParameterDefinition>protected static final Patternprotected ParameterDefinitionprotected static final Pattern -
Constructor Summary
ConstructorsConstructorDescriptionAbstractRoutineDefinition(SchemaDefinition schema, PackageDefinition pkg, String name, String comment, String overload) AbstractRoutineDefinition(SchemaDefinition schema, PackageDefinition pkg, String name, String comment, String overload, boolean aggregate) -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidaddParameter(InOutDefinition inOut, ParameterDefinition parameter) final List<ParameterDefinition>A list of all IN, OUT, and INOUT parameter column definitionsfinal List<ParameterDefinition>A list of IN or INOUT parameter column definitionsfinal List<ParameterDefinition>A list of OUT or INOUT parameter column definitionsfinal DataTypeDefinitionfinal DataTypeDefinitiongetReturnType(JavaTypeResolver resolver) final ParameterDefinitionprotected voidinit()protected abstract voidinit0()final booleanbooleanMethods inherited from class org.jooq.meta.AbstractDefinition
create, create, equals, getCatalog, getComment, getConnection, getDatabase, getDefinitionPath, getDialect, getInputName, getName, getOutputName, getOverload, getPackage, getQualifiedInputName, getQualifiedInputNamePart, getQualifiedName, getQualifiedNamePart, getQualifiedOutputName, getQualifiedOutputNamePart, getSchema, getSource, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jooq.meta.Definition
getCatalog, getComment, getDatabase, getDefinitionPath, getInputName, getName, getOutputName, getOverload, getPackage, getQualifiedInputName, getQualifiedInputNamePart, getQualifiedName, getQualifiedNamePart, getQualifiedOutputName, getQualifiedOutputNamePart, getSchema, getSource, isSynthetic
-
Field Details
-
PARAMETER_PATTERN
-
TYPE_PATTERN
-
inParameters
-
outParameters
-
returnValue
-
allParameters
-
-
Constructor Details
-
AbstractRoutineDefinition
public AbstractRoutineDefinition(SchemaDefinition schema, PackageDefinition pkg, String name, String comment, String overload) -
AbstractRoutineDefinition
public AbstractRoutineDefinition(SchemaDefinition schema, PackageDefinition pkg, String name, String comment, String overload, boolean aggregate)
-
-
Method Details
-
init
protected void init() -
init0
- Throws:
SQLException
-
getInParameters
Description copied from interface:RoutineDefinitionA list of IN or INOUT parameter column definitions- Specified by:
getInParametersin interfaceRoutineDefinition
-
getOutParameters
Description copied from interface:RoutineDefinitionA list of OUT or INOUT parameter column definitions- Specified by:
getOutParametersin interfaceRoutineDefinition
-
getAllParameters
Description copied from interface:RoutineDefinitionA list of all IN, OUT, and INOUT parameter column definitions- Specified by:
getAllParametersin interfaceRoutineDefinition
-
getReturnValue
- Specified by:
getReturnValuein interfaceRoutineDefinition- Returns:
- The return value column definition
-
getReturnType
- Specified by:
getReturnTypein interfaceRoutineDefinition- Returns:
- The return value simple Java type
-
getReturnType
- Specified by:
getReturnTypein interfaceRoutineDefinition- Returns:
- The return value simple Java type
-
isSQLUsable
public boolean isSQLUsable()- Specified by:
isSQLUsablein interfaceRoutineDefinition- Returns:
- Whether this routine can be used in SQL (a function without OUT parameters)
-
isAggregate
public final boolean isAggregate()- Specified by:
isAggregatein interfaceRoutineDefinition- Returns:
- Whether this routine is an aggregate function
-
addParameter
-