com.triactive.jdo.store.request
Class EmbeddedRequest

java.lang.Object
  extended bycom.triactive.jdo.store.request.EmbeddedRequest
Direct Known Subclasses:
EmbeddedRequest.ReadOnly, EmbeddedRequest.ReadWrite

public abstract class EmbeddedRequest
extends java.lang.Object

An abstract base class for simple DB requests involving a single PreparedStatement.

Author:
Mike Martin

Nested Class Summary
static class EmbeddedRequest.ReadOnly
           
static class EmbeddedRequest.ReadWrite
           
 
Field Summary
protected  StateManager sm
           
protected  java.lang.String stmtText
           
 
Constructor Summary
EmbeddedRequest(StateManager sm, java.lang.String stmtText)
           
 
Method Summary
 java.lang.Object execute()
           
protected abstract  java.lang.Object execute(java.sql.PreparedStatement ps)
           
protected abstract  boolean isReadOnly()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sm

protected final StateManager sm

stmtText

protected final java.lang.String stmtText
Constructor Detail

EmbeddedRequest

public EmbeddedRequest(StateManager sm,
                       java.lang.String stmtText)
Method Detail

isReadOnly

protected abstract boolean isReadOnly()

execute

protected abstract java.lang.Object execute(java.sql.PreparedStatement ps)
                                     throws java.sql.SQLException
Throws:
java.sql.SQLException

execute

public final java.lang.Object execute()


Copyright © 2001-2007 The TJDO Project All Rights Reserved.