Package org.apache.beehive.controls.system.jdbc.JdbcControl

Examples of org.apache.beehive.controls.system.jdbc.JdbcControl.SQL


        final Class returnType = m.getReturnType();
        final boolean isArray = returnType.isArray();

        try {
            if (isArray) {
                final SQL methodSQL = (SQL) context.getMethodPropertySet(m, SQL.class);
                return arrayFromResultSet(resultSet, methodSQL.arrayMaxLength(), returnType, cal);
            } else {

                if (!resultSet.next()) {
                    return _tmf.fixNull(m.getReturnType());
                }
View Full Code Here


        final Class returnType = m.getReturnType();
        final boolean isArray = returnType.isArray();

        try {
            if (isArray) {
                final SQL methodSQL = (SQL) context.getMethodPropertySet(m, SQL.class);
                return arrayFromResultSet(resultSet, methodSQL.arrayMaxLength(), returnType, cal);
            } else {
                if (!resultSet.next()) {
                    return _tmf.fixNull(m.getReturnType());
                }
                return RowMapperFactory.getRowMapper(resultSet, returnType, cal).mapRowToReturnType();
View Full Code Here

     * @param resultSet Result set to map.
     * @param cal       A Calendar instance for resolving date/time values.
     * @return A RowSet object.
     */
    public RowSet mapToResultType(ControlBeanContext context, Method m, ResultSet resultSet, Calendar cal) {
        final SQL methodSQL = (SQL) context.getMethodPropertySet(m, SQL.class);
        final int maxrows = methodSQL.maxRows();

        try {
            CachedRowSetImpl rows = new CachedRowSetImpl();

            if (maxrows > 0) {
View Full Code Here

     * @param resultSet Result set to map.
     * @param cal       A Calendar instance for resolving date/time values.
     * @return A RowSet object.
     */
    public RowSet mapToResultType(ControlBeanContext context, Method m, ResultSet resultSet, Calendar cal) {
        final SQL methodSQL = (SQL) context.getMethodPropertySet(m, SQL.class);
        final int maxrows = methodSQL.maxRows();

        try {
            CachedRowSetImpl rows = new CachedRowSetImpl();

            if (maxrows > 0) {
View Full Code Here

        final Class returnType = m.getReturnType();
        final boolean isArray = returnType.isArray();

        try {
            if (isArray) {
                final SQL methodSQL = (SQL) context.getMethodPropertySet(m, SQL.class);
                return arrayFromResultSet(resultSet, methodSQL.arrayMaxLength(), returnType, cal);
            } else {

                if (!resultSet.next()) {
                    return _tmf.fixNull(m.getReturnType());
                }
View Full Code Here

        final Class returnType = m.getReturnType();
        final boolean isArray = returnType.isArray();

        try {
            if (isArray) {
                final SQL methodSQL = context.getMethodPropertySet(m, SQL.class);
                return arrayFromResultSet(resultSet, methodSQL.arrayMaxLength(), returnType, cal);
            } else {
                if (!resultSet.next()) {
                    return _tmf.fixNull(m.getReturnType());
                }
                return RowMapperFactory.getRowMapper(resultSet, returnType, cal).mapRowToReturnType();
View Full Code Here

TOP

Related Classes of org.apache.beehive.controls.system.jdbc.JdbcControl.SQL

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.