|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openstreetmap.osmosis.core.apidb.common.MysqlIdentityValueLoader
public class MysqlIdentityValueLoader
Mysql implementation of an identity value loader.
| Constructor Summary | |
|---|---|
MysqlIdentityValueLoader(DatabaseContext dbCtx)
Creates a new instance. |
|
| Method Summary | |
|---|---|
long |
getLastInsertId()
Returns the id of the most recently inserted row on the current connection. |
long |
getLastSequenceId(java.lang.String sequenceName)
Returns the most recently returned value from the specified sequence on the current connection. |
void |
release()
Performs resource cleanup tasks such as closing files, or database connections. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MysqlIdentityValueLoader(DatabaseContext dbCtx)
dbCtx - The database context to use for all database access.| Method Detail |
|---|
public long getLastInsertId()
getLastInsertId in interface IdentityValueLoaderpublic long getLastSequenceId(java.lang.String sequenceName)
getLastSequenceId in interface IdentityValueLoadersequenceName - The name of the sequence to query.
public void release()
release in interface Releasable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||