Package org.springframework.jdbc.core

Examples of org.springframework.jdbc.core.SqlParameter


    class CustomerQuery extends MappingSqlQuery {

      public CustomerQuery(DataSource ds) {
        super(ds, SELECT_ID_FORENAME_WHERE);
        declareParameter(new SqlParameter(Types.VARCHAR));
        compile();
      }

      protected Object mapRow(ResultSet rs, int rownum) throws SQLException {
        Customer cust = new Customer();
View Full Code Here


    class CustomerQuery extends MappingSqlQuery {

      public CustomerQuery(DataSource ds) {
        super(ds, SELECT_ID_WHERE);
        declareParameter(new SqlParameter(Types.NUMERIC));
        declareParameter(new SqlParameter(Types.NUMERIC));
        compile();
      }

      protected Object mapRow(ResultSet rs, int rownum) throws SQLException {
        Customer cust = new Customer();
View Full Code Here

    class CustomerQuery extends MappingSqlQuery {

      public CustomerQuery(DataSource ds) {
        super(ds, SELECT_ID_FORENAME_WHERE);
        declareParameter(new SqlParameter(Types.VARCHAR));
        compile();
      }

      protected Object mapRow(ResultSet rs, int rownum) throws SQLException {
        Customer cust = new Customer();
View Full Code Here

    class CustomerQuery extends MappingSqlQuery {

      public CustomerQuery(DataSource ds) {
        super(ds, SELECT_ID_FORENAME_WHERE);
        setResultSetType(ResultSet.TYPE_SCROLL_SENSITIVE);
        declareParameter(new SqlParameter(Types.NUMERIC));
        compile();
      }

      protected Object mapRow(ResultSet rs, int rownum) throws SQLException {
        Customer cust = new Customer();
View Full Code Here

    class CustomerQuery extends MappingSqlQuery {

      public CustomerQuery(DataSource ds) {
        super(ds, SELECT_ID_FORENAME_WHERE);
        setResultSetType(ResultSet.TYPE_SCROLL_SENSITIVE);
        declareParameter(new SqlParameter(Types.NUMERIC));
        compile();
      }

      protected Object mapRow(ResultSet rs, int rownum) throws SQLException {
        Customer cust = new Customer();
View Full Code Here

      public CustomerQuery(DataSource ds) {
        super(ds, SELECT_ID_FORENAME_NAMED_PARAMETERS);
        setResultSetType(ResultSet.TYPE_SCROLL_SENSITIVE);
        if (namedDeclarations) {
          declareParameter(new SqlParameter("country", Types.VARCHAR));
          declareParameter(new SqlParameter("id", Types.NUMERIC));
        }
        else {
          declareParameter(new SqlParameter(Types.NUMERIC));
          declareParameter(new SqlParameter(Types.VARCHAR));
        }
        compile();
      }

      protected Object mapRow(ResultSet rs, int rownum) throws SQLException {
View Full Code Here

    class CustomerQuery extends MappingSqlQuery {

      public CustomerQuery(DataSource ds) {
        super(ds, SELECT_ID_FORENAME_WHERE_ID_IN_LIST_2);
        setResultSetType(ResultSet.TYPE_SCROLL_SENSITIVE);
        declareParameter(new SqlParameter("ids", Types.NUMERIC));
        compile();
      }

      protected Object mapRow(ResultSet rs, int rownum) throws SQLException {
        Customer cust = new Customer();
View Full Code Here

    class CustomerQuery extends MappingSqlQuery {

      public CustomerQuery(DataSource ds) {
        super(ds, SELECT_ID_FORENAME_WHERE_ID_REUSED_2);
        setResultSetType(ResultSet.TYPE_SCROLL_SENSITIVE);
        declareParameter(new SqlParameter("id1", Types.NUMERIC));
        compile();
      }

      protected Object mapRow(ResultSet rs, int rownum) throws SQLException {
        Customer cust = new Customer();
View Full Code Here

    class CustomerQuery extends MappingSqlQuery {

      public CustomerQuery(DataSource ds) {
        super(ds, SELECT_ID_FORENAME_WHERE_ID_REUSED_1);
        setResultSetType(ResultSet.TYPE_SCROLL_SENSITIVE);
        declareParameter(new SqlParameter("id1", Types.NUMERIC));
        compile();
      }

      protected Object mapRow(ResultSet rs, int rownum) throws SQLException {
        Customer cust = new Customer();
View Full Code Here

    class CustomerUpdateQuery extends UpdatableSqlQuery {

      public CustomerUpdateQuery(DataSource ds) {
        super(ds, SELECT_ID_FORENAME_WHERE_ID);
        declareParameter(new SqlParameter(Types.NUMERIC));
        compile();
      }

      protected Object updateRow(ResultSet rs, int rownum, Map context) throws SQLException {
        rs.updateString(2, "" + context.get(new Integer(rs.getInt(COLUMN_NAMES[0]))));
View Full Code Here

TOP

Related Classes of org.springframework.jdbc.core.SqlParameter

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.