|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.server.repository.rdb.sql.InferenceRdbWrapper
public class InferenceRdbWrapper
InferenceRdbWrapper provides wrappers around SQL queries and transforms ResultSets into java objects
| 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 |
|---|
public static final java.lang.String insertInferedObject
INSERT INTO ${a}_OBJ_INFER(PROP,OBJ,OBJINFER) VALUES(?,?,?)
public static final java.lang.String insertInferedProperty
INSERT INTO ${a}_PROP_INFER(PROP,PROPINFER) VALUES(?,?)
| Constructor Detail |
|---|
public InferenceRdbWrapper()
| Method Detail |
|---|
public static int insertInferedObject(PreparedStatementCache sqlCache,
InferenceRdbWrapper.InsertInferedObjectParams params,
java.lang.String tableNamePrefix)
throws AnzoException,
java.sql.SQLException
INSERT INTO ${a}_OBJ_INFER(PROP,OBJ,OBJINFER) VALUES(?,?,?)
sqlCache - factory and cache of PreparedStatmentsparams - InsertInferedObjectParams input InterfacetableNamePrefix - template parameter
AnzoException
java.sql.SQLException
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
INSERT INTO ${a}_OBJ_INFER(PROP,OBJ,OBJINFER) VALUES(?,?,?)
sqlCache - factory and cache of PreparedStatmentsprop - template parameterobj - template parameterobjinfer - template parametertableNamePrefix - template parameter
AnzoException
java.sql.SQLException
public static void prepareInsertInferedObject(java.sql.PreparedStatement ps,
java.lang.Long prop,
java.lang.Long obj,
java.lang.Long objinfer)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are setprop - template parameterobj - template parameterobjinfer - template parameter
java.sql.SQLException
public static int insertInferedProperty(PreparedStatementCache sqlCache,
InferenceRdbWrapper.InsertInferedPropertyParams params,
java.lang.String tableNamePrefix)
throws AnzoException,
java.sql.SQLException
INSERT INTO ${a}_PROP_INFER(PROP,PROPINFER) VALUES(?,?)
sqlCache - factory and cache of PreparedStatmentsparams - InsertInferedPropertyParams input InterfacetableNamePrefix - template parameter
AnzoException
java.sql.SQLException
public static int insertInferedProperty(PreparedStatementCache sqlCache,
java.lang.Long prop,
java.lang.Long inferredProp,
java.lang.String tableNamePrefix)
throws AnzoException,
java.sql.SQLException
INSERT INTO ${a}_PROP_INFER(PROP,PROPINFER) VALUES(?,?)
sqlCache - factory and cache of PreparedStatmentsprop - template parameterinferredProp - template parametertableNamePrefix - template parameter
AnzoException
java.sql.SQLException
public static void prepareInsertInferedProperty(java.sql.PreparedStatement ps,
java.lang.Long prop,
java.lang.Long inferredProp)
throws java.sql.SQLException
ps - PreparedStatement to whose parameters are setprop - template parameterinferredProp - template parameter
java.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||