| com.completex.objective.components.persistency.LightPersistency
Method Summary | |
int | delete(PersistentObject persistentObject) Delete persistent object by primary key
Parameters: persistentObject - number of row affected. | int | delete(PersistentObject persistentObject, LifeCycleController controller) Delete persistent object by primary key
Parameters: persistentObject - Parameters: controller - number of row affected. | int[] | delete(Collection persistentObjects) | int | deleteByExample(PersistentObject persistentObject) Deletes persistent object "by example" PersistentObject. | int | deleteByExample(PersistentObject persistentObject, LifeCycleController controller) Deletes persistent object "by example" PersistentObject. | int | deleteByExample(PersistentObject persistentObject, int limit) Deletes persistent object "by example" PersistentObject. | int | deleteByExample(PersistentObject persistentObject, LifeCycleController controller, int limit) Deletes persistent object "by example" PersistentObject. | int | executeUpdate(String sql, Parameters parameters) Execute ad-hoc data modifying sql.
Parameters: sql - SQL statement to execute Parameters: parameters - parameters number of row affected or RC_NON_DIRTY value if record is not "dirty". | int | executeUpdate(String sql) Execute ad-hoc data modifying sql.
Parameters: sql - SQL statement to execute number of row affected or RC_NON_DIRTY value if record is not "dirty". | int | executeUpdate(String sql, Object[] values) Execute ad-hoc data modifying sql.
Parameters: sql - SQL statement to execute Parameters: values - values to use as SQL parameters. | int[] | insert(Collection persistentObjects) | int | pipeInsert(PersistentObject persistentObject, LifeCycleController controller) Forces insert on object that is already saved in the database. | int | pipeInsert(PersistentObject persistentObject) Forces insert on object that is already saved in the database. | int | truncate(String tableName) Execute truncate table sql. | int | update(PersistentObject persistentObject) Update persistent object. | int | update(PersistentObject persistentObject, String extraWhere, Parameters extraParameters) Update persistent object. | int | update(PersistentObject persistentObject, LifeCycleController controller) Update persistent object. | int | update(PersistentObject persistentObject, String extraWhere, Object[] extraParameters, LifeCycleController controller) Update persistent object. | int | update(PersistentObject persistentObject, String extraWhere, Parameters extraParameters, LifeCycleController controller) Update persistent object. | int[] | update(Collection persistentObjects) | int[] | update(Collection collection, LifeCycleController lifeCycleController) | int[] | update(TracingCollection collection, Collection source, LifeCycleController lifeCycleController) Update collection of persistent objects. | int[] | update(TracingCollection collection, Collection source) Update collection of persistent objects. |
deleteByExample | int deleteByExample(PersistentObject persistentObject) throws OdalPersistencyException(Code) | | Deletes persistent object "by example" PersistentObject. The fields and their values that are set on the object are then joined by "and" into sql where clause.
Parameters: persistentObject - number of row affected. Should not be used for batch updates or complex/compound objects throws: OdalPersistencyException - |
deleteByExample | int deleteByExample(PersistentObject persistentObject, LifeCycleController controller) throws OdalPersistencyException(Code) | | Deletes persistent object "by example" PersistentObject. The fields and their values that are set on the object are then joined by "and" into sql where clause.
Parameters: persistentObject - Parameters: controller - LifeCycleController number of row affected. Should not be used for batch updates or complex/compound objects throws: OdalPersistencyException - |
deleteByExample | int deleteByExample(PersistentObject persistentObject, int limit) throws OdalPersistencyException(Code) | | Deletes persistent object "by example" PersistentObject. The fields and their values that are set on the object are then joined by "and" into sql where clause.
Parameters: persistentObject - Parameters: limit - max number of rows to delete (limit must be supported by the database) number of row affected. Should not be used for batch updates or complex/compound objects throws: OdalPersistencyException - |
deleteByExample | int deleteByExample(PersistentObject persistentObject, LifeCycleController controller, int limit) throws OdalPersistencyException(Code) | | Deletes persistent object "by example" PersistentObject. The fields and their values that are set on the object are then joined by "and" into sql where clause.
Parameters: persistentObject - Parameters: controller - LifeCycleController Parameters: limit - max number of rows to delete (limit must be supported by the database) number of row affected. Should not be used for batch updates or complex/compound objects throws: OdalPersistencyException - |
executeUpdate | int executeUpdate(String sql, Parameters parameters) throws OdalPersistencyException(Code) | | Execute ad-hoc data modifying sql.
Parameters: sql - SQL statement to execute Parameters: parameters - parameters number of row affected or RC_NON_DIRTY value if record is not "dirty". Should not be used for batch updates or complex/compound objects throws: OdalPersistencyException - |
executeUpdate | int executeUpdate(String sql) throws OdalPersistencyException(Code) | | Execute ad-hoc data modifying sql.
Parameters: sql - SQL statement to execute number of row affected or RC_NON_DIRTY value if record is not "dirty". Should not be used for batch updates or complex/compound objects throws: OdalPersistencyException - |
executeUpdate | int executeUpdate(String sql, Object[] values) throws OdalPersistencyException(Code) | | Execute ad-hoc data modifying sql.
Parameters: sql - SQL statement to execute Parameters: values - values to use as SQL parameters. The parameter types will be extrapolated number of row affected or RC_NON_DIRTY value if record is not "dirty". Should not be used for batch updates or complex/compound objects throws: OdalPersistencyException - |
update | int update(PersistentObject persistentObject) throws OdalPersistencyException(Code) | | Update persistent object. Key values are the ones of primary key and "optimistic lock" fields.
Parameters: persistentObject - object to update number of row affected or RC_NON_DIRTY value if record is not "dirty". Should not be used for batch updates or complex/compound objects throws: OdalPersistencyException - |
update | int update(PersistentObject persistentObject, String extraWhere, Parameters extraParameters) throws OdalPersistencyException(Code) | | Update persistent object. Key values are the ones of primary key and "optimistic lock" fields.
Parameters: persistentObject - object to update number of row affected or RC_NON_DIRTY value if record is not "dirty". Should not be used for batch updates or complex/compound objects throws: OdalPersistencyException - |
update | int update(PersistentObject persistentObject, LifeCycleController controller) throws OdalPersistencyException(Code) | | Update persistent object. Key values are the ones of primary key and "optimistic lock" fields.
Parameters: persistentObject - object to update Parameters: controller - number of row affected or RC_NON_DIRTY value if record is not "dirty". Should not be used for batch updates or complex/compound objects throws: OdalPersistencyException - |
update | int update(PersistentObject persistentObject, String extraWhere, Object[] extraParameters, LifeCycleController controller) throws OdalPersistencyException(Code) | | Update persistent object. Key values are the ones of primary key and "optimistic lock" fields.
Parameters: persistentObject - object to update Parameters: extraWhere - sql fragment Parameters: extraParameters - optional parameters for extraWhere sql fragment Parameters: controller - LifeCycleController number of row affected or RC_NON_DIRTY value if record is not "dirty". Should not be used for batch updates or complex/compound objects throws: OdalPersistencyException - |
update | int update(PersistentObject persistentObject, String extraWhere, Parameters extraParameters, LifeCycleController controller) throws OdalPersistencyException(Code) | | Update persistent object. Key values are the ones of primary key and "optimistic lock" fields.
Parameters: persistentObject - object to update Parameters: extraWhere - sql fragment Parameters: extraParameters - optional parameters for extraWhere sql fragment Parameters: controller - LifeCycleController number of row affected or RC_NON_DIRTY value if record is not "dirty". Should not be used for batch updates or complex/compound objects throws: OdalPersistencyException - |
update | int[] update(TracingCollection collection, Collection source, LifeCycleController lifeCycleController) throws OdalPersistencyException(Code) | | Update collection of persistent objects.
TracingCollection collection will be matched with the source one and "trced".
That is objects that are in collection but not in source will be deleted,
that are not in collection but are in source will be inserted, objects that are in
both but "dirty" will be updated
Parameters: collection - Parameters: source - Parameters: lifeCycleController - array of return codes - one per collection entry throws: OdalPersistencyException - |
update | int[] update(TracingCollection collection, Collection source) throws OdalPersistencyException(Code) | | Update collection of persistent objects.
TracingCollection collection will be matched with the source one and "trced".
That is objects that are in collection but not in source will be deleted,
that are not in collection but are in source will be inserted, objects that are in
both but "dirty" will be updated
Parameters: collection - Parameters: source - array of return codes - one per collection entry throws: OdalPersistencyException - |
|
|