|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jenkov.mrpersister.util.MappingUtil
public class MappingUtil
This class contains utility methods shared by the components of Mr Persister.
Constructor Summary | |
---|---|
MappingUtil()
|
Method Summary | |
---|---|
static int |
insertPrimaryKey(IObjectMapping mapping,
IKeyValue keyValue,
java.sql.PreparedStatement statement,
int index)
This method can insert the given key value object into a prepared statement. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MappingUtil()
Method Detail |
---|
public static int insertPrimaryKey(IObjectMapping mapping, IKeyValue keyValue, java.sql.PreparedStatement statement, int index) throws PersistenceException
keyValue
- The key value to insert into the prepared statement.statement
- The prepared statement to insert the key value into.index
- The index of the prepared statement parameter
to insert the first value of the key value into.
PersistenceException
- If the given key value does not match the primary key of this
object mapping, or if the insert fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |