|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.SIRAPRISE.client.jsba.DBObjectInterfaceGenerator
public class DBObjectInterfaceGenerator
The DBObjectInterfaceGenerator utility helps the developer in writing classes for the java/SIRA_PRISE bridging architecture (abbreviated JSBA) by generating java source files that define an interface for JSBA classes to implement. Without this utility, a programmer must carefully choose the names of the methods that are required by JSBA for a class to cooperate with a SIRA_PRISE relvar. With this utility, the developer can generate the interface definition that corresponds to a given SIRA_PRISE relvar, include that interface definition in his java project and implement the interface methods in his class(es).
Please see the main() method documentation for details on running the utility
Field Summary | |
---|---|
static java.lang.String |
RELVAR
The name for the default option when invoking the DBObjectInterfaceGenerator |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
The DBObjectInterfaceGenerator utility helps the developer in writing classes for the java/SIRA_PRISE bridging architecture (abbreviated JSBA) by generating java source files that define an interface for JSBA classes to implement. |
byte[] |
sign(java.security.Signature signature,
byte[] signMessage)
Computes the signature for the given byte string and the given Signature. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RELVAR
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.io.IOException
The DBObjectInterfaceGenerator utility helps the developer in writing classes for the java/SIRA_PRISE bridging architecture (abbreviated JSBA) by generating java source files that define an interface for JSBA classes to implement. Without this utility, a programmer must carefully choose the names of the methods that are required by JSBA for a class to cooperate with a SIRA_PRISE relvar. With this utility, the developer can generate the interface definition that corresponds to a given SIRA_PRISE relvar, include that interface definition in his java project and implement the interface methods in his class(es).
This utility writes two files in the specified output directory (see the discussion of the args[] argument). One file is named "DBObjectTo
", suffixed with the capitalized relvar name (i.e. the first character in uppercase, all the others in lowercase). The other file is named "ToDBObject
", prefixed with the capitalized relvar name.
args
- The options for the utility can be passed via the command line using the following syntax for each option : optionname(optionvalue)
. The following options can be passed :
Option name |
Description |
Default value |
---|---|---|
|
The hostname or IP address of the SIRA_PRISE server to which to connect. |
LOCALHOST |
|
The IP port number on the server to which to connect |
50000 |
|
The name of the relvar for which to generate an interface definition. |
no default. |
|
The directory where the script processor's output is to be written. This option can only be set on the command line, not in a properties file. |
No default |
The RELVAR argument can be passed, alternatively, as the first argument and without having to be enclosed in RELVAR() parentheses, as in : DBObjectInterfaceGenerator myrelvar host(...) port(...)
Options that are not specified via the command line, are set from the DBObjectInterfaceGeneratorProperties object.
java.io.IOException
public byte[] sign(java.security.Signature signature, byte[] signMessage) throws java.security.InvalidKeyException, java.security.SignatureException, NotFoundException
Signer
sign
in interface Signer
signature
- The Signature object to be used for computing the signature.signMessage
- The message to be signed.
java.security.InvalidKeyException
- If the private key found for signing with this Signature, turns out to be invalid
java.security.SignatureException
- If any problem occurred during computation of the signature
NotFoundException
- If no private key could be found for signing with this Signature
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |