org.eclipse.datatools.sqltools.editor.template
Class SQLTemplate
java.lang.Object
   org.eclipse.jface.text.templates.Template
org.eclipse.jface.text.templates.Template
       org.eclipse.datatools.sqltools.editor.template.SQLTemplate
org.eclipse.datatools.sqltools.editor.template.SQLTemplate
- All Implemented Interfaces: 
- TemplateConstant
- Direct Known Subclasses: 
- SQLIntelligentTemplate
- public class SQLTemplate 
- extends org.eclipse.jface.text.templates.Template- implements TemplateConstant
This class extends Template to add attribute 'template id'.
- Author:
- lihuang
 
| Fields inherited from interface org.eclipse.datatools.sqltools.editor.template.TemplateConstant | 
| AND, ASTERISK, BEGIN, COMMA, DECLARE, DELETE, DOT, DOUBLE_QUOTE, END, EQUAL, EXECUTE, FROM, INSERT, INT, INTELLIGENT_TEMPLATE, LEFT_PARENTHESIS, NEWLINE, NEWLINENUMBER, OUTPUT, RIGHT_PARENTHESIS, SELECT, SEMICOLON, SET, SPACE, TAB, UPDATE, UPDATELINENUMBER, VALUES, VAR, WHERE | 
 
| Constructor Summary | 
| SQLTemplate()Creates an empty template.
 | 
| SQLTemplate(SQLTemplate template)Creates a copy of a template.
 | 
| SQLTemplate(java.lang.String id,
            java.lang.String name,
            java.lang.String description,
            java.lang.String contextTypeId,
            java.lang.String pattern)Creates a template.
 | 
| SQLTemplate(java.lang.String id,
            java.lang.String name,
            java.lang.String description,
            java.lang.String contextTypeId,
            java.lang.String pattern,
            boolean isAutoInsertable,
            java.lang.String proposalDescription)Creates a template.
 | 
 
 
| Methods inherited from class org.eclipse.jface.text.templates.Template | 
| getContextTypeId, getDescription, getName, getPattern, hashCode, isAutoInsertable, matches, setContextTypeId, setDescription, setName, setPattern | 
 
| Methods inherited from class java.lang.Object | 
| getClass, notify, notifyAll, toString, wait, wait, wait | 
 
SQLTemplate
public SQLTemplate()
- Creates an empty template.
 
SQLTemplate
public SQLTemplate(SQLTemplate template)
- Creates a copy of a template.
 
- Parameters:
- template- the template to copy
 
SQLTemplate
public SQLTemplate(java.lang.String id,
                   java.lang.String name,
                   java.lang.String description,
                   java.lang.String contextTypeId,
                   java.lang.String pattern)
- Creates a template.
 
- Parameters:
- name- the name of the template
- description- the description of the template
- contextTypeId- the id of the context type in which the template can be applied
- pattern- the template pattern
 
SQLTemplate
public SQLTemplate(java.lang.String id,
                   java.lang.String name,
                   java.lang.String description,
                   java.lang.String contextTypeId,
                   java.lang.String pattern,
                   boolean isAutoInsertable,
                   java.lang.String proposalDescription)
- Creates a template.
 
- Parameters:
- name- the name of the template
- description- the description of the template
- contextTypeId- the id of the context type in which the template can be applied
- pattern- the template pattern
- isAutoInsertable- the auto insertable property of the template
- Since:
- 3.1
 
equals
public boolean equals(java.lang.Object o)
- 
- Overrides:
- equalsin class- org.eclipse.jface.text.templates.Template
 
- 
 
getId
public java.lang.String getId()
- 
 
- 
 
setId
public void setId(java.lang.String id)
- 
 
- 
 
getProposalPopupDescription
public java.lang.String getProposalPopupDescription()
- 
 
-