psman.dbi
Interface DBI

All Known Implementing Classes:
CryptedDBI, SQL, TimedDBI, XML

public interface DBI

The generic driver interface.

Version:
$Id: DBI.java,v 1.16 2004/06/16 10:55:46 sts Exp $
Author:
Martin Godisch, Thomas Kriegelstein

Field Summary
static int APPELRULESET
          The appelruleset database table constant.
static int CATEGORY
          The category database table constant.
static int CERTIFICATE
          The certificate database table constant.
static int CERTIFICATE_PUBLIC_KEY
          The certificate_key database table constant.
static int CHAIN
          The chain database table constant.
static int CONFIGURATION
          The category database table constant.
static int DATA_FIELD
          The data_field database table constant.
static int DATA_FIELD_CATEGORY
          The data_field_category database table constant.
static int DATA_FIELD_CERTIFICATE
          The data_field_certificate database table constant.
static int DISCLOSURE_PURPOSE
          The purpose of data disclosure.
static int DISCLOSURE_RECIPIENT
          The recipient of disclosed data.
static int MASTER
          The master database table constant.
static int PERSON
          The person database table constant.
static int PROPERTY
          The property database table constant.
static int PROPERTY_CERTIFICATE
          The property_certificate database table constant.
static int PSEUDONYM
          The pseudonym database table constant.
static int PSEUDONYM_PROPERTY
          The pseudonym_property database table constant.
static int PSEUDONYM_PSEUDONYM_TYPE
          The pseudonym_pseudonym_type db table constant.
static int PSEUDONYM_TYPE
          The pseudonym_type database table constant.
static int PUBLIC_KEY
          The public_key database table constant.
static int PUBLIC_KEY_CERTIFICATE
          The key_certificate database table constant.
static int PURPOSE
          The purpose database table constant.
static int RECIPIENT
          The recipient database table constant.
static int ROLE
          The roles database table constant.
static int ROLE_TPARTNER_PSEUDONYM_TYPE
          The role_tpartner_pseudonym_type db table constant.
static int RULE
          The rules database table constant.
static int SECRET_KEY
          The secret_key database table constant.
static int T_PARTNER
          The t_partner database table constant.
static int T_PARTNER_TYPE
          The t_partner_type database table constant.
static java.lang.String[] TABLE_NAME
          The names of the database tables.
static int TRANSACTION
          The transactions database table constant.
static int TRANSACTION_DATA_FIELD
          The transaction_data_field database table constant.
static int TYPE
          The type database table constant.
 
Method Summary
 java.lang.Object[][] appelRuleSetTable()
          Parse the database and return all sets of appel rules.
 java.lang.Object[][] categoryTable()
          Parse the database and return all category records.
 java.lang.Object[][] certificateTable()
          Parse the database and return all certificate records.
 java.lang.Object[][] chainTable()
          Parse the database and return all chain records.
 java.lang.Object[][] configurationTable()
          Parse the database and return all configuration records.
 void connect(java.util.Properties data)
          Connect to the database.
 void create()
          Create all predefined database tables in correct order.
 void create(int table)
          Create a predefined database table.
 java.lang.Object[][] dataFieldTable()
          Parse the database and return all data field records.
 int delete(psman.data.AppelRuleSet data)
          Delete a set of appel rules.
 int delete(psman.data.Category data)
          Delete a category.
 int delete(psman.data.Certificate data)
          Delete a certificate.
 int delete(psman.data.Chain data)
          Delete a chain.
 int delete(psman.data.Configuration data)
          Delete a configuration.
 int delete(psman.data.DataField data)
          Delete a data field.
 int delete(psman.data.Person data)
          Delete a person.
 int delete(psman.data.Property data)
          Delete a property.
 int delete(psman.data.Pseudonym data)
          Delete a pseudonym.
 int delete(psman.data.PseudonymType data)
          Delete a pseudonym type.
 int delete(psman.data.PublicKey data)
          Delete a public key.
 int delete(psman.data.Purpose data)
          Delete a purpose.
 int delete(psman.data.Recipient data)
          Delete a recipient.
 int delete(psman.data.Role data)
          Delete a role.
 int delete(psman.data.Role data1, psman.data.TPartner data2)
          Removes all bindings to a pseudonym type for the given context.
 int delete(psman.data.Rule data)
          Delete a rule.
 int delete(psman.data.SecretKey data)
          Delete a secret key.
 int delete(psman.data.TPartner data)
          Delete a transaction partner.
 int delete(psman.data.Type data)
          Delete a type.
 void disconnect()
          Disconnect from the database.
 void drop()
          Drop all tables from the database in correct order.
 void drop(int table)
          Drop the tables from the database.
 int insert(psman.data.AppelRuleSet data)
          Create a set of appel rules.
 int insert(psman.data.Category data)
          Create a category.
 int insert(psman.data.Certificate data)
          Create a certificate.
 int insert(psman.data.Certificate cert, psman.data.PublicKey key)
          Insert link between certificate and its test-key.
 int insert(psman.data.Chain data)
          Create a chain.
 int insert(psman.data.Configuration data)
          Create a pseudonym type.
 int insert(psman.data.DataField data)
          Create a data field.
 int insert(psman.data.DataField data, psman.data.Category[] bindings)
          Insert data field categories.
 int insert(psman.data.DataField data, psman.data.Certificate[] bindings)
          Insert data field certificates.
 int insert(psman.data.Person data)
          Create a person entry.
 int insert(psman.data.Property data)
          Create a property entry.
 int insert(psman.data.Property data, psman.data.Certificate[] bindings)
          Insert property certificates.
 int insert(psman.data.Pseudonym data)
          Create a pseudonym entry.
 int insert(psman.data.Pseudonym data, psman.data.Property[] bindings)
          Link pseudonym to properties.
 int insert(psman.data.Pseudonym data, psman.data.PseudonymType[] bindings)
          Link pseudonym to pseudonym types.
 int insert(psman.data.PseudonymType data)
          Create a pseudonym type entry.
 int insert(psman.data.PublicKey data)
          Create a public key entry.
 int insert(psman.data.PublicKey data, psman.data.Certificate[] bindings)
          Insert public key certificates.
 int insert(psman.data.Purpose data)
          Create a purpose.
 int insert(psman.data.Recipient data)
          Create a recipient.
 int insert(psman.data.Role data)
          Create a role entry.
 int insert(psman.data.Role data1, psman.data.TPartner data2, psman.data.PseudonymType binding)
          Inserts a binding to a pseudonym type for the given context.
 int insert(psman.data.Rule data)
          Create a rule entry.
 int insert(psman.data.SecretKey data)
          Create a secret key entry.
 int insert(psman.data.TPartner data)
          Create a transaction partner entry.
 int insert(psman.data.TPartner data, psman.data.Type[] bindings)
          Insert transaction partner types.
 int insert(psman.data.Transaction data)
          Create a transaction entry.
 int insert(psman.data.Transaction data, psman.data.DataField[] bindings)
          Insert transaction data fields.
 int insert(psman.data.Transaction data1, psman.data.DataField data2, psman.data.Purpose[] bindings)
          Insert purpose for disclosure.
 int insert(psman.data.Transaction data1, psman.data.DataField data2, psman.data.Recipient[] bindings)
          Insert recipient for disclosure.
 int insert(psman.data.Type data)
          Create a type entry.
 boolean isConnected()
          Tell the database connection status.
 boolean isReadOnly()
          Return the database read-only state.
 java.lang.Object[][] personTable()
          Parse the database and return all person records.
 java.lang.Object[][] propertyTable()
          Parse the database and return all properties.
 java.lang.Object[][] pseudonymTable()
          Parse the database and return all pseudonym records.
 java.lang.Object[][] pseudonymTypeTable()
          Parse the database and return all pseudonym type records.
 java.lang.Object[][] publicKeyTable()
          Parse the database and return all public keys.
 java.lang.Object[][] purposeTable()
          Parse the database and return all purpose records.
 java.lang.Object[][] recipientTable()
          Parse the database and return all recipient records.
 java.lang.Object[][] roleTable()
          Parse the database and return all roles.
 java.lang.Object[][] ruleTable()
          Parse the database and return all rules.
 java.lang.Object[][] secretKeyTable()
          Parse the database and return all secret keys.
 psman.data.AppelRuleSet[] selectAppelRuleSet()
          Get all sets of appel rules.
 psman.data.AppelRuleSet selectAppelRuleSet(java.lang.String id)
          Select a set of appel rules by its key.
 psman.data.Category[] selectCategory()
          Get all category records.
 psman.data.Category[] selectCategory(psman.data.DataField data)
          Select all category records belonging to a certain data field.
 psman.data.Category selectCategory(int id)
          Select a category by its ID.
 psman.data.Category selectCategory(java.lang.String name)
          Select a category by its name.
 psman.data.Certificate[] selectCertificate()
          Get all certificate records.
 psman.data.Certificate selectCertificate(byte[] id)
          Select a certificate by its ID.
 psman.data.Certificate[] selectCertificate(psman.data.DataField data)
          Select all certificate records belonging to a certain data field.
 psman.data.Certificate[] selectCertificate(psman.data.Property data)
          Select all certificate records belonging to a certain property.
 psman.data.Certificate[] selectCertificate(psman.data.PublicKey data, boolean isTestKey)
          Select all certificate records belonging to a certain public key.
 psman.data.Certificate[] selectCertificate(psman.data.PublicKey signedKey, psman.data.PublicKey[] signKeys)
          Selects certificates which certify the signedKey with one of the signKeys.
 psman.data.Chain[] selectChain()
          Get all chain records.
 psman.data.Chain selectChain(int id)
          Select a chain by its ID.
 psman.data.Chain selectChain(java.lang.String name)
          Select a chain by its name.
 psman.data.Configuration[] selectConfiguration()
          Get all Configuration records.
 psman.data.Configuration selectConfiguration(java.lang.String id)
          Select Configuration by its key.
 psman.data.DataField[] selectDataField()
          Get all data field records.
 psman.data.DataField[] selectDataField(psman.data.Certificate data)
          Select data fields by their certificate.
 psman.data.DataField selectDataField(int id)
          Select a data field by its ID.
 psman.data.DataField[] selectDataField(java.lang.String name)
          Select a data field by its name.
 psman.data.DataField[] selectDataField(java.lang.String name, psman.data.TPartner owner)
          Select a data field by its name and owner.
 psman.data.DataField[] selectDataField(psman.data.TPartner owner)
          Select a data field by its owner.
 psman.data.DataField selectDataField(psman.data.TPartner owner, java.lang.String name, java.util.Date valid_from, java.util.Date valid_until)
          Select a data field by its properties.
 psman.data.DataField[] selectDataField(psman.data.Transaction data)
          Select all data fields belonging to a certain transaction.
 psman.data.Person[] selectPerson()
          Get all person records.
 psman.data.Person selectPerson(int id)
          Select a person by its ID.
 psman.data.Person selectPerson(java.lang.String name)
          Select a person by its name.
 psman.data.Property[] selectProperty()
          Select all properties in the database.
 psman.data.Property selectProperty(int id)
          Select a property by its ID.
 psman.data.Property[] selectProperty(psman.data.Pseudonym data)
          Select all properties bound to a certain pseudonym.
 psman.data.Property selectProperty(java.lang.String name)
          Select a property by its name.
 psman.data.Pseudonym[] selectPseudonym()
          Select all pseudonym records in the database.
 psman.data.Pseudonym selectPseudonym(int id)
          Select a pseudonym by its ID.
 psman.data.Pseudonym[] selectPseudonym(psman.data.Property data)
          Select pseudonyms by a property.
 psman.data.Pseudonym[] selectPseudonym(psman.data.PseudonymType data)
          Select pseudonym by their type.
 psman.data.Pseudonym[] selectPseudonym(psman.data.Role data)
          Select pseudonyms by role.
 psman.data.Pseudonym[] selectPseudonym(psman.data.Role data1, psman.data.TPartner data2)
          Select pseudonyms by role and transaction partner.
 psman.data.Pseudonym selectPseudonym(psman.data.SecretKey data)
          Select a pseudonym by its master key.
 psman.data.Pseudonym selectPseudonym(java.lang.String name)
          Select a pseudonym by its name.
 psman.data.Pseudonym[] selectPseudonym(psman.data.TPartner data)
          Select pseudonyms by a transaction partner.
 psman.data.PseudonymType[] selectPseudonymType()
          Select all pseudonym types in the database.
 psman.data.PseudonymType selectPseudonymType(int id)
          Select a pseudonym type by its ID.
 psman.data.PseudonymType[] selectPseudonymType(psman.data.Pseudonym data)
          Select all pseudonym types for the given Pseudonym.
 psman.data.PseudonymType[] selectPseudonymType(psman.data.Role data)
          Select pseudonym types, which where used under a given role.
 psman.data.PseudonymType selectPseudonymType(psman.data.Role data1, psman.data.TPartner data2)
          Select pseudonym types, which where used in communication with a given partner under a given role.
 psman.data.PseudonymType selectPseudonymType(java.lang.String name)
          Select a pseudonym type by its name.
 psman.data.PseudonymType[] selectPseudonymType(psman.data.TPartner data)
          Select pseudonym types, which where used in communication with a given partner.
 psman.data.PublicKey[] selectPublicKey()
          Get all public keys.
 psman.data.PublicKey selectPublicKey(byte[] id)
          Get a public key.
 psman.data.PublicKey[] selectPublicKey(psman.data.Certificate data, boolean areTestKeys)
          Get public keys belonging to a certain certificate.
 psman.data.Purpose[] selectPurpose()
          Get all purpose records.
 psman.data.Purpose selectPurpose(int id)
          Select a purpose by its ID.
 psman.data.Purpose selectPurpose(java.lang.String name)
          Select a purpose by its name.
 psman.data.Purpose[] selectPurpose(psman.data.Transaction data1, psman.data.DataField data2)
          Select all purposes belonging to a certain data disclosure.
 psman.data.Recipient[] selectRecipient()
          Get all recipient records.
 psman.data.Recipient selectRecipient(int id)
          Select a recipient by its ID.
 psman.data.Recipient selectRecipient(java.lang.String name)
          Select a recipient by its name.
 psman.data.Recipient[] selectRecipient(psman.data.Transaction data1, psman.data.DataField data2)
          Select all recipients belonging to a certain data disclosure.
 psman.data.Role[] selectRole()
          Get all roles.
 psman.data.Role selectRole(int id)
          Select a role by its ID.
 psman.data.Role selectRole(java.lang.String name)
          Select a role by its name.
 psman.data.Rule[] selectRule()
          Get all rules.
 psman.data.Rule selectRule(int chain, int rank)
          Select a rule by its chain and rank.
 psman.data.SecretKey[] selectSecretKey()
          Get all secret keys.
 psman.data.SecretKey selectSecretKey(byte[] id)
          Get a secret key.
 psman.data.TPartner[] selectTPartner()
          Get all transaction partner records.
 psman.data.TPartner selectTPartner(int id)
          Select a transaction partner by its ID.
 psman.data.TPartner selectTPartner(psman.data.PublicKey data)
          Select a transaction partner by its public key.
 psman.data.TPartner selectTPartner(java.lang.String name)
          Select a transaction partner by its name.
 psman.data.TPartner[] selectTPartner(psman.data.Type type)
          Select transaction partners by their type.
 psman.data.Transaction[] selectTransaction()
          Get all transaction records.
 psman.data.Transaction[] selectTransaction(psman.data.DataField data)
          Select all transaction, in which a given data field was received or transmitted.
 psman.data.Transaction selectTransaction(java.util.Date start, java.util.Date stop, psman.data.Pseudonym pseudonym, psman.data.TPartner partner)
          Select a transaction by its ID.
 psman.data.Transaction selectTransaction(int id)
          Select a transaction by its ID.
 psman.data.Transaction[] selectTransaction(psman.data.Pseudonym data)
          Select transactions by used pseudonym.
 psman.data.Transaction[] selectTransaction(psman.data.Role data)
          Select a transaction by used role.
 psman.data.Transaction[] selectTransaction(psman.data.Role data1, psman.data.TPartner data2)
          Select a transaction by used role and transaction partner.
 psman.data.Transaction[] selectTransaction(psman.data.TPartner data)
          Select transactions by transaction partner.
 psman.data.Type[] selectType()
          Get all type records.
 psman.data.Type selectType(int id)
          Select a type by its ID.
 psman.data.Type selectType(java.lang.String name)
          Select a type by its name.
 psman.data.Type[] selectType(psman.data.TPartner data)
          Select all types bound to a certain transaction partner.
 int set(psman.data.DataField data, psman.data.Category[] bindings)
          Update a data field's categories.
 int set(psman.data.DataField data, psman.data.Certificate[] bindings)
          Update a data field's certificates.
 int set(psman.data.Property data, psman.data.Certificate[] bindings)
          set a property's certificates.
 int set(psman.data.Pseudonym data, psman.data.Property[] bindings)
          Update pseudonyms properties.
 int set(psman.data.Pseudonym data, psman.data.PseudonymType[] bindings)
          Update pseudonyms pseudonym types.
 int set(psman.data.PublicKey data, psman.data.Certificate[] bindings)
          Update a public key's certificates.
 int set(psman.data.TPartner data, psman.data.Type[] bindings)
          Update transaction partner types.
 int set(psman.data.Transaction data, psman.data.DataField[] bindings)
          Update transaction datafields.
 java.lang.Object[][] tPartnerTable()
          Get all transaction partner records.
 java.lang.Object[][] transactionTable()
          Get all transaction records.
 java.lang.Object[][] typeTable()
          Get all type records.
 int update(psman.data.AppelRuleSet data)
          Update a set of appel rules.
 int update(psman.data.Category data)
          Update a category.
 int update(psman.data.Chain data)
          Update a chain.
 int update(psman.data.Chain chain, int rank, psman.data.Rule data)
          Update a rule.
 int update(psman.data.Configuration data)
          Update a configuration.
 int update(psman.data.DataField data)
          Update a data field.
 int update(psman.data.Person data)
          Update a person.
 int update(psman.data.Property data)
          Update a property.
 int update(psman.data.Pseudonym data)
          Update a pseudonym.
 int update(psman.data.PseudonymType data)
          Update a pseudonym type.
 int update(psman.data.Purpose data)
          Update a purpose.
 int update(psman.data.Recipient data)
          Update a recipient.
 int update(psman.data.Role data)
          Update a role.
 int update(psman.data.Role data1, psman.data.TPartner data2, psman.data.PseudonymType binding)
          Updates a binding to a pseudonym type for the given context.
 int update(psman.data.TPartner data)
          Update a transaction partner.
 int update(psman.data.Transaction data)
          Update a transaction entry.
 int update(psman.data.Transaction data1, psman.data.DataField data2, psman.data.Purpose[] bindings)
          Update transaction datafield purpose.
 int update(psman.data.Transaction data1, psman.data.DataField data2, psman.data.Recipient[] bindings)
          Update transaction datafield recipients.
 int update(psman.data.Type data)
          Update a type.
 

Field Detail

MASTER

public static final int MASTER
The master database table constant. The master table once contained the database version number, but is currently not used.

See Also:
Constant Field Values

CATEGORY

public static final int CATEGORY
The category database table constant.

See Also:
Constant Field Values

CERTIFICATE

public static final int CERTIFICATE
The certificate database table constant.

See Also:
Constant Field Values

CHAIN

public static final int CHAIN
The chain database table constant.

See Also:
Constant Field Values

PERSON

public static final int PERSON
The person database table constant.

See Also:
Constant Field Values

PROPERTY

public static final int PROPERTY
The property database table constant.

See Also:
Constant Field Values

PUBLIC_KEY

public static final int PUBLIC_KEY
The public_key database table constant.

See Also:
Constant Field Values

ROLE

public static final int ROLE
The roles database table constant.

See Also:
Constant Field Values

SECRET_KEY

public static final int SECRET_KEY
The secret_key database table constant.

See Also:
Constant Field Values

TYPE

public static final int TYPE
The type database table constant.

See Also:
Constant Field Values

RULE

public static final int RULE
The rules database table constant.

See Also:
Constant Field Values

PSEUDONYM

public static final int PSEUDONYM
The pseudonym database table constant.

See Also:
Constant Field Values

T_PARTNER

public static final int T_PARTNER
The t_partner database table constant.

See Also:
Constant Field Values

DATA_FIELD

public static final int DATA_FIELD
The data_field database table constant.

See Also:
Constant Field Values

TRANSACTION

public static final int TRANSACTION
The transactions database table constant.

See Also:
Constant Field Values

CERTIFICATE_PUBLIC_KEY

public static final int CERTIFICATE_PUBLIC_KEY
The certificate_key database table constant.

See Also:
Constant Field Values

DATA_FIELD_CERTIFICATE

public static final int DATA_FIELD_CERTIFICATE
The data_field_certificate database table constant.

See Also:
Constant Field Values

PROPERTY_CERTIFICATE

public static final int PROPERTY_CERTIFICATE
The property_certificate database table constant.

See Also:
Constant Field Values

PSEUDONYM_PROPERTY

public static final int PSEUDONYM_PROPERTY
The pseudonym_property database table constant.

See Also:
Constant Field Values

PUBLIC_KEY_CERTIFICATE

public static final int PUBLIC_KEY_CERTIFICATE
The key_certificate database table constant.

See Also:
Constant Field Values

T_PARTNER_TYPE

public static final int T_PARTNER_TYPE
The t_partner_type database table constant.

See Also:
Constant Field Values

TRANSACTION_DATA_FIELD

public static final int TRANSACTION_DATA_FIELD
The transaction_data_field database table constant.

See Also:
Constant Field Values

DATA_FIELD_CATEGORY

public static final int DATA_FIELD_CATEGORY
The data_field_category database table constant.

See Also:
Constant Field Values

CONFIGURATION

public static final int CONFIGURATION
The category database table constant.

See Also:
Constant Field Values

PSEUDONYM_TYPE

public static final int PSEUDONYM_TYPE
The pseudonym_type database table constant.

See Also:
Constant Field Values

PSEUDONYM_PSEUDONYM_TYPE

public static final int PSEUDONYM_PSEUDONYM_TYPE
The pseudonym_pseudonym_type db table constant.

See Also:
Constant Field Values

ROLE_TPARTNER_PSEUDONYM_TYPE

public static final int ROLE_TPARTNER_PSEUDONYM_TYPE
The role_tpartner_pseudonym_type db table constant.

See Also:
Constant Field Values

APPELRULESET

public static final int APPELRULESET
The appelruleset database table constant.

See Also:
Constant Field Values

PURPOSE

public static final int PURPOSE
The purpose database table constant.

See Also:
Constant Field Values

RECIPIENT

public static final int RECIPIENT
The recipient database table constant.

See Also:
Constant Field Values

DISCLOSURE_PURPOSE

public static final int DISCLOSURE_PURPOSE
The purpose of data disclosure.

See Also:
Constant Field Values

DISCLOSURE_RECIPIENT

public static final int DISCLOSURE_RECIPIENT
The recipient of disclosed data.

See Also:
Constant Field Values

TABLE_NAME

public static final java.lang.String[] TABLE_NAME
The names of the database tables.

Method Detail

categoryTable

public java.lang.Object[][] categoryTable()
                                   throws java.lang.Exception
Parse the database and return all category records. This method is designed for the graphical user interface.

Returns:
The arrays of all categories in the database.
Throws:
java.lang.Exception - if a database access error occurs.

appelRuleSetTable

public java.lang.Object[][] appelRuleSetTable()
                                       throws java.lang.Exception
Parse the database and return all sets of appel rules. This method is designed for the graphical user interface.

Returns:
The arrays of all sets in the database.
Throws:
java.lang.Exception - if a database access error occurs.

purposeTable

public java.lang.Object[][] purposeTable()
                                  throws java.lang.Exception
Parse the database and return all purpose records. This method is designed for the graphical user interface.

Returns:
The arrays of all purposes in the database.
Throws:
java.lang.Exception - if a database access error occurs.

recipientTable

public java.lang.Object[][] recipientTable()
                                    throws java.lang.Exception
Parse the database and return all recipient records. This method is designed for the graphical user interface.

Returns:
The arrays of all recipients in the database.
Throws:
java.lang.Exception - if a database access error occurs.

certificateTable

public java.lang.Object[][] certificateTable()
                                      throws java.lang.Exception
Parse the database and return all certificate records. This method is designed for the graphical user interface.

Returns:
The arrays of all certificates in the database.
Throws:
java.lang.Exception - if a database access error occurs.

chainTable

public java.lang.Object[][] chainTable()
                                throws java.lang.Exception
Parse the database and return all chain records. This method is designed for the graphical user interface.

Returns:
The arrays of all chains in the database.
Throws:
java.lang.Exception - if a database access error occurs.

configurationTable

public java.lang.Object[][] configurationTable()
                                        throws java.lang.Exception
Parse the database and return all configuration records. This method is designed for the graphical user interface.

Returns:
The array of all configurations in the database.
Throws:
java.lang.Exception - if a database access error occurs.

connect

public void connect(java.util.Properties data)
             throws java.lang.Exception
Connect to the database.

Parameters:
data - the connection parameters. Take a look at the implementing classes to find out which connection parameters are required.
Throws:
java.lang.Exception - if a database access error occurs.

create

public void create()
            throws java.lang.Exception
Create all predefined database tables in correct order. The order may depend on references between several tables.

Throws:
java.lang.Exception - if a database access error occurs.
See Also:
drop()

create

public void create(int table)
            throws java.lang.Exception
Create a predefined database table.

Parameters:
table - ID of the table to be created.
Throws:
java.lang.Exception - if a database access error occurs.
See Also:
the table IDs, drop(int)

dataFieldTable

public java.lang.Object[][] dataFieldTable()
                                    throws java.lang.Exception
Parse the database and return all data field records. This method is designed for the graphical user interface.

Returns:
The arrays of all data fields in the database.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.Category data)
           throws java.lang.Exception
Delete a category.

Parameters:
data - the category to be removed from the database.
Returns:
1 if the deletion was successfull, 0 if the category could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.AppelRuleSet data)
           throws java.lang.Exception
Delete a set of appel rules.

Parameters:
data - the set to be removed from the database.
Returns:
1 if the deletion was successfull, 0 if the set could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.Purpose data)
           throws java.lang.Exception
Delete a purpose.

Parameters:
data - the purpose to be removed from the database.
Returns:
1 if the deletion was successfull, 0 if the purpose could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.Recipient data)
           throws java.lang.Exception
Delete a recipient.

Parameters:
data - the recipient to be removed from the database.
Returns:
1 if the deletion was successfull, 0 if the recipient could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.Certificate data)
           throws java.lang.Exception
Delete a certificate.

Parameters:
data - the certificate to be removed from the database.
Returns:
1 if the deletion was successfull, 0 if the certificate could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.Chain data)
           throws java.lang.Exception
Delete a chain.

Parameters:
data - the chain to be removed from the database.
Returns:
1 if the deletion was successfull, 0 if the chain could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.Configuration data)
           throws java.lang.Exception
Delete a configuration.

Parameters:
data - the configuration to be removed from the database.
Returns:
1 if the deleteion was successfull, 0 if the configuration could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.DataField data)
           throws java.lang.Exception
Delete a data field.

Parameters:
data - the data field to be removed from the database.
Returns:
1 if the deletion was successfull, 0 if the data field could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.Person data)
           throws java.lang.Exception
Delete a person.

Parameters:
data - the person to be removed from the database.
Returns:
1 if the deletion was successfull, 0 if the person could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.Property data)
           throws java.lang.Exception
Delete a property.

Parameters:
data - the property to be removed from the database.
Returns:
1 if the deletion was successfull, 0 if the property could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.Pseudonym data)
           throws java.lang.Exception
Delete a pseudonym.

Parameters:
data - the pseudonym to be removed from the database.
Returns:
1 if the deletion was successfull, 0 if the pseudonym could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.PseudonymType data)
           throws java.lang.Exception
Delete a pseudonym type.

Parameters:
data - the pseudonym type to be removed.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.PublicKey data)
           throws java.lang.Exception
Delete a public key.

Parameters:
data - the public key to be removed from the database.
Returns:
1 if the deletion was successfull, 0 if the public key could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.Role data)
           throws java.lang.Exception
Delete a role.

Parameters:
data - the role to be removed from the database.
Returns:
1 if the deletion was successfull, 0 if the role could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.Rule data)
           throws java.lang.Exception
Delete a rule.

Parameters:
data - the rule to be removed from the database.
Returns:
1 if the deletion was successfull, 0 if the rule could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.SecretKey data)
           throws java.lang.Exception
Delete a secret key.

Parameters:
data - the secret key to be removed from the database.
Returns:
1 if the deletion was successfull, 0 if the secret key could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.TPartner data)
           throws java.lang.Exception
Delete a transaction partner.

Parameters:
data - the transaction partner to be removed from the database.
Returns:
1 if the deletion was successfull, 0 if the transaction partner could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.Type data)
           throws java.lang.Exception
Delete a type.

Parameters:
data - the type to be removed from the database.
Returns:
1 if the deletion was successfull, 0 if the type could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

disconnect

public void disconnect()
                throws java.lang.Exception
Disconnect from the database.

Throws:
java.lang.Exception - if a database access error occurs.

drop

public void drop()
          throws java.lang.Exception
Drop all tables from the database in correct order. The order may depend on references between several tables.

Throws:
java.lang.Exception - if a database access error occurs.
See Also:
create()

drop

public void drop(int table)
          throws java.lang.Exception
Drop the tables from the database.

Parameters:
table - ID of the table to be dropped.
Throws:
java.lang.Exception - if a database access error occurs.
See Also:
the table IDs, create()

insert

public int insert(psman.data.Category data)
           throws java.lang.Exception
Create a category.

Parameters:
data - the category to be inserted into the database. If the category's ID is 0, an auto-incremented new ID will be assigned to it.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.AppelRuleSet data)
           throws java.lang.Exception
Create a set of appel rules.

Parameters:
data - the set to be inserted into the database. If the set's ID is 0, an auto-incremented new ID will be assigned to it.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Purpose data)
           throws java.lang.Exception
Create a purpose.

Parameters:
data - the purpose to be inserted into the database. If the purpose's ID is 0, an auto-incremented new ID will be assigned to it.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Recipient data)
           throws java.lang.Exception
Create a recipient.

Parameters:
data - the recipient to be inserted into the database. If the recipient's ID is 0, an auto-incremented new ID will be assigned to it.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Certificate data)
           throws java.lang.Exception
Create a certificate.

Parameters:
data - the certificate to be inserted into the database.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Chain data)
           throws java.lang.Exception
Create a chain.

Parameters:
data - the chain to be inserted into the database. If the chain's ID is 0, an auto-incremented new ID will be assigned to it.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Configuration data)
           throws java.lang.Exception
Create a pseudonym type.

Parameters:
data - the pseudonym type to be inserted into the database. If the pseudonym type's ID is 0, an auto-incremented new ID will be assigned to it.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.DataField data)
           throws java.lang.Exception
Create a data field.

Parameters:
data - the data field to be inserted into the database. If the data field's ID is 0, an auto-incremented new ID will be assigned to it.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.DataField data,
                  psman.data.Category[] bindings)
           throws java.lang.Exception
Insert data field categories.

Parameters:
data - the data field, categories are bound to.
bindings - the according categories.
Returns:
the count of inserted bindings, 0 or greater.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.DataField data,
                  psman.data.Certificate[] bindings)
           throws java.lang.Exception
Insert data field certificates.

Parameters:
data - the data field, certificates are bound to.
bindings - the according certificates.
Returns:
the count of inserted bindings, 0 or greater.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Person data)
           throws java.lang.Exception
Create a person entry.

Parameters:
data - the person to be inserted into the database. If the person's ID is 0, an auto-incremented new ID will be assigned to it.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Property data)
           throws java.lang.Exception
Create a property entry.

Parameters:
data - the property to be inserted. If the property's ID is 0, an auto-incremented new ID will be assigned to it.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Property data,
                  psman.data.Certificate[] bindings)
           throws java.lang.Exception
Insert property certificates.

Parameters:
data - the property, certificates are bound to.
bindings - the according certificate.
Returns:
the count of inserted bindings, 0 or greater.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Pseudonym data)
           throws java.lang.Exception
Create a pseudonym entry.

Parameters:
data - the name of the pseudonym to be inserted into the database. If the pseudonym's ID is 0, an auto-incremented new ID will be assigned to it.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Pseudonym data,
                  psman.data.Property[] bindings)
           throws java.lang.Exception
Link pseudonym to properties.

Parameters:
data - the pseudonym, properties are bound to.
bindings - the according properties.
Returns:
the count of inserted bindings, 0 or greater.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Pseudonym data,
                  psman.data.PseudonymType[] bindings)
           throws java.lang.Exception
Link pseudonym to pseudonym types.

Parameters:
data - the pseudonym, types are bound to.
bindings - the according pseudonym types.
Returns:
the count of inserted bindings, 0 or greater.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.PseudonymType data)
           throws java.lang.Exception
Create a pseudonym type entry.

Parameters:
data - the name of the pseudonym type to be inserted into the database. If the pseudonym type's ID is 0, an auto-incremented new ID will be assigned to it.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.PublicKey data)
           throws java.lang.Exception
Create a public key entry.

Parameters:
data - the public key object to be inserted into the database.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.PublicKey data,
                  psman.data.Certificate[] bindings)
           throws java.lang.Exception
Insert public key certificates.

Parameters:
data - the public key, certificates are bound to.
bindings - the according certificates.
Returns:
the count of inserted bindings, 0 or greater.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Certificate cert,
                  psman.data.PublicKey key)
           throws java.lang.Exception
Insert link between certificate and its test-key.

Parameters:
cert - the certificate, which can be verified with the testkey.
key - the testkey.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Role data)
           throws java.lang.Exception
Create a role entry.

Parameters:
data - the role object to be inserted into the database. If the role's ID is 0, an auto-incremented new ID will be assigned to it.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Rule data)
           throws java.lang.Exception
Create a rule entry.

Parameters:
data - the rule object to be inserted into the database. If the rule's rank is -1, an auto-incremented new rank will be assigned to it.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.SecretKey data)
           throws java.lang.Exception
Create a secret key entry.

Parameters:
data - the secret key object to be inserted into the database.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.TPartner data)
           throws java.lang.Exception
Create a transaction partner entry.

Parameters:
data - the transaction partner to be inserted into the database. If the transaction partner's ID is 0, an auto-incremented new ID will be assigned to it.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.TPartner data,
                  psman.data.Type[] bindings)
           throws java.lang.Exception
Insert transaction partner types.

Parameters:
data - the transaction partner, types are bound to.
bindings - the according types.
Returns:
the count of inserted bindings, 0 or greater.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Transaction data)
           throws java.lang.Exception
Create a transaction entry.

Parameters:
data - the transaction to be inserted into the database. If the transaction's ID is 0, an auto-incremented new ID will be assigned to it.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Transaction data,
                  psman.data.DataField[] bindings)
           throws java.lang.Exception
Insert transaction data fields.

Parameters:
data - the transaction, data fields are bound to.
bindings - the according data fields.
Returns:
the count of inserted bindings, 0 or greater.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Transaction data1,
                  psman.data.DataField data2,
                  psman.data.Purpose[] bindings)
           throws java.lang.Exception
Insert purpose for disclosure.

Parameters:
data1 - the transaction, where data has been disclosed.
data2 - the disclosed data.
bindings - purposes for the disclosure.
Returns:
the count of inserted bindings, 0 or greater.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Transaction data1,
                  psman.data.DataField data2,
                  psman.data.Recipient[] bindings)
           throws java.lang.Exception
Insert recipient for disclosure.

Parameters:
data1 - the transaction, where data has been disclosed.
data2 - the disclosed data.
bindings - recipient for the disclosure.
Returns:
the count of inserted bindings, 0 or greater.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Type data)
           throws java.lang.Exception
Create a type entry.

Parameters:
data - the type to be inserted into the database. If the type's ID is 0, an auto-incremented new ID will be assigned to it.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

isConnected

public boolean isConnected()
Tell the database connection status.

Returns:
true if the database is connected, false otherwise.

isReadOnly

public boolean isReadOnly()
                   throws java.lang.Exception
Return the database read-only state.

Returns:
true if database is in read-only state, false otherwise.
java.lang.Exception

personTable

public java.lang.Object[][] personTable()
                                 throws java.lang.Exception
Parse the database and return all person records. This method is designed for the graphical user interface.

Returns:
The arrays of all persons in the database.
Throws:
java.lang.Exception - if a database access error occurs.

propertyTable

public java.lang.Object[][] propertyTable()
                                   throws java.lang.Exception
Parse the database and return all properties. This method is designed for the graphical user interface.

Returns:
the records of all properties
Throws:
java.lang.Exception - if a database access error occurs.

pseudonymTable

public java.lang.Object[][] pseudonymTable()
                                    throws java.lang.Exception
Parse the database and return all pseudonym records. This method is designed for the graphical user interface.

Returns:
the array of all existing pseudonyms
Throws:
java.lang.Exception - if a database access error occurs.

pseudonymTypeTable

public java.lang.Object[][] pseudonymTypeTable()
                                        throws java.lang.Exception
Parse the database and return all pseudonym type records. This method is designed for the graphical user interface.

Returns:
the array of all existing pseudonym types
Throws:
java.lang.Exception - if a database access error occurs.

publicKeyTable

public java.lang.Object[][] publicKeyTable()
                                    throws java.lang.Exception
Parse the database and return all public keys. This method is designed for the graphical user interface.

Returns:
The arrays of all public keys in the database.
Throws:
java.lang.Exception - if a database access error occurs.

roleTable

public java.lang.Object[][] roleTable()
                               throws java.lang.Exception
Parse the database and return all roles. This method is designed for the graphical user interface.

Returns:
Alle roles in the database.
Throws:
java.lang.Exception - if a database access error occurs.

ruleTable

public java.lang.Object[][] ruleTable()
                               throws java.lang.Exception
Parse the database and return all rules. This method is designed for the graphical user interface.

Returns:
Alle rules in the database.
Throws:
java.lang.Exception - if a database access error occurs.

secretKeyTable

public java.lang.Object[][] secretKeyTable()
                                    throws java.lang.Exception
Parse the database and return all secret keys. This method is designed for the graphical user interface.

Returns:
The arrays of all secret keys in the database.
Throws:
java.lang.Exception - if a database access error occurs.

selectCategory

public psman.data.Category[] selectCategory()
                                     throws java.lang.Exception
Get all category records.

Returns:
The arrays of all categories in the database.
Throws:
java.lang.Exception - if a database access error occurs.

selectCategory

public psman.data.Category selectCategory(int id)
                                   throws java.lang.Exception
Select a category by its ID.

Parameters:
id - the database ID of the category.
Returns:
the specified category, null if it cannot be found.
Throws:
java.lang.Exception - if a database access error occurs.

selectCategory

public psman.data.Category selectCategory(java.lang.String name)
                                   throws java.lang.Exception
Select a category by its name.

Parameters:
name - the name of the category.
Returns:
the specified category, null if it cannot be found.
Throws:
java.lang.Exception - if a database access error occurs.

selectPurpose

public psman.data.Purpose[] selectPurpose()
                                   throws java.lang.Exception
Get all purpose records.

Returns:
The arrays of all purposes in the database.
Throws:
java.lang.Exception - if a database access error occurs.

selectPurpose

public psman.data.Purpose selectPurpose(int id)
                                 throws java.lang.Exception
Select a purpose by its ID.

Parameters:
id - the database ID of the purpose.
Returns:
the specified purpose, null if it cannot be found.
Throws:
java.lang.Exception - if a database access error occurs.

selectPurpose

public psman.data.Purpose selectPurpose(java.lang.String name)
                                 throws java.lang.Exception
Select a purpose by its name.

Parameters:
name - the name of the purpose.
Returns:
the specified purpose, null if it cannot be found.
Throws:
java.lang.Exception - if a database access error occurs.

selectRecipient

public psman.data.Recipient[] selectRecipient()
                                       throws java.lang.Exception
Get all recipient records.

Returns:
The arrays of all recipients in the database.
Throws:
java.lang.Exception - if a database access error occurs.

selectRecipient

public psman.data.Recipient selectRecipient(int id)
                                     throws java.lang.Exception
Select a recipient by its ID.

Parameters:
id - the database ID of the recipient.
Returns:
the specified recipient, null if it cannot be found.
Throws:
java.lang.Exception - if a database access error occurs.

selectRecipient

public psman.data.Recipient selectRecipient(java.lang.String name)
                                     throws java.lang.Exception
Select a recipient by its name.

Parameters:
name - the name of the recipient.
Returns:
the specified recipient, null if it cannot be found.
Throws:
java.lang.Exception - if a database access error occurs.

selectCertificate

public psman.data.Certificate[] selectCertificate()
                                           throws java.lang.Exception
Get all certificate records.

Returns:
The arrays of all certificates in the database.
Throws:
java.lang.Exception - if a database access error occurs.

selectCertificate

public psman.data.Certificate selectCertificate(byte[] id)
                                         throws java.lang.Exception
Select a certificate by its ID.

Parameters:
id - the database ID of the certificate
Returns:
the specified certificate
Throws:
java.lang.Exception - if a database access error occurs.

selectCertificate

public psman.data.Certificate[] selectCertificate(psman.data.DataField data)
                                           throws java.lang.Exception
Select all certificate records belonging to a certain data field.

Returns:
The arrays of the certificates.
Throws:
java.lang.Exception - if a database access error occurs.

selectCategory

public psman.data.Category[] selectCategory(psman.data.DataField data)
                                     throws java.lang.Exception
Select all category records belonging to a certain data field.

Returns:
The arrays of the categories.
Throws:
java.lang.Exception - if a database access error occurs.

selectCertificate

public psman.data.Certificate[] selectCertificate(psman.data.Property data)
                                           throws java.lang.Exception
Select all certificate records belonging to a certain property.

Returns:
The arrays of the certificates.
Throws:
java.lang.Exception - if a database access error occurs.

selectCertificate

public psman.data.Certificate[] selectCertificate(psman.data.PublicKey data,
                                                  boolean isTestKey)
                                           throws java.lang.Exception
Select all certificate records belonging to a certain public key.

Parameters:
data - the public key the certificates belong to
isTestKey - if true, search for certificates which can be checked by this key, if not, search for certificates, which sign this key
Returns:
The arrays of the certificates.
Throws:
java.lang.Exception - if a database access error occurs.

selectChain

public psman.data.Chain[] selectChain()
                               throws java.lang.Exception
Get all chain records.

Returns:
The arrays of all chains in the database.
Throws:
java.lang.Exception - if a database access error occurs.

selectChain

public psman.data.Chain selectChain(int id)
                             throws java.lang.Exception
Select a chain by its ID.

Parameters:
id - the database ID of the chain
Returns:
the specified chain
Throws:
java.lang.Exception - if a database access error occurs.

selectChain

public psman.data.Chain selectChain(java.lang.String name)
                             throws java.lang.Exception
Select a chain by its name.

Parameters:
name - the name of the chain
Returns:
the specified chain
Throws:
java.lang.Exception - if a database access error occurs.

selectConfiguration

public psman.data.Configuration[] selectConfiguration()
                                               throws java.lang.Exception
Get all Configuration records.

Returns:
The arrays of all configurations in the database
Throws:
java.lang.Exception - if a database access error occurs.

selectConfiguration

public psman.data.Configuration selectConfiguration(java.lang.String id)
                                             throws java.lang.Exception
Select Configuration by its key.

Parameters:
id - the key
Returns:
the belonging configuration
Throws:
java.lang.Exception - if a database access error occurs.

selectAppelRuleSet

public psman.data.AppelRuleSet[] selectAppelRuleSet()
                                             throws java.lang.Exception
Get all sets of appel rules.

Returns:
The arrays of all sets in the database
Throws:
java.lang.Exception - if a database access error occurs.

selectAppelRuleSet

public psman.data.AppelRuleSet selectAppelRuleSet(java.lang.String id)
                                           throws java.lang.Exception
Select a set of appel rules by its key.

Parameters:
id - the key
Returns:
the belonging set
Throws:
java.lang.Exception - if a database access error occurs.

selectDataField

public psman.data.DataField[] selectDataField()
                                       throws java.lang.Exception
Get all data field records.

Returns:
The arrays of all data fields in the database.
Throws:
java.lang.Exception - if a database access error occurs.

selectDataField

public psman.data.DataField[] selectDataField(psman.data.Certificate data)
                                       throws java.lang.Exception
Select data fields by their certificate.

Parameters:
data - the certificate
Returns:
the belonging data fields
Throws:
java.lang.Exception - if a database access error occurs.

selectDataField

public psman.data.DataField selectDataField(int id)
                                     throws java.lang.Exception
Select a data field by its ID.

Parameters:
id - the database ID of the data field
Returns:
the specified data field
Throws:
java.lang.Exception - if a database access error occurs.

selectDataField

public psman.data.DataField[] selectDataField(java.lang.String name)
                                       throws java.lang.Exception
Select a data field by its name.

Parameters:
name - the name of the data field
Returns:
the specified data field
Throws:
java.lang.Exception - if a database access error occurs.

selectDataField

public psman.data.DataField[] selectDataField(java.lang.String name,
                                              psman.data.TPartner owner)
                                       throws java.lang.Exception
Select a data field by its name and owner.

Parameters:
name - the name of the data field
owner - the owner of the data field
Returns:
the specified data field
Throws:
java.lang.Exception - if a database access error occurs.

selectDataField

public psman.data.DataField[] selectDataField(psman.data.TPartner owner)
                                       throws java.lang.Exception
Select a data field by its owner.

Parameters:
owner - the owner of the data field
Returns:
the specified data field
Throws:
java.lang.Exception - if a database access error occurs.

selectDataField

public psman.data.DataField selectDataField(psman.data.TPartner owner,
                                            java.lang.String name,
                                            java.util.Date valid_from,
                                            java.util.Date valid_until)
                                     throws java.lang.Exception
Select a data field by its properties.

Parameters:
owner - the owner of the data field
name - the name of the data field
valid_from - the valid_from of the data field
valid_until - the valid_until of the data field
Returns:
the specified data field
Throws:
java.lang.Exception - if a database access error occurs.

selectDataField

public psman.data.DataField[] selectDataField(psman.data.Transaction data)
                                       throws java.lang.Exception
Select all data fields belonging to a certain transaction.

Parameters:
data - the transaction
Returns:
the names of all data fields bound to that transaction
Throws:
java.lang.Exception - if a database access error occurs.

selectPurpose

public psman.data.Purpose[] selectPurpose(psman.data.Transaction data1,
                                          psman.data.DataField data2)
                                   throws java.lang.Exception
Select all purposes belonging to a certain data disclosure.

Parameters:
data1 - the transaction
data2 - the data field
Returns:
the names of all purposes bound to that disclosure
Throws:
java.lang.Exception - if a database access error occurs.

selectRecipient

public psman.data.Recipient[] selectRecipient(psman.data.Transaction data1,
                                              psman.data.DataField data2)
                                       throws java.lang.Exception
Select all recipients belonging to a certain data disclosure.

Parameters:
data1 - the transaction
data2 - the data field
Returns:
the names of all recipients bound to that disclosure
Throws:
java.lang.Exception - if a database access error occurs.

selectPerson

public psman.data.Person selectPerson(int id)
                               throws java.lang.Exception
Select a person by its ID.

Parameters:
id - the database ID of the person
Returns:
the specified person
Throws:
java.lang.Exception - if a database access error occurs.

selectPerson

public psman.data.Person[] selectPerson()
                                 throws java.lang.Exception
Get all person records.

Returns:
The arrays of all persons in the database.
Throws:
java.lang.Exception - if a database access error occurs.

selectPerson

public psman.data.Person selectPerson(java.lang.String name)
                               throws java.lang.Exception
Select a person by its name.

Parameters:
name - the name of the person
Returns:
the specified person
Throws:
java.lang.Exception - if a database access error occurs.

selectProperty

public psman.data.Property[] selectProperty()
                                     throws java.lang.Exception
Select all properties in the database.

Returns:
the records of all properties
Throws:
java.lang.Exception - if a database access error occurs.

selectProperty

public psman.data.Property selectProperty(int id)
                                   throws java.lang.Exception
Select a property by its ID.

Parameters:
id - the database ID of the property
Returns:
the specified property
Throws:
java.lang.Exception - if a database access error occurs.

selectProperty

public psman.data.Property[] selectProperty(psman.data.Pseudonym data)
                                     throws java.lang.Exception
Select all properties bound to a certain pseudonym.

Parameters:
data - the pseudonym
Returns:
the records of all properties bound to the pseudonym
Throws:
java.lang.Exception - if a database access error occurs.

selectProperty

public psman.data.Property selectProperty(java.lang.String name)
                                   throws java.lang.Exception
Select a property by its name.

Parameters:
name - the name of the property
Returns:
the specified property
Throws:
java.lang.Exception - if a database access error occurs.

selectPseudonym

public psman.data.Pseudonym[] selectPseudonym()
                                       throws java.lang.Exception
Select all pseudonym records in the database.

Returns:
the array of all existing pseudonyms
Throws:
java.lang.Exception - if a database access error occurs.

selectPseudonym

public psman.data.Pseudonym selectPseudonym(int id)
                                     throws java.lang.Exception
Select a pseudonym by its ID.

Parameters:
id - the database ID of the pseudonym
Returns:
the specified pseudonym
Throws:
java.lang.Exception - if a database access error occurs.

selectPseudonym

public psman.data.Pseudonym[] selectPseudonym(psman.data.Property data)
                                       throws java.lang.Exception
Select pseudonyms by a property.

Parameters:
data - the property, all pseudonyms share
Returns:
the specified pseudonyms
Throws:
java.lang.Exception - if a database access error occurs.

selectPseudonym

public psman.data.Pseudonym[] selectPseudonym(psman.data.PseudonymType data)
                                       throws java.lang.Exception
Select pseudonym by their type.

Parameters:
data - the pseudonym type, all pseudonyms share
Returns:
the specified pseudonyms
Throws:
java.lang.Exception - if a database access error occurs.

selectPseudonym

public psman.data.Pseudonym[] selectPseudonym(psman.data.Role data)
                                       throws java.lang.Exception
Select pseudonyms by role.

Parameters:
data - the role, all pseudonyms share
Returns:
the specified pseudonyms
Throws:
java.lang.Exception - if a database access error occurs.

selectPseudonym

public psman.data.Pseudonym[] selectPseudonym(psman.data.Role data1,
                                              psman.data.TPartner data2)
                                       throws java.lang.Exception
Select pseudonyms by role and transaction partner.

Parameters:
data1 - the role, all pseudonyms share
data2 - the transaction partner, all pseudonyms share
Returns:
the specified pseudonyms
Throws:
java.lang.Exception - if a database access error occurs.

selectPseudonym

public psman.data.Pseudonym selectPseudonym(psman.data.SecretKey data)
                                     throws java.lang.Exception
Select a pseudonym by its master key.

Parameters:
data - the master key of the pseudonym
Returns:
the specified pseudonym
Throws:
java.lang.Exception - if a database access error occurs.

selectPseudonym

public psman.data.Pseudonym selectPseudonym(java.lang.String name)
                                     throws java.lang.Exception
Select a pseudonym by its name. If the pseudonym name does not exist in the database, null is returned.

Parameters:
name - the name of the pseudonym
Returns:
the specified pseudonym
Throws:
java.lang.Exception - if a database access error occurs.

selectPseudonym

public psman.data.Pseudonym[] selectPseudonym(psman.data.TPartner data)
                                       throws java.lang.Exception
Select pseudonyms by a transaction partner.

Parameters:
data - the transaction partner, all pseudonyms share
Returns:
the specified pseudonyms
Throws:
java.lang.Exception - if a database access error occurs.

selectPseudonymType

public psman.data.PseudonymType[] selectPseudonymType()
                                               throws java.lang.Exception
Select all pseudonym types in the database.

Returns:
the records of all pseudonym types
Throws:
java.lang.Exception - if a database access error occurs.

selectPseudonymType

public psman.data.PseudonymType[] selectPseudonymType(psman.data.Pseudonym data)
                                               throws java.lang.Exception
Select all pseudonym types for the given Pseudonym.

Returns:
the records of all pseudonym types associated with that Pseudonym
Throws:
java.lang.Exception - if a database access error occurs.

selectPseudonymType

public psman.data.PseudonymType selectPseudonymType(int id)
                                             throws java.lang.Exception
Select a pseudonym type by its ID.

Parameters:
id - the database ID of the pseudonym type
Returns:
the specified pseudonym type
Throws:
java.lang.Exception - if a database access error occurs.

selectPseudonymType

public psman.data.PseudonymType[] selectPseudonymType(psman.data.Role data)
                                               throws java.lang.Exception
Select pseudonym types, which where used under a given role.

Parameters:
data - the role, for which pseudonym types are to be selected.
Returns:
an array containing all pseudonym types used under the given role.
Throws:
java.lang.Exception - if a database access error occurs.

selectPseudonymType

public psman.data.PseudonymType[] selectPseudonymType(psman.data.TPartner data)
                                               throws java.lang.Exception
Select pseudonym types, which where used in communication with a given partner.

Parameters:
data - the partner
Returns:
an array containing all pseudonym types used in communication with the given partner.
Throws:
java.lang.Exception - if a database error occurs.

selectPseudonymType

public psman.data.PseudonymType selectPseudonymType(psman.data.Role data1,
                                                    psman.data.TPartner data2)
                                             throws java.lang.Exception
Select pseudonym types, which where used in communication with a given partner under a given role.

Parameters:
data1 - the role
data2 - the partner
Returns:
an array containing all pseudonym types used with the given partner and role.
Throws:
java.lang.Exception - if a database error occurs.

selectPseudonymType

public psman.data.PseudonymType selectPseudonymType(java.lang.String name)
                                             throws java.lang.Exception
Select a pseudonym type by its name.

Parameters:
name - the name of the pseudonym type
Returns:
the specified pseudonym type
Throws:
java.lang.Exception - if a database access error occurs.

selectPublicKey

public psman.data.PublicKey[] selectPublicKey()
                                       throws java.lang.Exception
Get all public keys.

Returns:
The arrays of all public keys in the database.
Throws:
java.lang.Exception - if a database access error occurs.

selectPublicKey

public psman.data.PublicKey selectPublicKey(byte[] id)
                                     throws java.lang.Exception
Get a public key.

Parameters:
id - the database ID of a public key.
Returns:
The key object containing the public key.
Throws:
java.lang.Exception - if a database access error occurs.

selectPublicKey

public psman.data.PublicKey[] selectPublicKey(psman.data.Certificate data,
                                              boolean areTestKeys)
                                       throws java.lang.Exception
Get public keys belonging to a certain certificate.

Parameters:
data - the certificate of the public keys.
areTestKeys -
Returns:
The key object containing the public key.
Throws:
java.lang.Exception - if a database access error occurs.

selectRole

public psman.data.Role[] selectRole()
                             throws java.lang.Exception
Get all roles.

Returns:
Alle roles in the database.
Throws:
java.lang.Exception - if a database access error occurs.

selectRole

public psman.data.Role selectRole(int id)
                           throws java.lang.Exception
Select a role by its ID.

Parameters:
id - the database ID of the role
Returns:
the specified role
Throws:
java.lang.Exception - if a database access error occurs.

selectRole

public psman.data.Role selectRole(java.lang.String name)
                           throws java.lang.Exception
Select a role by its name.

Parameters:
name - the name of the role
Returns:
the specified role
Throws:
java.lang.Exception - if a database access error occurs.

selectRule

public psman.data.Rule[] selectRule()
                             throws java.lang.Exception
Get all rules.

Returns:
Alle rules in the database.
Throws:
java.lang.Exception - if a database access error occurs.

selectRule

public psman.data.Rule selectRule(int chain,
                                  int rank)
                           throws java.lang.Exception
Select a rule by its chain and rank.

Parameters:
chain - the chain ID of the role
rank - the rank of the role
Returns:
the specified rule
Throws:
java.lang.Exception - if a database access error occurs.

selectSecretKey

public psman.data.SecretKey[] selectSecretKey()
                                       throws java.lang.Exception
Get all secret keys.

Returns:
The arrays of all secret keys in the database.
Throws:
java.lang.Exception - if a database access error occurs.

selectSecretKey

public psman.data.SecretKey selectSecretKey(byte[] id)
                                     throws java.lang.Exception
Get a secret key.

Parameters:
id - the database ID of a secret key.
Returns:
The key object containing the secret key.
Throws:
java.lang.Exception - if a database access error occurs.

selectTPartner

public psman.data.TPartner[] selectTPartner()
                                     throws java.lang.Exception
Get all transaction partner records.

Returns:
The arrays of all transaction partners in the database.
Throws:
java.lang.Exception - if a database access error occurs.

selectTPartner

public psman.data.TPartner selectTPartner(int id)
                                   throws java.lang.Exception
Select a transaction partner by its ID.

Parameters:
id - the database ID of the transaction partner
Returns:
the specified transaction partner
Throws:
java.lang.Exception - if a database access error occurs.

selectTPartner

public psman.data.TPartner selectTPartner(psman.data.PublicKey data)
                                   throws java.lang.Exception
Select a transaction partner by its public key.

Parameters:
data - the public key of the transaction partner
Returns:
the specified transaction partner
Throws:
java.lang.Exception - if a database access error occurs.

selectTPartner

public psman.data.TPartner selectTPartner(java.lang.String name)
                                   throws java.lang.Exception
Select a transaction partner by its name.

Parameters:
name - the name of the transaction partner
Returns:
the specified transaction partner
Throws:
java.lang.Exception - if a database access error occurs.

selectTPartner

public psman.data.TPartner[] selectTPartner(psman.data.Type type)
                                     throws java.lang.Exception
Select transaction partners by their type.

Parameters:
type - the type of the transaction partners
Returns:
The array of all transaction partners with the given type
Throws:
java.lang.Exception - if a database access error occurs.

selectTransaction

public psman.data.Transaction[] selectTransaction()
                                           throws java.lang.Exception
Get all transaction records.

Returns:
The arrays of all transactions in the database.
Throws:
java.lang.Exception - if a database access error occurs.

selectTransaction

public psman.data.Transaction selectTransaction(java.util.Date start,
                                                java.util.Date stop,
                                                psman.data.Pseudonym pseudonym,
                                                psman.data.TPartner partner)
                                         throws java.lang.Exception
Select a transaction by its ID.

Returns:
the specified transaction
Throws:
java.lang.Exception - if a database access error occurs.

selectTransaction

public psman.data.Transaction selectTransaction(int id)
                                         throws java.lang.Exception
Select a transaction by its ID.

Parameters:
id - the database ID of the transaction
Returns:
the specified transaction
Throws:
java.lang.Exception - if a database access error occurs.

selectTransaction

public psman.data.Transaction[] selectTransaction(psman.data.Pseudonym data)
                                           throws java.lang.Exception
Select transactions by used pseudonym.

Parameters:
data - the pseudonym
Returns:
the specified transactions
Throws:
java.lang.Exception - if a database access error occurs.

selectTransaction

public psman.data.Transaction[] selectTransaction(psman.data.TPartner data)
                                           throws java.lang.Exception
Select transactions by transaction partner.

Parameters:
data - the transaction partner
Returns:
the specified transactions
Throws:
java.lang.Exception - if a database access error occurs.

selectTransaction

public psman.data.Transaction[] selectTransaction(psman.data.Role data)
                                           throws java.lang.Exception
Select a transaction by used role.

Parameters:
data - the role
Returns:
the specified transactions
Throws:
java.lang.Exception - if a database access error occurs.

selectTransaction

public psman.data.Transaction[] selectTransaction(psman.data.DataField data)
                                           throws java.lang.Exception
Select all transaction, in which a given data field was received or transmitted.

Parameters:
data - the data field
Returns:
the specified transactions
Throws:
java.lang.Exception - if a database access error occurs.

selectTransaction

public psman.data.Transaction[] selectTransaction(psman.data.Role data1,
                                                  psman.data.TPartner data2)
                                           throws java.lang.Exception
Select a transaction by used role and transaction partner.

Parameters:
data1 - the role
data2 - the transaction partner
Returns:
the specified transactions
Throws:
java.lang.Exception - if a database access error occurs.

selectType

public psman.data.Type[] selectType()
                             throws java.lang.Exception
Get all type records.

Returns:
The arrays of all types in the database.
Throws:
java.lang.Exception - if a database access error occurs.

selectType

public psman.data.Type selectType(int id)
                           throws java.lang.Exception
Select a type by its ID.

Parameters:
id - the database ID of the type
Returns:
the specified type
Throws:
java.lang.Exception - if a database access error occurs.

selectType

public psman.data.Type selectType(java.lang.String name)
                           throws java.lang.Exception
Select a type by its name.

Parameters:
name - the name of the type
Returns:
the specified type
Throws:
java.lang.Exception - if a database access error occurs.

selectType

public psman.data.Type[] selectType(psman.data.TPartner data)
                             throws java.lang.Exception
Select all types bound to a certain transaction partner.

Parameters:
data - the transaction partner
Returns:
the records of all types bound to the transaction partner
Throws:
java.lang.Exception - if a database access error occurs.

tPartnerTable

public java.lang.Object[][] tPartnerTable()
                                   throws java.lang.Exception
Get all transaction partner records.

Returns:
The arrays of all transaction partners in the database.
Throws:
java.lang.Exception - if a database access error occurs.

transactionTable

public java.lang.Object[][] transactionTable()
                                      throws java.lang.Exception
Get all transaction records.

Returns:
The arrays of all transactions in the database.
Throws:
java.lang.Exception - if a database access error occurs.

typeTable

public java.lang.Object[][] typeTable()
                               throws java.lang.Exception
Get all type records.

Returns:
The arrays of all types in the database.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.Category data)
           throws java.lang.Exception
Update a category.

Parameters:
data - the new category with an existing database ID.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.AppelRuleSet data)
           throws java.lang.Exception
Update a set of appel rules.

Parameters:
data - the new set with an existing database ID.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.Purpose data)
           throws java.lang.Exception
Update a purpose.

Parameters:
data - the new purpose with an existing database ID.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.Recipient data)
           throws java.lang.Exception
Update a recipient.

Parameters:
data - the new recipient with an existing database ID.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.Chain data)
           throws java.lang.Exception
Update a chain.

Parameters:
data - the new chain with an existing database ID.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.Chain chain,
                  int rank,
                  psman.data.Rule data)
           throws java.lang.Exception
Update a rule.

Parameters:
chain - the chain of the old rule which is to be replaced.
rank - the rank of the old role which is to be replaced.
data - the new role which is to be inserted.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.Configuration data)
           throws java.lang.Exception
Update a configuration.

Parameters:
data - the new configuration with the same key.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.DataField data)
           throws java.lang.Exception
Update a data field.

Parameters:
data - the new data field with an existing database ID.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

set

public int set(psman.data.DataField data,
               psman.data.Certificate[] bindings)
        throws java.lang.Exception
Update a data field's certificates.

Parameters:
data - the allready registered datafield.
bindings - the related certificates.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

set

public int set(psman.data.DataField data,
               psman.data.Category[] bindings)
        throws java.lang.Exception
Update a data field's categories.

Parameters:
data - the allready registered datafield.
bindings - the related categories.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.Person data)
           throws java.lang.Exception
Update a person.

Parameters:
data - the new person having an existing ID.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.Property data)
           throws java.lang.Exception
Update a property.

Parameters:
data - the new property with an existing database ID.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

set

public int set(psman.data.Property data,
               psman.data.Certificate[] bindings)
        throws java.lang.Exception
set a property's certificates.

Parameters:
data - the allready registered property.
bindings - the related certificates.
Returns:
The row count of the SET statement 2 in case of updating, 1 in case of deleteing or inserting .
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.Pseudonym data)
           throws java.lang.Exception
Update a pseudonym.

Parameters:
data - the new pseudonym with an existing database ID.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

set

public int set(psman.data.Pseudonym data,
               psman.data.Property[] bindings)
        throws java.lang.Exception
Update pseudonyms properties.

Parameters:
data - the pseudonym, properties are updated to
bindings - the properties which are actually valid
Returns:
The row count for the INSERT statement, 0 or greater.
Throws:
java.lang.Exception - if a database access error occurs.

set

public int set(psman.data.Pseudonym data,
               psman.data.PseudonymType[] bindings)
        throws java.lang.Exception
Update pseudonyms pseudonym types.

Parameters:
data - the pseudonym, pseudonym types are updated to
bindings - the pseudonym types which are actually valid
Returns:
The row count for the INSERT statement, 0 or greater.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.PseudonymType data)
           throws java.lang.Exception
Update a pseudonym type.

Parameters:
data - the new pseudonym type with an existing database ID.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

set

public int set(psman.data.PublicKey data,
               psman.data.Certificate[] bindings)
        throws java.lang.Exception
Update a public key's certificates.

Parameters:
data - the allready registered public key.
bindings - the related certificates.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.Role data)
           throws java.lang.Exception
Update a role.

Parameters:
data - the new role with an existing database ID.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.TPartner data)
           throws java.lang.Exception
Update a transaction partner.

Parameters:
data - the new transaction partner having an existing ID.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

set

public int set(psman.data.TPartner data,
               psman.data.Type[] bindings)
        throws java.lang.Exception
Update transaction partner types.

Parameters:
data - the transaction partner, types are updated to
bindings - the types which are actually valid
Returns:
The row count for the INSERT statement, 0 or greater.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.Transaction data)
           throws java.lang.Exception
Update a transaction entry.

Parameters:
data - the transaction to be updated.
Returns:
The row count for the INSERT statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

set

public int set(psman.data.Transaction data,
               psman.data.DataField[] bindings)
        throws java.lang.Exception
Update transaction datafields.

Parameters:
data - the transaction partner
bindings - all the datafields
Returns:
The row count for the INSERT statement, 0 or greater.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.Transaction data1,
                  psman.data.DataField data2,
                  psman.data.Purpose[] bindings)
           throws java.lang.Exception
Update transaction datafield purpose.

Parameters:
data1 - the transaction partner
data2 - the datafield
bindings - all puposes
Returns:
The row count for the INSERT statement, 0 or greater.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.Transaction data1,
                  psman.data.DataField data2,
                  psman.data.Recipient[] bindings)
           throws java.lang.Exception
Update transaction datafield recipients.

Parameters:
data1 - the transaction partner qparam data2 the datafield
bindings - all the recipients
Returns:
The row count for the INSERT statement, 0 or greater.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.Type data)
           throws java.lang.Exception
Update a type.

Parameters:
data - the new type having an existing ID.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Role data1,
                  psman.data.TPartner data2,
                  psman.data.PseudonymType binding)
           throws java.lang.Exception
Inserts a binding to a pseudonym type for the given context.

Parameters:
data1 - role of the user.
data2 - current transaction partner, maybe null.
binding - pseudonymtype to use.
Returns:
1 on success, 0 if database has not been changed.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.Role data1,
                  psman.data.TPartner data2,
                  psman.data.PseudonymType binding)
           throws java.lang.Exception
Updates a binding to a pseudonym type for the given context.

Parameters:
data1 - role of the user.
data2 - current transaction partner, maybe null.
binding - pseudonymtype to use.
Returns:
1 on success, 0 if database has not been changed.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.Role data1,
                  psman.data.TPartner data2)
           throws java.lang.Exception
Removes all bindings to a pseudonym type for the given context.

Parameters:
data1 - role of the user.
data2 - current transaction partner, maybe null.
Returns:
1 on success, 0 if database has not been changed.
Throws:
java.lang.Exception - if a database access error occurs.

selectCertificate

public psman.data.Certificate[] selectCertificate(psman.data.PublicKey signedKey,
                                                  psman.data.PublicKey[] signKeys)
                                           throws java.lang.Exception
Selects certificates which certify the signedKey with one of the signKeys.

Parameters:
signedKey - the key in question.
signKeys - valid keys for signature.
Returns:
array of certificate signing signedKey and signed by key from signKeys
Throws:
java.lang.Exception - if a database access error occurs.


Copyright © 2003 DRIM Team. All Rights Reserved.