|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.datatools.sqltools.core.ProcIdentifierImpl
public class ProcIdentifierImpl
This interface is used to uniquely identifies a stored procedure, or trigger, or event handler, etc. Different database type may use different way to identify that, such as an ID. Client application should not directly create an ProcIdentifierImpl, should create it through the corresponding factory.
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.datatools.sqltools.core.ProcIdentifier |
|---|
PROP_DBNAME, PROP_NAME, PROP_NUMBER, PROP_OWNER, PROP_PROFILE, PROP_TABLENAME, PROP_TABLEOWNERNAME, PROP_TYPE, TYPE_EVENT, TYPE_SP, TYPE_SQL, TYPE_TRIGGER, TYPE_UDF |
| Constructor Summary | |
|---|---|
ProcIdentifierImpl(int type,
DatabaseIdentifier db,
java.util.Map map)
|
|
| Method Summary | |
|---|---|
static ProcIdentifier |
decode(java.lang.String encoded)
|
static java.util.Map |
decodeMap(java.lang.String encoded)
|
static ProcIdentifier |
decodeWithNewProfile(java.lang.String encoded,
java.lang.String profile)
|
java.lang.String |
encode()
Encoded this as a string. |
static void |
encodeMap(java.lang.StringBuffer buffer,
java.util.Map map)
assumes that keys don't contain '=' and '/', and values don't contain '/' |
boolean |
equals(java.lang.Object obj)
|
boolean |
equalsByServer(java.lang.Object obj)
Returns whether the given object equals to this ProcIdentifier object. |
java.lang.String |
getCallableString()
Gets a executable SQL string for the rountine object. |
java.lang.String |
getCallableString(boolean quoted_id)
Gets a executable SQL string for the rountine object. |
java.lang.String |
getCallableStringWithoutGroupNumber()
Gets a executable SQL string for the rountine object without group number. |
java.lang.String |
getCallableStringWithoutGroupNumber(boolean quoted_id)
Gets a executable SQL string for the rountine object without group number. |
DatabaseIdentifier |
getDatabaseIdentifier()
|
java.lang.String |
getDatabaseName()
|
java.lang.String |
getDisplayString()
Gets a short display string for the rountine object. |
java.lang.String |
getLongDisplayString()
Gets a long display string for the rountine object. |
int |
getNumber()
This method is only valid when this stored procedure supports group. |
java.lang.String |
getOwnerName()
get owner name of the database object. |
java.lang.String |
getProcName()
get the procedure or trigger or event handler's name |
java.lang.String |
getProfileName()
|
java.lang.String |
getTableName()
This is method is only valid when this proc is trigger. |
java.lang.String |
getTableOwnerName()
Gets owner name of the subject table when the procedural object type is trigger . |
int |
getType()
Gets the database object's type, as defined in this interface. |
int |
hashCode()
|
void |
setProfileName(java.lang.String profileName)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProcIdentifierImpl(int type,
DatabaseIdentifier db,
java.util.Map map)
type - db - map - | Method Detail |
|---|
public int getType()
ProcIdentifier
getType in interface ProcIdentifierpublic java.lang.String getProcName()
getProcName in interface ProcIdentifierpublic java.lang.String getOwnerName()
getOwnerName in interface ProcIdentifierpublic DatabaseIdentifier getDatabaseIdentifier()
getDatabaseIdentifier in interface ProcIdentifierpublic java.lang.String getDatabaseName()
getDatabaseName in interface ProcIdentifierpublic java.lang.String getProfileName()
getProfileName in interface ProcIdentifierpublic int getNumber()
ProcIdentifier
getNumber in interface ProcIdentifierpublic java.lang.String getTableName()
ProcIdentifier
getTableName in interface ProcIdentifierpublic java.lang.String getTableOwnerName()
ProcIdentifier
getTableOwnerName in interface ProcIdentifierpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic boolean equalsByServer(java.lang.Object obj)
equalsByServer in interface ProcIdentifierobj -
public java.lang.String toString()
toString in class java.lang.Object
public static void encodeMap(java.lang.StringBuffer buffer,
java.util.Map map)
buffer - map - public static java.util.Map decodeMap(java.lang.String encoded)
public java.lang.String encode()
ProcIdentifier
encode in interface ProcIdentifier
public static ProcIdentifier decode(java.lang.String encoded)
throws java.text.ParseException
java.text.ParseException
public static ProcIdentifier decodeWithNewProfile(java.lang.String encoded,
java.lang.String profile)
throws java.text.ParseException
java.text.ParseExceptionpublic java.lang.String getDisplayString()
ProcIdentifier
getDisplayString in interface ProcIdentifierpublic java.lang.String getLongDisplayString()
ProcIdentifier
getLongDisplayString in interface ProcIdentifierpublic java.lang.String getCallableStringWithoutGroupNumber()
ProcIdentifier
getCallableStringWithoutGroupNumber in interface ProcIdentifierpublic java.lang.String getCallableString()
ProcIdentifier
getCallableString in interface ProcIdentifierpublic void setProfileName(java.lang.String profileName)
public java.lang.String getCallableString(boolean quoted_id)
ProcIdentifier
getCallableString in interface ProcIdentifierquoted_id - whether "quoted identifier" is onpublic java.lang.String getCallableStringWithoutGroupNumber(boolean quoted_id)
ProcIdentifier
getCallableStringWithoutGroupNumber in interface ProcIdentifierquoted_id - whether "quoted identifier" is on
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||