org.compass.gps.device.jdbc
Class ResultSetRowMarshallHelper

java.lang.Object
  extended by org.compass.gps.device.jdbc.ResultSetRowMarshallHelper

public class ResultSetRowMarshallHelper
extends Object

A helper marshaller from a ResultSet current row to a Resource and/or to a JdbcAliasRowSnapshot.

Author:
kimchy

Constructor Summary
ResultSetRowMarshallHelper(ResultSetToResourceMapping mapping, CompassSession session, JdbcDialect dialect, Resource resource)
          Creates a new marshaller helper that will marhsall the ResultSet to the given Resource.
ResultSetRowMarshallHelper(ResultSetToResourceMapping mapping, CompassSession session, JdbcDialect dialect, Resource resource, JdbcAliasRowSnapshot rowSnapshot)
           
ResultSetRowMarshallHelper(ResultSetToResourceMapping mapping, CompassSession session, JdbcDialect dialect, Resource resource, JdbcAliasRowSnapshot rowSnapshot, Compass compass)
          Creates a new marshaller helper that will marhsall that ResultSet to both the given Resource and JdbcAliasRowSnapshot.
ResultSetRowMarshallHelper(ResultSetToResourceMapping mapping, JdbcDialect dialect, JdbcAliasRowSnapshot rowSnapshot, Compass compass)
          Creates a new marshaller helper that will marshall the ResultSet to the given JdbcAliasRowSnapshot.
 
Method Summary
 void marshallIds(ResultSet rs)
           
 void marshallMappedData(ResultSet rs)
           
 void marshallProperty(ColumnToPropertyMapping ctpMapping, String value)
           
 void marshallResultSet(ResultSet rs)
          Marshalls the ResultSet.
 void marshallUnMappedIfNeeded(ResultSet rs)
           
 void marshallVersionsIfNeeded(ResultSet rs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultSetRowMarshallHelper

public ResultSetRowMarshallHelper(ResultSetToResourceMapping mapping,
                                  CompassSession session,
                                  JdbcDialect dialect,
                                  Resource resource)
Creates a new marshaller helper that will marhsall the ResultSet to the given Resource.


ResultSetRowMarshallHelper

public ResultSetRowMarshallHelper(ResultSetToResourceMapping mapping,
                                  JdbcDialect dialect,
                                  JdbcAliasRowSnapshot rowSnapshot,
                                  Compass compass)
Creates a new marshaller helper that will marshall the ResultSet to the given JdbcAliasRowSnapshot.


ResultSetRowMarshallHelper

public ResultSetRowMarshallHelper(ResultSetToResourceMapping mapping,
                                  CompassSession session,
                                  JdbcDialect dialect,
                                  Resource resource,
                                  JdbcAliasRowSnapshot rowSnapshot)

ResultSetRowMarshallHelper

public ResultSetRowMarshallHelper(ResultSetToResourceMapping mapping,
                                  CompassSession session,
                                  JdbcDialect dialect,
                                  Resource resource,
                                  JdbcAliasRowSnapshot rowSnapshot,
                                  Compass compass)
Creates a new marshaller helper that will marhsall that ResultSet to both the given Resource and JdbcAliasRowSnapshot.

Method Detail

marshallResultSet

public void marshallResultSet(ResultSet rs)
                       throws SQLException
Marshalls the ResultSet.

Throws:
SQLException

marshallIds

public void marshallIds(ResultSet rs)
                 throws SQLException
Throws:
SQLException

marshallMappedData

public void marshallMappedData(ResultSet rs)
                        throws SQLException
Throws:
SQLException

marshallVersionsIfNeeded

public void marshallVersionsIfNeeded(ResultSet rs)
                              throws SQLException
Throws:
SQLException

marshallUnMappedIfNeeded

public void marshallUnMappedIfNeeded(ResultSet rs)
                              throws SQLException
Throws:
SQLException

marshallProperty

public void marshallProperty(ColumnToPropertyMapping ctpMapping,
                             String value)


Copyright (c) 2004-2009 The Compass Project.