org.odata4j.producer.jdbc
Class JdbcProducerBackend

java.lang.Object
  extended by org.odata4j.producer.jdbc.JdbcProducerBackend
All Implemented Interfaces:
CommandProducerBackend

public abstract class JdbcProducerBackend
extends Object
implements CommandProducerBackend


Constructor Summary
JdbcProducerBackend()
           
 
Method Summary
protected abstract
<T> T
get(Class<T> instanceType)
           
<TContext extends CommandContext>
Command<TContext>
getCommand(Class<TContext> contextType)
           
abstract  CommandExecution getCommandExecution()
           
abstract  Jdbc getJdbc()
           
 JdbcMetadataMapping getMetadataMapping()
           
protected abstract
<TContext extends CommandContext>
List<Command<?>>
getPostCommands(Class<TContext> contextType)
           
protected abstract
<TContext extends CommandContext>
List<Command<?>>
getPreCommands(Class<TContext> contextType)
           
 CallFunctionCommandContext newCallFunctionCommandContext(EdmFunctionImport name, Map<String,OFunctionParameter> params, QueryInfo queryInfo)
           
 CloseCommandContext newCloseCommandContext()
           
 CreateEntityAtPropertyCommandContext newCreateEntityAtPropertyCommandContext(String entitySetName, OEntityKey entityKey, String navProp, OEntity entity)
           
 CreateEntityCommandContext newCreateEntityCommandContext(String entitySetName, OEntity entity)
           
 CreateLinkCommandContext newCreateLinkCommandContext(OEntityId sourceEntity, String targetNavProp, OEntityId targetEntity)
           
 DeleteEntityCommandContext newDeleteEntityCommandContext(String entitySetName, OEntityKey entityKey)
           
 DeleteLinkCommandContext newDeleteLinkCommandContext(OEntityId sourceEntity, String targetNavProp, OEntityKey targetEntityKey)
           
 GetEntitiesCommandContext newGetEntitiesCommandContext(String entitySetName, QueryInfo queryInfo)
           
 GetEntitiesCountCommandContext newGetEntitiesCountCommandContext(String entitySetName, QueryInfo queryInfo)
           
 GetEntityCommandContext newGetEntityCommandContext(String entitySetName, OEntityKey entityKey, EntityQueryInfo queryInfo)
           
 GetLinksCommandContext newGetLinksCommandContext(OEntityId sourceEntity, String targetNavProp)
           
 GetMetadataCommandContext newGetMetadataCommandContext()
           
 GetMetadataProducerCommandContext newGetMetadataProducerCommandContext()
           
 GetNavPropertyCommandContext newGetNavPropertyCommandContext(String entitySetName, OEntityKey entityKey, String navProp, QueryInfo queryInfo)
           
 GetNavPropertyCountCommandContext newGetNavPropertyCountCommandContext(String entitySetName, OEntityKey entityKey, String navProp, QueryInfo queryInfo)
           
 JdbcProducerCommandContext newJdbcCommandContext()
           
 MergeEntityCommandContext newMergeEntityCommandContext(String entitySetName, OEntity entity)
           
 UpdateEntityCommandContext newUpdateEntityCommandContext(String entitySetName, OEntity entity)
           
 UpdateLinkCommandContext newUpdateLinkCommandContext(OEntityId sourceEntity, String targetNavProp, OEntityKey oldTargetEntityKey, OEntityId newTargetEntity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcProducerBackend

public JdbcProducerBackend()
Method Detail

get

protected abstract <T> T get(Class<T> instanceType)

getCommand

public <TContext extends CommandContext> Command<TContext> getCommand(Class<TContext> contextType)
Specified by:
getCommand in interface CommandProducerBackend

getCommandExecution

public abstract CommandExecution getCommandExecution()
Specified by:
getCommandExecution in interface CommandProducerBackend

getJdbc

public abstract Jdbc getJdbc()

getMetadataMapping

public JdbcMetadataMapping getMetadataMapping()

getPostCommands

protected abstract <TContext extends CommandContext> List<Command<?>> getPostCommands(Class<TContext> contextType)

getPreCommands

protected abstract <TContext extends CommandContext> List<Command<?>> getPreCommands(Class<TContext> contextType)

newCallFunctionCommandContext

public CallFunctionCommandContext newCallFunctionCommandContext(EdmFunctionImport name,
                                                                Map<String,OFunctionParameter> params,
                                                                QueryInfo queryInfo)
Specified by:
newCallFunctionCommandContext in interface CommandProducerBackend

newCloseCommandContext

public CloseCommandContext newCloseCommandContext()
Specified by:
newCloseCommandContext in interface CommandProducerBackend

newCreateEntityAtPropertyCommandContext

public CreateEntityAtPropertyCommandContext newCreateEntityAtPropertyCommandContext(String entitySetName,
                                                                                    OEntityKey entityKey,
                                                                                    String navProp,
                                                                                    OEntity entity)
Specified by:
newCreateEntityAtPropertyCommandContext in interface CommandProducerBackend

newCreateEntityCommandContext

public CreateEntityCommandContext newCreateEntityCommandContext(String entitySetName,
                                                                OEntity entity)
Specified by:
newCreateEntityCommandContext in interface CommandProducerBackend

newCreateLinkCommandContext

public CreateLinkCommandContext newCreateLinkCommandContext(OEntityId sourceEntity,
                                                            String targetNavProp,
                                                            OEntityId targetEntity)
Specified by:
newCreateLinkCommandContext in interface CommandProducerBackend

newDeleteEntityCommandContext

public DeleteEntityCommandContext newDeleteEntityCommandContext(String entitySetName,
                                                                OEntityKey entityKey)
Specified by:
newDeleteEntityCommandContext in interface CommandProducerBackend

newDeleteLinkCommandContext

public DeleteLinkCommandContext newDeleteLinkCommandContext(OEntityId sourceEntity,
                                                            String targetNavProp,
                                                            OEntityKey targetEntityKey)
Specified by:
newDeleteLinkCommandContext in interface CommandProducerBackend

newGetEntitiesCommandContext

public GetEntitiesCommandContext newGetEntitiesCommandContext(String entitySetName,
                                                              QueryInfo queryInfo)
Specified by:
newGetEntitiesCommandContext in interface CommandProducerBackend

newGetEntitiesCountCommandContext

public GetEntitiesCountCommandContext newGetEntitiesCountCommandContext(String entitySetName,
                                                                        QueryInfo queryInfo)
Specified by:
newGetEntitiesCountCommandContext in interface CommandProducerBackend

newGetEntityCommandContext

public GetEntityCommandContext newGetEntityCommandContext(String entitySetName,
                                                          OEntityKey entityKey,
                                                          EntityQueryInfo queryInfo)
Specified by:
newGetEntityCommandContext in interface CommandProducerBackend

newGetLinksCommandContext

public GetLinksCommandContext newGetLinksCommandContext(OEntityId sourceEntity,
                                                        String targetNavProp)
Specified by:
newGetLinksCommandContext in interface CommandProducerBackend

newGetMetadataCommandContext

public GetMetadataCommandContext newGetMetadataCommandContext()
Specified by:
newGetMetadataCommandContext in interface CommandProducerBackend

newGetMetadataProducerCommandContext

public GetMetadataProducerCommandContext newGetMetadataProducerCommandContext()
Specified by:
newGetMetadataProducerCommandContext in interface CommandProducerBackend

newGetNavPropertyCommandContext

public GetNavPropertyCommandContext newGetNavPropertyCommandContext(String entitySetName,
                                                                    OEntityKey entityKey,
                                                                    String navProp,
                                                                    QueryInfo queryInfo)
Specified by:
newGetNavPropertyCommandContext in interface CommandProducerBackend

newGetNavPropertyCountCommandContext

public GetNavPropertyCountCommandContext newGetNavPropertyCountCommandContext(String entitySetName,
                                                                              OEntityKey entityKey,
                                                                              String navProp,
                                                                              QueryInfo queryInfo)
Specified by:
newGetNavPropertyCountCommandContext in interface CommandProducerBackend

newJdbcCommandContext

public JdbcProducerCommandContext newJdbcCommandContext()

newMergeEntityCommandContext

public MergeEntityCommandContext newMergeEntityCommandContext(String entitySetName,
                                                              OEntity entity)
Specified by:
newMergeEntityCommandContext in interface CommandProducerBackend

newUpdateEntityCommandContext

public UpdateEntityCommandContext newUpdateEntityCommandContext(String entitySetName,
                                                                OEntity entity)
Specified by:
newUpdateEntityCommandContext in interface CommandProducerBackend

newUpdateLinkCommandContext

public UpdateLinkCommandContext newUpdateLinkCommandContext(OEntityId sourceEntity,
                                                            String targetNavProp,
                                                            OEntityKey oldTargetEntityKey,
                                                            OEntityId newTargetEntity)
Specified by:
newUpdateLinkCommandContext in interface CommandProducerBackend


http://odata4j.org