Package org.apache.torque.om.mapper

Examples of org.apache.torque.om.mapper.StringMapper


                    "getMysqlVersion called but database adapter is "
                        + adapter.getClass().getName());
        }
        List<String> records = BasePeer.doSelect(
                "show variables like \"version\"",
                new StringMapper(1),
                (String) null);
        return records.get(0);
    }
View Full Code Here


        when(resultSet.next()).thenReturn(true, false);
        when(resultSet.getString(1)).thenReturn("fd");
        when(resultSet.getInt(2)).thenReturn(23);

        CompositeMapper mapper = new CompositeMapper();
        mapper.addMapper(new StringMapper(), 0);
        mapper.addMapper(new IntegerMapper(), 1);

        List<List<Object>> result = basePeerImpl.doSelect(
                criteria, mapper, connection);
View Full Code Here

     * @throws TorqueException if a database error occurs.
     */
    public String getIdAsString(Connection connection, Object keyInfo)
        throws TorqueException
    {
        return getId(connection, keyInfo, new StringMapper());
    }
View Full Code Here

TOP

Related Classes of org.apache.torque.om.mapper.StringMapper

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.