|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.sqltools.sqleditor.internal.sql.SQLDBProposal
public class SQLDBProposal
Content assist proposal that represents either a catalog, schema, table, column, function, stored procedure, trigger, or event.
Field Summary | |
---|---|
static int |
CATALOG_OBJTYPE
|
static int |
EVENT_OBJTYPE
|
static int |
FUNCTION_OBJTYPE
|
static int |
INDEX_OBJTYPE
|
static int |
SCHEMA_OBJTYPE
|
static int |
SEGMENT_OBJTYPE
|
static int |
STORED_PROCEDURE_OBJTYPE
|
static int |
TABLE_OBJTYPE
|
static int |
TABLEALIAS_OBJTYPE
|
static int |
TABLECOLUMN_OBJTYPE
|
static int |
TRIGGER_OBJTYPE
|
static int |
UNKNOWN_OBJTYPE
|
Constructor Summary | |
---|---|
SQLDBProposal(org.eclipse.emf.ecore.EObject dbObject)
Constructs an instance of this object to represent the given database model object for purpose of a content assist proposal. |
|
SQLDBProposal(org.eclipse.emf.ecore.EObject dbObject,
java.lang.String alias)
Constructs an instance of this object to represent the given database model object for purpose of a content assist proposal. |
|
SQLDBProposal(java.lang.String alias)
Constructs an instance of this object to represent the given table alias for purpose of a content assist proposal. |
Method Summary | |
---|---|
org.eclipse.emf.ecore.EObject |
getDBObject()
Gets the database model object that this proposal represents. |
java.lang.String |
getGrandGrandParentName()
Gets the name of the grandgrandparent of the database model object associated with this proposal. |
java.lang.String |
getGrandParentName()
Gets the name of the grandparent of the database model object associated with this proposal. |
org.eclipse.swt.graphics.Image |
getImage()
Gets the image to be used for this content assist proposal. |
java.lang.String |
getName()
Gets the name of the database object. |
java.lang.String |
getParentAlias()
Gets the alias of the database object. |
java.lang.String |
getParentName()
Gets the name of the parent of the database model object associated with this proposal. |
org.eclipse.emf.ecore.EObject |
getParentObject()
Gets the parent of the database object. |
int |
getType()
Gets the type of the proposal. |
void |
setImage(org.eclipse.swt.graphics.Image image)
Sets the image to be used for this content assist proposal. |
void |
setName(java.lang.String name)
Sets the name to the given name. |
void |
setParentName(java.lang.String parentName)
Sets the parent name to the given name. |
void |
setType(int type)
Sets the type for this content assist proposal. |
java.lang.String |
toString()
Gets a string describing this object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int SCHEMA_OBJTYPE
public static final int TABLE_OBJTYPE
public static final int TABLECOLUMN_OBJTYPE
public static final int CATALOG_OBJTYPE
public static final int FUNCTION_OBJTYPE
public static final int STORED_PROCEDURE_OBJTYPE
public static final int TRIGGER_OBJTYPE
public static final int EVENT_OBJTYPE
public static final int TABLEALIAS_OBJTYPE
public static final int INDEX_OBJTYPE
public static final int SEGMENT_OBJTYPE
public static final int UNKNOWN_OBJTYPE
Constructor Detail |
---|
public SQLDBProposal(org.eclipse.emf.ecore.EObject dbObject, java.lang.String alias)
Schema
, Table
,
Column
.
dbObject
- the database model objectSchema
,
org.eclipse.datatools.modelbase.sql.schema.Table
,
org.eclipse.datatools.modelbase.sql.schema.Column
public SQLDBProposal(java.lang.String alias)
alias
- the table aliaspublic SQLDBProposal(org.eclipse.emf.ecore.EObject dbObject)
Schema
, Table
,
Column
.
dbObject
- the database model objectSchema
,
org.eclipse.datatools.modelbase.sql.schema.Table
,
org.eclipse.datatools.modelbase.sql.schema.Column
Method Detail |
---|
public org.eclipse.emf.ecore.EObject getDBObject()
public org.eclipse.swt.graphics.Image getImage()
public java.lang.String getName()
public java.lang.String getParentAlias()
public java.lang.String getParentName()
public java.lang.String getGrandParentName()
public java.lang.String getGrandGrandParentName()
public org.eclipse.emf.ecore.EObject getParentObject()
public int getType()
public void setImage(org.eclipse.swt.graphics.Image image)
image
- the Image
to use for this proposalpublic void setParentName(java.lang.String parentName)
parentName
- the parent name to setpublic void setType(int type)
type
- the type to setpublic void setName(java.lang.String name)
name
- the name to setpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |