jstorm.mapping
Class SqlRunner

java.lang.Object
  |
  +--jstorm.mapping.SqlRunner
All Implemented Interfaces:
IDatabase

public class SqlRunner
extends java.lang.Object
implements IDatabase

Insert the type's description here. Creation date: (5/26/2001 5:44:16 PM)


Constructor Summary
SqlRunner()
          SqlRunner constructor comment.
 
Method Summary
 void aggregate(java.lang.Object secondObject, java.lang.Object firstObject)
          Insert the method's description here.
 java.util.Collection doAggregateSelect(Mapping mapping, Mapping secondMapping, java.lang.String field1, java.lang.String field2)
          Insert the method's description here.
 java.util.Collection doAggregateSelect(Mapping mapping, Mapping secondMapping, java.lang.String field1, java.lang.String field2, java.lang.String whereClause)
          Insert the method's description here.
 void doDelete(java.lang.Object object, Mapping mapping)
          Insert the method's description here.
 void doDelete(StorableObject storable)
          Insert the method's description here.
 void doInsert(java.lang.Object object, Mapping mapping)
          Insert the method's description here.
 void doInsert(StorableObject storable)
          Insert the method's description here.
 java.util.Collection doSelect(Mapping mapping)
          Insert the method's description here.
 java.util.Collection doSelect(Mapping mapping, java.lang.String whereClause)
          Insert the method's description here.
 java.util.Collection doSelect(StorableObject constraint)
          Insert the method's description here.
 void doUpdate(java.lang.Object object, Mapping mapping)
          Insert the method's description here.
 void doUpdate(StorableObject storable)
          Insert the method's description here.
 void executeUpdate(java.sql.PreparedStatement statement, Mapping mapping)
          Insert the method's description here.
 java.lang.String getAsName(Mapping mapping, Attribute attribute)
          Insert the method's description here.
 java.sql.Connection getConnection()
          Insert the method's description here.
 ParameterDecorator getParameterDecorator(java.lang.Class value)
           
 void setKeyValuesOnStatement(java.util.Iterator keyAttributes, java.sql.PreparedStatement statement, java.lang.Object object, int startingPoint)
          Insert the method's description here.
 void setSingleValueOnStatement(Attribute attribute, java.sql.PreparedStatement statement, java.lang.Object objectToPersist, int index)
          Insert the method's description here.
 void setupParameterDecorator()
           
 void setValuesOnObject(java.util.Iterator attributes, Mapping mapping, java.sql.ResultSet resultSet, java.lang.Object object)
          Insert the method's description here.
 void setValuesOnStatement(Mapping mapping, java.sql.PreparedStatement statement, java.lang.Object objectToPersist)
          Insert the method's description here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlRunner

public SqlRunner()
SqlRunner constructor comment.
Method Detail

aggregate

public void aggregate(java.lang.Object secondObject,
                      java.lang.Object firstObject)
               throws java.lang.Exception
Insert the method's description here. Creation date: (6/9/2001 8:17:44 PM)
Parameters:
first - java.lang.Object
second - java.lang.Object

doAggregateSelect

public java.util.Collection doAggregateSelect(Mapping mapping,
                                              Mapping secondMapping,
                                              java.lang.String field1,
                                              java.lang.String field2)
                                       throws DatabaseException
Insert the method's description here. Creation date: (5/26/2001 5:45:20 PM)
Specified by:
doAggregateSelect in interface IDatabase
Parameters:
mapping - com.lante.mapping.Mapping
Returns:
java.util.Iterator

doAggregateSelect

public java.util.Collection doAggregateSelect(Mapping mapping,
                                              Mapping secondMapping,
                                              java.lang.String field1,
                                              java.lang.String field2,
                                              java.lang.String whereClause)
                                       throws DatabaseException
Insert the method's description here. Creation date: (5/26/2001 5:45:20 PM)
Specified by:
doAggregateSelect in interface IDatabase
Parameters:
mapping - com.lante.mapping.Mapping
Returns:
java.util.Iterator

doDelete

public void doDelete(java.lang.Object object,
                     Mapping mapping)
Insert the method's description here. Creation date: (5/26/2001 5:45:20 PM)
Parameters:
mapping - com.lante.mapping.Mapping
Returns:
java.util.Iterator

doDelete

public void doDelete(StorableObject storable)
Insert the method's description here. Creation date: (5/26/2001 5:45:20 PM)
Specified by:
doDelete in interface IDatabase
Parameters:
mapping - com.lante.mapping.Mapping
Returns:
java.util.Iterator

doInsert

public void doInsert(java.lang.Object object,
                     Mapping mapping)
Insert the method's description here. Creation date: (5/26/2001 5:45:20 PM)
Parameters:
mapping - com.lante.mapping.Mapping
Returns:
java.util.Iterator

doInsert

public void doInsert(StorableObject storable)
Insert the method's description here. Creation date: (5/26/2001 5:45:20 PM)
Specified by:
doInsert in interface IDatabase
Parameters:
mapping - com.lante.mapping.Mapping
Returns:
java.util.Iterator

doSelect

public java.util.Collection doSelect(Mapping mapping)
                              throws DatabaseException
Insert the method's description here. Creation date: (5/26/2001 5:45:20 PM)
Specified by:
doSelect in interface IDatabase
Parameters:
mapping - com.lante.mapping.Mapping
Returns:
java.util.Iterator

doSelect

public java.util.Collection doSelect(Mapping mapping,
                                     java.lang.String whereClause)
                              throws DatabaseException
Insert the method's description here. Creation date: (5/26/2001 5:45:20 PM)
Specified by:
doSelect in interface IDatabase
Parameters:
mapping - com.lante.mapping.Mapping
Returns:
java.util.Iterator

doSelect

public java.util.Collection doSelect(StorableObject constraint)
                              throws DatabaseException
Insert the method's description here. Creation date: (5/26/2001 5:45:20 PM)
Specified by:
doSelect in interface IDatabase
Parameters:
mapping - com.lante.mapping.Mapping
Returns:
java.util.Iterator

doUpdate

public void doUpdate(java.lang.Object object,
                     Mapping mapping)
Insert the method's description here. Creation date: (5/26/2001 5:45:20 PM)
Parameters:
mapping - com.lante.mapping.Mapping
Returns:
java.util.Iterator

doUpdate

public void doUpdate(StorableObject storable)
Insert the method's description here. Creation date: (5/26/2001 5:45:20 PM)
Specified by:
doUpdate in interface IDatabase
Parameters:
mapping - com.lante.mapping.Mapping
Returns:
java.util.Iterator

executeUpdate

public void executeUpdate(java.sql.PreparedStatement statement,
                          Mapping mapping)
                   throws java.lang.Exception
Insert the method's description here. Creation date: (6/9/2001 7:57:31 PM)
Returns:
java.sql.Connection

getAsName

public java.lang.String getAsName(Mapping mapping,
                                  Attribute attribute)
Insert the method's description here. Creation date: (6/9/2001 8:09:26 PM)
Parameters:
attributes - java.util.Iterator
resultSet - java.sql.ResultSet
object - java.lang.Object

getConnection

public java.sql.Connection getConnection()
                                  throws java.lang.Exception
Insert the method's description here. Creation date: (6/9/2001 7:57:31 PM)
Returns:
java.sql.Connection

getParameterDecorator

public ParameterDecorator getParameterDecorator(java.lang.Class value)

setKeyValuesOnStatement

public void setKeyValuesOnStatement(java.util.Iterator keyAttributes,
                                    java.sql.PreparedStatement statement,
                                    java.lang.Object object,
                                    int startingPoint)
                             throws java.lang.Exception
Insert the method's description here. Creation date: (5/26/2001 5:45:20 PM)
Parameters:
mapping - com.lante.mapping.Mapping
Returns:
java.util.Iterator

setSingleValueOnStatement

public void setSingleValueOnStatement(Attribute attribute,
                                      java.sql.PreparedStatement statement,
                                      java.lang.Object objectToPersist,
                                      int index)
                               throws java.lang.Exception
Insert the method's description here. Creation date: (6/9/2001 8:09:26 PM)
Parameters:
attributes - java.util.Iterator
resultSet - java.sql.ResultSet
object - java.lang.Object

setupParameterDecorator

public void setupParameterDecorator()

setValuesOnObject

public void setValuesOnObject(java.util.Iterator attributes,
                              Mapping mapping,
                              java.sql.ResultSet resultSet,
                              java.lang.Object object)
                       throws java.lang.Exception
Insert the method's description here. Creation date: (6/9/2001 8:09:26 PM)
Parameters:
attributes - java.util.Iterator
resultSet - java.sql.ResultSet
object - java.lang.Object

setValuesOnStatement

public void setValuesOnStatement(Mapping mapping,
                                 java.sql.PreparedStatement statement,
                                 java.lang.Object objectToPersist)
                          throws java.lang.Exception
Insert the method's description here. Creation date: (6/9/2001 8:09:26 PM)
Parameters:
attributes - java.util.Iterator
resultSet - java.sql.ResultSet
object - java.lang.Object