public class AutoKey
extends java.lang.Object
This class should not be confused with the class of the same name in the
psdi.app.system package, psdi.app.system.AutoKey,
which represents the AutoKey Mbo and autokey database table.
Mbo.generateAutoKey(),
MboValue.autoKey()| Modifier and Type | Field and Description |
|---|---|
static int |
NOLEVEL |
static int |
ORGLEVEL |
static int |
SETLEVEL |
static int |
SITELEVEL |
| Constructor and Description |
|---|
AutoKey(java.sql.Connection conn,
MboValueInfo mvi,
UserInfo user,
MboRemote mbo,
MboSetInfo mbosetinfo)
Construct an autokey, giving the name, connection , user and mbo
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAutoKeyLevel() |
java.lang.String |
getOrgLevelWhere() |
java.lang.String |
getSetId() |
java.lang.String |
getSetLevelWhere() |
java.lang.String |
getSetLevelWhereForUniqueCheck() |
java.lang.String |
getSiteLevelWhere() |
java.lang.String[] |
getSiteOrgId() |
java.lang.String |
nextValue()
Give me the next value
|
java.lang.String |
nextValue(int retryAttempt)
returns the next autokey value
|
void |
setToUseMboSiteOrg(MboRemote mbo)
Set the site and org where clause based on the passed in mbo instead of the insert site.
|
public static int NOLEVEL
public static int ORGLEVEL
public static int SITELEVEL
public static int SETLEVEL
public AutoKey(java.sql.Connection conn,
MboValueInfo mvi,
UserInfo user,
MboRemote mbo,
MboSetInfo mbosetinfo)
throws java.rmi.RemoteException,
MXException
conn - mvi - user - mbo - mbosetinfo - java.rmi.RemoteExceptionMXExceptionpublic java.lang.String getSiteLevelWhere()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getOrgLevelWhere()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String[] getSiteOrgId()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getSetLevelWhere()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getSetLevelWhereForUniqueCheck()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getSetId()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void setToUseMboSiteOrg(MboRemote mbo) throws MXException, java.rmi.RemoteException
mbo - MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String nextValue()
throws MXException
MXExceptionpublic java.lang.String nextValue(int retryAttempt)
throws MXException
retryAttempt - MXExceptionpublic int getAutoKeyLevel()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteException