org.apache.derby.impl.sql
Class GenericStatement
java.lang.Object
org.apache.derby.impl.sql.GenericStatement
- All Implemented Interfaces:
- Statement
- public class GenericStatement
- extends java.lang.Object
- implements Statement
Constructor Summary |
GenericStatement(SchemaDescriptor compilationSchema,
java.lang.String statementText)
Constructor for a Statement given the text of the statement in a String |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
compilationSchema
private final SchemaDescriptor compilationSchema
statementText
private final java.lang.String statementText
prepareIsolationLevel
private int prepareIsolationLevel
preparedStmt
private GenericPreparedStatement preparedStmt
GenericStatement
public GenericStatement(SchemaDescriptor compilationSchema,
java.lang.String statementText)
- Constructor for a Statement given the text of the statement in a String
- Parameters:
statementText
- The text of the statement
prepare
public PreparedStatement prepare(LanguageConnectionContext lcc)
throws StandardException
- Description copied from interface:
Statement
- Generates an execution plan without executing it.
- Specified by:
prepare
in interface 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).
prepMinion
private PreparedStatement prepMinion(LanguageConnectionContext lcc,
boolean cacheMe,
java.lang.Object[] paramDefaults,
SchemaDescriptor spsSchema,
boolean internalSQL)
throws StandardException
- Throws:
StandardException
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 defaultsspsSchema
- 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.
getUnicode
public boolean getUnicode()
- Specified by:
getUnicode
in interface Statement
getCompilationSchema
public java.lang.String getCompilationSchema()
getCurrentTimeMillis
private static long getCurrentTimeMillis(LanguageConnectionContext lcc)
getElapsedTimeMillis
private static long getElapsedTimeMillis(long beginTime)
equals
public boolean equals(java.lang.Object other)
hashCode
public int hashCode()
Apache Derby V10.0 Engine Documentation - Copyright © 1997,2004 The Apache Software Foundation or its licensors, as applicable.