jstorm.mapping
Class SqlBuilder

java.lang.Object
  |
  +--jstorm.mapping.SqlBuilder

public class SqlBuilder
extends java.lang.Object

Insert the type's description here. Creation date: (5/23/2001 9:45:30 PM)


Constructor Summary
SqlBuilder()
          SelectSql constructor comment.
 
Method Summary
 void appendCommaSeparatedAttributes(java.util.Iterator attributes, java.lang.StringBuffer stringBuffer)
          Insert the method's description here.
 void appendInsertAttribute(Attribute attribute, Mapping mapping, java.lang.StringBuffer sql)
          Insert the method's description here.
 void appendInsertAttributes(java.util.Iterator attributes, Mapping mapping, java.lang.StringBuffer sql)
          Insert the method's description here.
 void appendSelectAttribute(Attribute attribute, Mapping mapping, java.lang.StringBuffer sql)
          Insert the method's description here.
 void appendSelectAttributes(java.util.Iterator attributes, Mapping mapping, java.lang.StringBuffer sql)
          Insert the method's description here.
 void appendUpdateAttribute(Attribute attribute, Mapping mapping, java.lang.StringBuffer sql)
          Insert the method's description here.
 void appendUpdateAttributes(java.util.Iterator attributes, Mapping mapping, java.lang.StringBuffer sql)
          Insert the method's description here.
 void appendWhereClause(java.util.Iterator keyAttributes, java.lang.StringBuffer sql)
          Insert the method's description here.
 java.lang.Object getConstraintValue(Attribute attribute, java.lang.Object constraint)
          Insert the method's description here.
 java.lang.String getDeleteSql(Mapping mapping)
          Insert the method's description here.
 java.lang.String getInsertSql(Mapping mapping)
          Insert the method's description here.
 java.lang.String getSelectSql(Mapping mapping)
          Insert the method's description here.
 java.lang.String getSelectSql(Mapping mapping, Mapping secondMapping, java.lang.String field1, java.lang.String field2)
          Insert the method's description here.
 java.lang.String getUpdateSql(Mapping mapping)
          Insert the method's description here.
 java.lang.String getWhereForConstrainingObject(StorableObject constraint)
          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

SqlBuilder

public SqlBuilder()
SelectSql constructor comment.
Method Detail

appendCommaSeparatedAttributes

public void appendCommaSeparatedAttributes(java.util.Iterator attributes,
                                           java.lang.StringBuffer stringBuffer)
Insert the method's description here. Creation date: (6/8/2001 4:54:31 PM)
Parameters:
attributes - java.util.Iterator
stringBuffer - java.lang.StringBuffer

appendInsertAttribute

public void appendInsertAttribute(Attribute attribute,
                                  Mapping mapping,
                                  java.lang.StringBuffer sql)
Insert the method's description here. Creation date: (6/8/2001 4:54:31 PM)
Parameters:
attributes - java.util.Iterator
stringBuffer - java.lang.StringBuffer

appendInsertAttributes

public void appendInsertAttributes(java.util.Iterator attributes,
                                   Mapping mapping,
                                   java.lang.StringBuffer sql)
Insert the method's description here. Creation date: (6/8/2001 4:54:31 PM)
Parameters:
attributes - java.util.Iterator
stringBuffer - java.lang.StringBuffer

appendSelectAttribute

public void appendSelectAttribute(Attribute attribute,
                                  Mapping mapping,
                                  java.lang.StringBuffer sql)
Insert the method's description here. Creation date: (6/8/2001 4:54:31 PM)
Parameters:
attributes - java.util.Iterator
stringBuffer - java.lang.StringBuffer

appendSelectAttributes

public void appendSelectAttributes(java.util.Iterator attributes,
                                   Mapping mapping,
                                   java.lang.StringBuffer sql)
Insert the method's description here. Creation date: (6/8/2001 4:54:31 PM)
Parameters:
attributes - java.util.Iterator
stringBuffer - java.lang.StringBuffer

appendUpdateAttribute

public void appendUpdateAttribute(Attribute attribute,
                                  Mapping mapping,
                                  java.lang.StringBuffer sql)
Insert the method's description here. Creation date: (6/8/2001 4:54:31 PM)
Parameters:
attributes - java.util.Iterator
stringBuffer - java.lang.StringBuffer

appendUpdateAttributes

public void appendUpdateAttributes(java.util.Iterator attributes,
                                   Mapping mapping,
                                   java.lang.StringBuffer sql)
Insert the method's description here. Creation date: (6/8/2001 4:54:31 PM)
Parameters:
attributes - java.util.Iterator
stringBuffer - java.lang.StringBuffer

appendWhereClause

public void appendWhereClause(java.util.Iterator keyAttributes,
                              java.lang.StringBuffer sql)
Insert the method's description here. Creation date: (6/8/2001 4:54:31 PM)
Parameters:
attributes - java.util.Iterator
stringBuffer - java.lang.StringBuffer

getConstraintValue

public java.lang.Object getConstraintValue(Attribute attribute,
                                           java.lang.Object constraint)
                                    throws java.lang.Exception
Insert the method's description here. Creation date: (5/23/2001 9:46:29 PM)
Parameters:
mapping - com.lante.mapping.Mapping
Returns:
java.lang.String

getDeleteSql

public java.lang.String getDeleteSql(Mapping mapping)
Insert the method's description here. Creation date: (5/23/2001 9:46:29 PM)
Parameters:
mapping - com.lante.mapping.Mapping
Returns:
java.lang.String

getInsertSql

public java.lang.String getInsertSql(Mapping mapping)
Insert the method's description here. Creation date: (5/23/2001 9:46:29 PM)
Parameters:
mapping - com.lante.mapping.Mapping
Returns:
java.lang.String

getSelectSql

public java.lang.String getSelectSql(Mapping mapping)
Insert the method's description here. Creation date: (5/23/2001 9:46:29 PM)
Parameters:
mapping - com.lante.mapping.Mapping
Returns:
java.lang.String

getSelectSql

public java.lang.String getSelectSql(Mapping mapping,
                                     Mapping secondMapping,
                                     java.lang.String field1,
                                     java.lang.String field2)
Insert the method's description here. Creation date: (5/23/2001 9:46:29 PM)
Parameters:
mapping - com.lante.mapping.Mapping
Returns:
java.lang.String

getUpdateSql

public java.lang.String getUpdateSql(Mapping mapping)
Insert the method's description here. Creation date: (5/23/2001 9:46:29 PM)
Parameters:
mapping - com.lante.mapping.Mapping
Returns:
java.lang.String

getWhereForConstrainingObject

public java.lang.String getWhereForConstrainingObject(StorableObject constraint)
                                               throws DatabaseException
Insert the method's description here. Creation date: (5/23/2001 9:46:29 PM)
Parameters:
mapping - com.lante.mapping.Mapping
Returns:
java.lang.String