|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.postgresql.pljava.management.SQLDeploymentDescriptor
This class deals with parsing and executing the deployment descriptor as defined in ISO/IEC 9075-13:2003. It has the following format:
<descriptor file> ::=
SQLActions <left bracket> <right bracket> <equal sign>
{ [ <double quote> <action group> <double quote>
[ <comma> <double quote> <action group> <double quote> ] ] }
<action group> ::=
<install actions>
| <remove actions>
<install actions> ::=
BEGIN INSTALL [ <command> <semicolon> ]... END INSTALL
<remove actions> ::=
BEGIN REMOVE [ <command> <semicolon> ]... END REMOVE
<command> ::=
<SQL statement>
| <implementor block>
<SQL statement> ::= <SQL token>...
<implementor block> ::=
BEGIN <implementor name> <SQL token>... END <implementor name>
<implementor name> ::= <identifier>
<SQL token> ::= an SQL lexical unit specified by the term "<token>" in
Subclause 5.2, "<token>" and "<separator>", in ISO/IEC 9075-2.
Constructor Summary | |
SQLDeploymentDescriptor(java.lang.String descImage,
java.lang.String implementorName)
Parses the deployment descriptor descImage using
implementorName as discriminator for implementor specific
blocks. |
Method Summary | |
void |
install(java.sql.Connection conn)
Executes the INSTALL actions. |
void |
remove(java.sql.Connection conn)
Executes the REMOVE actions. |
java.lang.String |
toString()
Returns the original image. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SQLDeploymentDescriptor(java.lang.String descImage, java.lang.String implementorName) throws java.text.ParseException
descImage
using
implementorName
as discriminator for implementor specific
blocks. The install and remove blocks are remembered for later execution
with calls to install()
and remove()
.
descImage
- The image to parseimplementorName
- The discriminator to use for implementor blocks
java.text.ParseException
- If a parse error is encounteredMethod Detail |
public void install(java.sql.Connection conn) throws java.sql.SQLException
INSTALL
actions.
conn
- The connection to use for the execution.
java.sql.SQLException
public void remove(java.sql.Connection conn) throws java.sql.SQLException
REMOVE
actions.
conn
- The connection to use for the execution.
java.sql.SQLException
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |