Documentation of 'org.apache.derby.impl.sql.GenericStatement' Java class
GenericStatement
org.apache.derby.impl.sql

Class GenericStatement

  • All Implemented Interfaces:
    Statement


    public class GenericStatement
    extends java.lang.Object
    implements Statement
    • Constructor Detail

      • GenericStatement

        public GenericStatement(SchemaDescriptor compilationSchema,
                                java.lang.String statementText,
                                boolean isForReadOnly)
        Constructor for a Statement given the text of the statement in a String
        Parameters:
        compilationSchema - schema
        statementText - The text of the statement
        isForReadOnly - if the statement is opened with level CONCUR_READ_ONLY
    • Method Detail

      • prepare

        public PreparedStatement prepare(LanguageConnectionContext lcc,
                                         boolean forMetaData)
                                  throws StandardException
        Description copied from interface: Statement
        Generates an execution plan without executing it.
        Specified by:
        prepare in interface Statement
        Parameters:
        lcc - the language connection context
        forMetaData - If this statement is for a metadata call then we will allow internal sql syntax on such statement. This internal sql syntax is not available to a user sql statement.
        Returns:
        A PreparedStatement that allows execution of the execution plan.
        Throws:
        StandardException - Thrown if this is an execution-only version of the module (the prepare() method relies on compilation).
      • prepareStorable

        public PreparedStatement prepareStorable(LanguageConnectionContext lcc,
                                                 PreparedStatement ps,
                                                 java.lang.Object[] paramDefaults,
                                                 SchemaDescriptor spsSchema,
                                                 boolean internalSQL)
                                          throws StandardException
        Generates an execution plan given a set of named parameters. Does so for a storable prepared statement.
        Specified by:
        prepareStorable in interface Statement
        Parameters:
        paramDefaults - Parameter defaults
        lcc - Compiler state variable.
        ps - Prepared statement
        spsSchema - schema of the stored prepared statement
        Returns:
        A PreparedStatement that allows execution of the execution plan.
        Throws:
        StandardException - Thrown if this is an execution-only version of the module (the prepare() method relies on compilation).
      • getSource

        public java.lang.String getSource()
        Description copied from interface: Statement
        Return the SQL string that this statement is for.
        Specified by:
        getSource in interface Statement
        Returns:
        the SQL string this statement is for.
      • getCompilationSchema

        public java.lang.String getCompilationSchema()
      • getPreparedStatement

        public PreparedStatement getPreparedStatement()
        Return the PreparedStatement currently associated with this statement.
        Returns:
        the prepared statement that is associated with this statement
      • equals

        public boolean equals(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.