Class Statement

  • All Implemented Interfaces:
    java.io.Serializable

    public class Statement
    extends java.lang.Object
    implements java.io.Serializable
    Just a generic string used for SQL statements
    Version:
    $Revision$ $Date$
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Statement()  
      Statement​(java.lang.String value, boolean transactional)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Overrides the Object.equals method.
      java.lang.String getContent()
      Returns the value of field 'content'.
      boolean getTransactional()
      Returns the value of field 'transactional'.
      int hashCode()
      Overrides the Object.hashCode method.
      boolean isTransactional()
      Returns the value of field 'transactional'.
      void setContent​(java.lang.String content)
      Sets the value of field 'content'.
      void setTransactional​(boolean transactional)
      Sets the value of field 'transactional'.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Statement

        public Statement()
      • Statement

        public Statement​(java.lang.String value,
                         boolean transactional)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides the Object.equals method.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj -
        Returns:
        true if the objects are equal.
      • getContent

        public java.lang.String getContent()
        Returns the value of field 'content'. The field 'content' has the following description: internal content storage
        Returns:
        the value of field 'Content'.
      • getTransactional

        public boolean getTransactional()
        Returns the value of field 'transactional'.
        Returns:
        the value of field 'Transactional'.
      • hashCode

        public int hashCode()
        Overrides the Object.hashCode method.

        The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3

        Overrides:
        hashCode in class java.lang.Object
        Returns:
        a hash code value for the object.
      • isTransactional

        public boolean isTransactional()
        Returns the value of field 'transactional'.
        Returns:
        the value of field 'Transactional'.
      • setContent

        public void setContent​(java.lang.String content)
        Sets the value of field 'content'. The field 'content' has the following description: internal content storage
        Parameters:
        content - the value of field 'content'.
      • setTransactional

        public void setTransactional​(boolean transactional)
        Sets the value of field 'transactional'.
        Parameters:
        transactional - the value of field 'transactional'.