[#1584] Code generation error with Oracle UDT static functions -

Regenerated source code
This commit is contained in:
Lukas Eder 2012-08-01 09:59:28 +02:00
parent 7a56784539
commit e3d0935070
4 changed files with 214 additions and 2 deletions

View File

@ -8,7 +8,7 @@ package org.jooq.test.oracle.generatedclasses.test.udt;
*/
public class UAuthorType extends org.jooq.impl.UDTImpl<org.jooq.test.oracle.generatedclasses.test.udt.records.UAuthorTypeRecord> implements org.jooq.Package {
private static final long serialVersionUID = -1044218711;
private static final long serialVersionUID = -1614034680;
/**
* The singleton instance of TEST.U_AUTHOR_TYPE
@ -76,6 +76,44 @@ public class UAuthorType extends org.jooq.impl.UDTImpl<org.jooq.test.oracle.gene
return f.asField();
}
/**
* Call TEST.U_AUTHOR_TYPE.GET_AUTHOR
*
* @param pId
* @throws org.jooq.exception.DataAccessException if something went wrong executing the query
*/
public static org.jooq.test.oracle.generatedclasses.test.udt.records.UAuthorTypeRecord getAuthor(org.jooq.Configuration configuration, java.lang.Number pId) {
org.jooq.test.oracle.generatedclasses.test.udt.u_author_type.GetAuthor f = new org.jooq.test.oracle.generatedclasses.test.udt.u_author_type.GetAuthor();
f.setPId(pId);
f.execute(configuration);
return f.getReturnValue();
}
/**
* Get TEST.U_AUTHOR_TYPE.GET_AUTHOR as a field
*
* @param pId
*/
public static org.jooq.Field<org.jooq.test.oracle.generatedclasses.test.udt.records.UAuthorTypeRecord> getAuthor(java.lang.Number pId) {
org.jooq.test.oracle.generatedclasses.test.udt.u_author_type.GetAuthor f = new org.jooq.test.oracle.generatedclasses.test.udt.u_author_type.GetAuthor();
f.setPId(pId);
return f.asField();
}
/**
* Get TEST.U_AUTHOR_TYPE.GET_AUTHOR as a field
*
* @param pId
*/
public static org.jooq.Field<org.jooq.test.oracle.generatedclasses.test.udt.records.UAuthorTypeRecord> getAuthor(org.jooq.Field<? extends java.lang.Number> pId) {
org.jooq.test.oracle.generatedclasses.test.udt.u_author_type.GetAuthor f = new org.jooq.test.oracle.generatedclasses.test.udt.u_author_type.GetAuthor();
f.setPId(pId);
return f.asField();
}
/**
* Call TEST.U_AUTHOR_TYPE.GET_BOOKS
*
@ -107,6 +145,25 @@ public class UAuthorType extends org.jooq.impl.UDTImpl<org.jooq.test.oracle.gene
return p.getSelf();
}
/**
* Call TEST.U_AUTHOR_TYPE.NEW_AUTHOR
*
* @param pId IN parameter
* @param pFirstName IN parameter
* @param pLastName IN parameter
* @param pAuthor OUT parameter
* @throws org.jooq.exception.DataAccessException if something went wrong executing the query
*/
public static org.jooq.test.oracle.generatedclasses.test.udt.records.UAuthorTypeRecord newAuthor(org.jooq.Configuration configuration, java.lang.Number pId, java.lang.String pFirstName, java.lang.String pLastName) {
org.jooq.test.oracle.generatedclasses.test.udt.u_author_type.NewAuthor p = new org.jooq.test.oracle.generatedclasses.test.udt.u_author_type.NewAuthor();
p.setPId(pId);
p.setPFirstName(pFirstName);
p.setPLastName(pLastName);
p.execute(configuration);
return p.getPAuthor();
}
/**
* No further instances allowed
*/

View File

@ -8,7 +8,7 @@ package org.jooq.test.oracle.generatedclasses.test.udt.records;
*/
public class UAuthorTypeRecord extends org.jooq.impl.UDTRecordImpl<org.jooq.test.oracle.generatedclasses.test.udt.records.UAuthorTypeRecord> {
private static final long serialVersionUID = -1269981274;
private static final long serialVersionUID = 1373791556;
/**
@ -67,6 +67,20 @@ public class UAuthorTypeRecord extends org.jooq.impl.UDTRecordImpl<org.jooq.test
return f.getReturnValue();
}
/**
* Call TEST.U_AUTHOR_TYPE.GET_AUTHOR
*
* @param pId
* @throws org.jooq.exception.DataAccessException if something went wrong executing the query
*/
public static org.jooq.test.oracle.generatedclasses.test.udt.records.UAuthorTypeRecord getAuthor(org.jooq.Configuration configuration, java.lang.Number pId) {
org.jooq.test.oracle.generatedclasses.test.udt.u_author_type.GetAuthor f = new org.jooq.test.oracle.generatedclasses.test.udt.u_author_type.GetAuthor();
f.setPId(pId);
f.execute(configuration);
return f.getReturnValue();
}
/**
* Call TEST.U_AUTHOR_TYPE.GET_BOOKS
*
@ -100,6 +114,25 @@ public class UAuthorTypeRecord extends org.jooq.impl.UDTRecordImpl<org.jooq.test
return p.getSelf();
}
/**
* Call TEST.U_AUTHOR_TYPE.NEW_AUTHOR
*
* @param pId IN parameter
* @param pFirstName IN parameter
* @param pLastName IN parameter
* @param pAuthor OUT parameter
* @throws org.jooq.exception.DataAccessException if something went wrong executing the query
*/
public static org.jooq.test.oracle.generatedclasses.test.udt.records.UAuthorTypeRecord newAuthor(org.jooq.Configuration configuration, java.lang.Number pId, java.lang.String pFirstName, java.lang.String pLastName) {
org.jooq.test.oracle.generatedclasses.test.udt.u_author_type.NewAuthor p = new org.jooq.test.oracle.generatedclasses.test.udt.u_author_type.NewAuthor();
p.setPId(pId);
p.setPFirstName(pFirstName);
p.setPLastName(pLastName);
p.execute(configuration);
return p.getPAuthor();
}
public UAuthorTypeRecord() {
super(org.jooq.test.oracle.generatedclasses.test.udt.UAuthorType.U_AUTHOR_TYPE);
}

View File

@ -0,0 +1,49 @@
/**
* This class is generated by jOOQ
*/
package org.jooq.test.oracle.generatedclasses.test.udt.u_author_type;
/**
* This class is generated by jOOQ.
*/
public class GetAuthor extends org.jooq.impl.AbstractRoutine<org.jooq.test.oracle.generatedclasses.test.udt.records.UAuthorTypeRecord> {
private static final long serialVersionUID = 939162672;
/**
* The procedure parameter <code>TEST.U_AUTHOR_TYPE.GET_AUTHOR.RETURN_VALUE</code>
*/
public static final org.jooq.Parameter<org.jooq.test.oracle.generatedclasses.test.udt.records.UAuthorTypeRecord> RETURN_VALUE = createParameter("RETURN_VALUE", org.jooq.test.oracle.generatedclasses.test.udt.UAuthorType.U_AUTHOR_TYPE.getDataType());
/**
* The procedure parameter <code>TEST.U_AUTHOR_TYPE.GET_AUTHOR.P_ID</code>
*/
public static final org.jooq.Parameter<java.math.BigDecimal> P_ID = createParameter("P_ID", org.jooq.impl.SQLDataType.NUMERIC);
/**
* Create a new routine call instance
*/
public GetAuthor() {
super("GET_AUTHOR", org.jooq.test.oracle.generatedclasses.test.Test.TEST, org.jooq.test.oracle.generatedclasses.test.udt.UAuthorType.U_AUTHOR_TYPE, org.jooq.test.oracle.generatedclasses.test.udt.UAuthorType.U_AUTHOR_TYPE.getDataType());
setReturnParameter(RETURN_VALUE);
addInParameter(P_ID);
}
/**
* Set the <code>P_ID</code> parameter IN value to the routine
*/
public void setPId(java.lang.Number value) {
setNumber(org.jooq.test.oracle.generatedclasses.test.udt.u_author_type.GetAuthor.P_ID, value);
}
/**
* Set the <code>P_ID</code> parameter to the function
* <p>
* Use this method only, if the function is called as a {@link org.jooq.Field} in a {@link org.jooq.Select} statement!
*/
public void setPId(org.jooq.Field<? extends java.lang.Number> field) {
setNumber(P_ID, field);
}
}

View File

@ -0,0 +1,73 @@
/**
* This class is generated by jOOQ
*/
package org.jooq.test.oracle.generatedclasses.test.udt.u_author_type;
/**
* This class is generated by jOOQ.
*/
public class NewAuthor extends org.jooq.impl.AbstractRoutine<java.lang.Void> {
private static final long serialVersionUID = 947405937;
/**
* The procedure parameter <code>TEST.U_AUTHOR_TYPE.NEW_AUTHOR.P_ID</code>
*/
public static final org.jooq.Parameter<java.math.BigDecimal> P_ID = createParameter("P_ID", org.jooq.impl.SQLDataType.NUMERIC);
/**
* The procedure parameter <code>TEST.U_AUTHOR_TYPE.NEW_AUTHOR.P_FIRST_NAME</code>
*/
public static final org.jooq.Parameter<java.lang.String> P_FIRST_NAME = createParameter("P_FIRST_NAME", org.jooq.impl.SQLDataType.VARCHAR);
/**
* The procedure parameter <code>TEST.U_AUTHOR_TYPE.NEW_AUTHOR.P_LAST_NAME</code>
*/
public static final org.jooq.Parameter<java.lang.String> P_LAST_NAME = createParameter("P_LAST_NAME", org.jooq.impl.SQLDataType.VARCHAR);
/**
* The procedure parameter <code>TEST.U_AUTHOR_TYPE.NEW_AUTHOR.P_AUTHOR</code>
*/
public static final org.jooq.Parameter<org.jooq.test.oracle.generatedclasses.test.udt.records.UAuthorTypeRecord> P_AUTHOR = createParameter("P_AUTHOR", org.jooq.test.oracle.generatedclasses.test.udt.UAuthorType.U_AUTHOR_TYPE.getDataType());
/**
* Create a new routine call instance
*/
public NewAuthor() {
super("NEW_AUTHOR", org.jooq.test.oracle.generatedclasses.test.Test.TEST, org.jooq.test.oracle.generatedclasses.test.udt.UAuthorType.U_AUTHOR_TYPE);
addInParameter(P_ID);
addInParameter(P_FIRST_NAME);
addInParameter(P_LAST_NAME);
addOutParameter(P_AUTHOR);
}
/**
* Set the <code>P_ID</code> parameter IN value to the routine
*/
public void setPId(java.lang.Number value) {
setNumber(org.jooq.test.oracle.generatedclasses.test.udt.u_author_type.NewAuthor.P_ID, value);
}
/**
* Set the <code>P_FIRST_NAME</code> parameter IN value to the routine
*/
public void setPFirstName(java.lang.String value) {
setValue(org.jooq.test.oracle.generatedclasses.test.udt.u_author_type.NewAuthor.P_FIRST_NAME, value);
}
/**
* Set the <code>P_LAST_NAME</code> parameter IN value to the routine
*/
public void setPLastName(java.lang.String value) {
setValue(org.jooq.test.oracle.generatedclasses.test.udt.u_author_type.NewAuthor.P_LAST_NAME, value);
}
/**
* Get the <code>P_AUTHOR</code> parameter OUT value from the routine
*/
public org.jooq.test.oracle.generatedclasses.test.udt.records.UAuthorTypeRecord getPAuthor() {
return getValue(P_AUTHOR);
}
}