org.openanzo.server.repository.rdb.sql
Class InferenceRdbWrapper

java.lang.Object
  extended by org.openanzo.server.repository.rdb.sql.InferenceRdbWrapper

public class InferenceRdbWrapper
extends java.lang.Object

InferenceRdbWrapper provides wrappers around SQL queries and transforms ResultSets into java objects

Author:
Generated Source from org.openanzo.jdbc.utils.opgen.jet

Nested Class Summary
static interface InferenceRdbWrapper.InsertInferedObjectParams
          Interface for managing the parameters to the insertInferedObject prepared statement.
static class InferenceRdbWrapper.InsertInferedObjectParamsImpl
          Default implementation of InsertInferedObjectParams
static interface InferenceRdbWrapper.InsertInferedPropertyParams
          Interface for managing the parameters to the insertInferedProperty prepared statement.
static class InferenceRdbWrapper.InsertInferedPropertyParamsImpl
          Default implementation of InsertInferedPropertyParams
 
Field Summary
static java.lang.String insertInferedObject
          Constant "insertInferedObject" used to reference prepared statement Inference.insertInferedObject INSERT INTO ${a}_OBJ_INFER(PROP,OBJ,OBJINFER) VALUES(?,?,?)
static java.lang.String insertInferedProperty
          Constant "insertInferedProperty" used to reference prepared statement Inference.insertInferedProperty INSERT INTO ${a}_PROP_INFER(PROP,PROPINFER) VALUES(?,?)
 
Constructor Summary
InferenceRdbWrapper()
           
 
Method Summary
static int insertInferedObject(PreparedStatementCache sqlCache, InferenceRdbWrapper.InsertInferedObjectParams params, java.lang.String tableNamePrefix)
          Runs the insertInferedObject prepared statement.
static int insertInferedObject(PreparedStatementCache sqlCache, java.lang.Long prop, java.lang.Long obj, java.lang.Long objinfer, java.lang.String tableNamePrefix)
          Runs the insertInferedObject prepared statement.
static int insertInferedProperty(PreparedStatementCache sqlCache, InferenceRdbWrapper.InsertInferedPropertyParams params, java.lang.String tableNamePrefix)
          Runs the insertInferedProperty prepared statement.
static int insertInferedProperty(PreparedStatementCache sqlCache, java.lang.Long prop, java.lang.Long inferredProp, java.lang.String tableNamePrefix)
          Runs the insertInferedProperty prepared statement.
static void prepareInsertInferedObject(java.sql.PreparedStatement ps, java.lang.Long prop, java.lang.Long obj, java.lang.Long objinfer)
          Sets the input parameters for the insertInferedObject prepared statement.
static void prepareInsertInferedProperty(java.sql.PreparedStatement ps, java.lang.Long prop, java.lang.Long inferredProp)
          Sets the input parameters for the insertInferedProperty prepared statement.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

insertInferedObject

public static final java.lang.String insertInferedObject
Constant "insertInferedObject" used to reference prepared statement Inference.insertInferedObject INSERT INTO ${a}_OBJ_INFER(PROP,OBJ,OBJINFER) VALUES(?,?,?)

See Also:
Constant Field Values

insertInferedProperty

public static final java.lang.String insertInferedProperty
Constant "insertInferedProperty" used to reference prepared statement Inference.insertInferedProperty INSERT INTO ${a}_PROP_INFER(PROP,PROPINFER) VALUES(?,?)

See Also:
Constant Field Values
Constructor Detail

InferenceRdbWrapper

public InferenceRdbWrapper()
Method Detail

insertInferedObject

public static int insertInferedObject(PreparedStatementCache sqlCache,
                                      InferenceRdbWrapper.InsertInferedObjectParams params,
                                      java.lang.String tableNamePrefix)
                               throws AnzoException,
                                      java.sql.SQLException
Runs the insertInferedObject prepared statement. INSERT INTO ${a}_OBJ_INFER(PROP,OBJ,OBJINFER) VALUES(?,?,?)

Parameters:
sqlCache - factory and cache of PreparedStatments
params - InsertInferedObjectParams input Interface
tableNamePrefix - template parameter
Returns:
int containing the results of the SQL operation
Throws:
AnzoException
java.sql.SQLException

insertInferedObject

public static int insertInferedObject(PreparedStatementCache sqlCache,
                                      java.lang.Long prop,
                                      java.lang.Long obj,
                                      java.lang.Long objinfer,
                                      java.lang.String tableNamePrefix)
                               throws AnzoException,
                                      java.sql.SQLException
Runs the insertInferedObject prepared statement. INSERT INTO ${a}_OBJ_INFER(PROP,OBJ,OBJINFER) VALUES(?,?,?)

Parameters:
sqlCache - factory and cache of PreparedStatments
prop - template parameter
obj - template parameter
objinfer - template parameter
tableNamePrefix - template parameter
Returns:
int
Throws:
AnzoException
java.sql.SQLException

prepareInsertInferedObject

public static void prepareInsertInferedObject(java.sql.PreparedStatement ps,
                                              java.lang.Long prop,
                                              java.lang.Long obj,
                                              java.lang.Long objinfer)
                                       throws java.sql.SQLException
Sets the input parameters for the insertInferedObject prepared statement.

Parameters:
ps - PreparedStatement to whose parameters are set
prop - template parameter
obj - template parameter
objinfer - template parameter
Throws:
java.sql.SQLException

insertInferedProperty

public static int insertInferedProperty(PreparedStatementCache sqlCache,
                                        InferenceRdbWrapper.InsertInferedPropertyParams params,
                                        java.lang.String tableNamePrefix)
                                 throws AnzoException,
                                        java.sql.SQLException
Runs the insertInferedProperty prepared statement. INSERT INTO ${a}_PROP_INFER(PROP,PROPINFER) VALUES(?,?)

Parameters:
sqlCache - factory and cache of PreparedStatments
params - InsertInferedPropertyParams input Interface
tableNamePrefix - template parameter
Returns:
int containing the results of the SQL operation
Throws:
AnzoException
java.sql.SQLException

insertInferedProperty

public static int insertInferedProperty(PreparedStatementCache sqlCache,
                                        java.lang.Long prop,
                                        java.lang.Long inferredProp,
                                        java.lang.String tableNamePrefix)
                                 throws AnzoException,
                                        java.sql.SQLException
Runs the insertInferedProperty prepared statement. INSERT INTO ${a}_PROP_INFER(PROP,PROPINFER) VALUES(?,?)

Parameters:
sqlCache - factory and cache of PreparedStatments
prop - template parameter
inferredProp - template parameter
tableNamePrefix - template parameter
Returns:
int
Throws:
AnzoException
java.sql.SQLException

prepareInsertInferedProperty

public static void prepareInsertInferedProperty(java.sql.PreparedStatement ps,
                                                java.lang.Long prop,
                                                java.lang.Long inferredProp)
                                         throws java.sql.SQLException
Sets the input parameters for the insertInferedProperty prepared statement.

Parameters:
ps - PreparedStatement to whose parameters are set
prop - template parameter
inferredProp - template parameter
Throws:
java.sql.SQLException


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.