|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The generic driver interface.
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 |
public static final int MASTER
public static final int CATEGORY
public static final int CERTIFICATE
public static final int CHAIN
public static final int PERSON
public static final int PROPERTY
public static final int PUBLIC_KEY
public static final int ROLE
public static final int SECRET_KEY
public static final int TYPE
public static final int RULE
public static final int PSEUDONYM
public static final int T_PARTNER
public static final int DATA_FIELD
public static final int TRANSACTION
public static final int CERTIFICATE_PUBLIC_KEY
public static final int DATA_FIELD_CERTIFICATE
public static final int PROPERTY_CERTIFICATE
public static final int PSEUDONYM_PROPERTY
public static final int PUBLIC_KEY_CERTIFICATE
public static final int T_PARTNER_TYPE
public static final int TRANSACTION_DATA_FIELD
public static final int DATA_FIELD_CATEGORY
public static final int CONFIGURATION
public static final int PSEUDONYM_TYPE
public static final int PSEUDONYM_PSEUDONYM_TYPE
public static final int ROLE_TPARTNER_PSEUDONYM_TYPE
public static final int APPELRULESET
public static final int PURPOSE
public static final int RECIPIENT
public static final int DISCLOSURE_PURPOSE
public static final int DISCLOSURE_RECIPIENT
public static final java.lang.String[] TABLE_NAME
Method Detail |
public java.lang.Object[][] categoryTable() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public java.lang.Object[][] appelRuleSetTable() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public java.lang.Object[][] purposeTable() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public java.lang.Object[][] recipientTable() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public java.lang.Object[][] certificateTable() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public java.lang.Object[][] chainTable() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public java.lang.Object[][] configurationTable() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public void connect(java.util.Properties data) throws java.lang.Exception
data
- the connection parameters.
Take a look at the implementing classes to find out
which connection parameters are required.
java.lang.Exception
- if a database access error occurs.public void create() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.drop()
public void create(int table) throws java.lang.Exception
table
- ID of the table to be created.
java.lang.Exception
- if a database access error occurs.drop(int)
public java.lang.Object[][] dataFieldTable() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public int delete(psman.data.Category data) throws java.lang.Exception
data
- the category to be removed from the database.
1
if the deletion was successfull,
0
if the category could not be found.
java.lang.Exception
- if a database access error occurs.public int delete(psman.data.AppelRuleSet data) throws java.lang.Exception
data
- the set to be removed from the database.
1
if the deletion was successfull,
0
if the set could not be found.
java.lang.Exception
- if a database access error occurs.public int delete(psman.data.Purpose data) throws java.lang.Exception
data
- the purpose to be removed from the database.
1
if the deletion was successfull,
0
if the purpose could not be found.
java.lang.Exception
- if a database access error occurs.public int delete(psman.data.Recipient data) throws java.lang.Exception
data
- the recipient to be removed from the database.
1
if the deletion was successfull,
0
if the recipient could not be found.
java.lang.Exception
- if a database access error occurs.public int delete(psman.data.Certificate data) throws java.lang.Exception
data
- the certificate to be removed from the database.
1
if the deletion was successfull,
0
if the certificate could not be found.
java.lang.Exception
- if a database access error occurs.public int delete(psman.data.Chain data) throws java.lang.Exception
data
- the chain to be removed from the database.
1
if the deletion was successfull,
0
if the chain could not be found.
java.lang.Exception
- if a database access error occurs.public int delete(psman.data.Configuration data) throws java.lang.Exception
data
- the configuration to be removed from the database.
1
if the deleteion was successfull,
0
if the configuration could not be found.
java.lang.Exception
- if a database access error occurs.public int delete(psman.data.DataField data) throws java.lang.Exception
data
- the data field to be removed from the database.
1
if the deletion was successfull,
0
if the data field could not be found.
java.lang.Exception
- if a database access error occurs.public int delete(psman.data.Person data) throws java.lang.Exception
data
- the person to be removed from the database.
1
if the deletion was successfull,
0
if the person could not be found.
java.lang.Exception
- if a database access error occurs.public int delete(psman.data.Property data) throws java.lang.Exception
data
- the property to be removed from the database.
1
if the deletion was successfull,
0
if the property could not be found.
java.lang.Exception
- if a database access error occurs.public int delete(psman.data.Pseudonym data) throws java.lang.Exception
data
- the pseudonym to be removed from the database.
1
if the deletion was successfull,
0
if the pseudonym could not be found.
java.lang.Exception
- if a database access error occurs.public int delete(psman.data.PseudonymType data) throws java.lang.Exception
data
- the pseudonym type to be removed.
java.lang.Exception
- if a database access error occurs.public int delete(psman.data.PublicKey data) throws java.lang.Exception
data
- the public key to be removed from the database.
1
if the deletion was successfull,
0
if the public key could not be found.
java.lang.Exception
- if a database access error occurs.public int delete(psman.data.Role data) throws java.lang.Exception
data
- the role to be removed from the database.
1
if the deletion was successfull,
0
if the role could not be found.
java.lang.Exception
- if a database access error occurs.public int delete(psman.data.Rule data) throws java.lang.Exception
data
- the rule to be removed from the database.
1
if the deletion was successfull,
0
if the rule could not be found.
java.lang.Exception
- if a database access error occurs.public int delete(psman.data.SecretKey data) throws java.lang.Exception
data
- the secret key to be removed from the database.
1
if the deletion was successfull,
0
if the secret key could not be found.
java.lang.Exception
- if a database access error occurs.public int delete(psman.data.TPartner data) throws java.lang.Exception
data
- the transaction partner to be removed from the database.
1
if the deletion was successfull,
0
if the transaction partner could not be found.
java.lang.Exception
- if a database access error occurs.public int delete(psman.data.Type data) throws java.lang.Exception
data
- the type to be removed from the database.
1
if the deletion was successfull,
0
if the type could not be found.
java.lang.Exception
- if a database access error occurs.public void disconnect() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public void drop() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.create()
public void drop(int table) throws java.lang.Exception
table
- ID of the table to be dropped.
java.lang.Exception
- if a database access error occurs.create()
public int insert(psman.data.Category data) throws java.lang.Exception
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.
1
if the insertion was successfull,
0
if not.
java.lang.Exception
- if a database access error occurs.public int insert(psman.data.AppelRuleSet data) throws java.lang.Exception
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.
1
if the insertion was successfull,
0
if not.
java.lang.Exception
- if a database access error occurs.public int insert(psman.data.Purpose data) throws java.lang.Exception
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.
1
if the insertion was successfull,
0
if not.
java.lang.Exception
- if a database access error occurs.public int insert(psman.data.Recipient data) throws java.lang.Exception
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.
1
if the insertion was successfull,
0
if not.
java.lang.Exception
- if a database access error occurs.public int insert(psman.data.Certificate data) throws java.lang.Exception
data
- the certificate to be inserted into the database.
1
if the insertion was successfull,
0
if not.
java.lang.Exception
- if a database access error occurs.public int insert(psman.data.Chain data) throws java.lang.Exception
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.
1
if the insertion was successfull,
0
if not.
java.lang.Exception
- if a database access error occurs.public int insert(psman.data.Configuration data) throws java.lang.Exception
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.
1
if the insertion was successfull,
0
if not.
java.lang.Exception
- if a database access error occurs.public int insert(psman.data.DataField data) throws java.lang.Exception
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.
1
if the insertion was successfull,
0
if not.
java.lang.Exception
- if a database access error occurs.public int insert(psman.data.DataField data, psman.data.Category[] bindings) throws java.lang.Exception
data
- the data field, categories are bound to.bindings
- the according categories.
0
or greater.
java.lang.Exception
- if a database access error occurs.public int insert(psman.data.DataField data, psman.data.Certificate[] bindings) throws java.lang.Exception
data
- the data field, certificates are bound to.bindings
- the according certificates.
0
or greater.
java.lang.Exception
- if a database access error occurs.public int insert(psman.data.Person data) throws java.lang.Exception
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.
1
if the insertion was successfull,
0
if not.
java.lang.Exception
- if a database access error occurs.public int insert(psman.data.Property data) throws java.lang.Exception
data
- the property to be inserted.
If the property's ID is 0, an auto-incremented new ID will be assigned to it.
1
if the insertion was successfull,
0
if not.
java.lang.Exception
- if a database access error occurs.public int insert(psman.data.Property data, psman.data.Certificate[] bindings) throws java.lang.Exception
data
- the property, certificates are bound to.bindings
- the according certificate.
0
or greater.
java.lang.Exception
- if a database access error occurs.public int insert(psman.data.Pseudonym data) throws java.lang.Exception
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.
1
if the insertion was successfull,
0
if not.
java.lang.Exception
- if a database access error occurs.public int insert(psman.data.Pseudonym data, psman.data.Property[] bindings) throws java.lang.Exception
data
- the pseudonym, properties are bound to.bindings
- the according properties.
0
or greater.
java.lang.Exception
- if a database access error occurs.public int insert(psman.data.Pseudonym data, psman.data.PseudonymType[] bindings) throws java.lang.Exception
data
- the pseudonym, types are bound to.bindings
- the according pseudonym types.
0
or greater.
java.lang.Exception
- if a database access error occurs.public int insert(psman.data.PseudonymType data) throws java.lang.Exception
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.
1
if the insertion was successfull,
0
if not.
java.lang.Exception
- if a database access error occurs.public int insert(psman.data.PublicKey data) throws java.lang.Exception
data
- the public key object to be inserted into the database.
1
if the insertion was successfull,
0
if not.
java.lang.Exception
- if a database access error occurs.public int insert(psman.data.PublicKey data, psman.data.Certificate[] bindings) throws java.lang.Exception
data
- the public key, certificates are bound to.bindings
- the according certificates.
0
or greater.
java.lang.Exception
- if a database access error occurs.public int insert(psman.data.Certificate cert, psman.data.PublicKey key) throws java.lang.Exception
cert
- the certificate, which can be verified with the testkey.key
- the testkey.
1
if the insertion was successfull,
0
if not.
java.lang.Exception
- if a database access error occurs.public int insert(psman.data.Role data) throws java.lang.Exception
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.
1
if the insertion was successfull,
0
if not.
java.lang.Exception
- if a database access error occurs.public int insert(psman.data.Rule data) throws java.lang.Exception
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.
1
if the insertion was successfull,
0
if not.
java.lang.Exception
- if a database access error occurs.public int insert(psman.data.SecretKey data) throws java.lang.Exception
data
- the secret key object to be inserted into the database.
1
if the insertion was successfull,
0
if not.
java.lang.Exception
- if a database access error occurs.public int insert(psman.data.TPartner data) throws java.lang.Exception
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.
1
if the insertion was successfull,
0
if not.
java.lang.Exception
- if a database access error occurs.public int insert(psman.data.TPartner data, psman.data.Type[] bindings) throws java.lang.Exception
data
- the transaction partner, types are bound to.bindings
- the according types.
0
or greater.
java.lang.Exception
- if a database access error occurs.public int insert(psman.data.Transaction data) throws java.lang.Exception
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.
1
if the insertion was successfull,
0
if not.
java.lang.Exception
- if a database access error occurs.public int insert(psman.data.Transaction data, psman.data.DataField[] bindings) throws java.lang.Exception
data
- the transaction, data fields are bound to.bindings
- the according data fields.
0
or greater.
java.lang.Exception
- if a database access error occurs.public int insert(psman.data.Transaction data1, psman.data.DataField data2, psman.data.Purpose[] bindings) throws java.lang.Exception
data1
- the transaction, where data has been disclosed.data2
- the disclosed data.bindings
- purposes for the disclosure.
0
or greater.
java.lang.Exception
- if a database access error occurs.public int insert(psman.data.Transaction data1, psman.data.DataField data2, psman.data.Recipient[] bindings) throws java.lang.Exception
data1
- the transaction, where data has been disclosed.data2
- the disclosed data.bindings
- recipient for the disclosure.
0
or greater.
java.lang.Exception
- if a database access error occurs.public int insert(psman.data.Type data) throws java.lang.Exception
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.
1
if the insertion was successfull,
0
if not.
java.lang.Exception
- if a database access error occurs.public boolean isConnected()
true
if the database is connected,
false
otherwise.public boolean isReadOnly() throws java.lang.Exception
true
if database is in read-only state,
false
otherwise.
java.lang.Exception
public java.lang.Object[][] personTable() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public java.lang.Object[][] propertyTable() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public java.lang.Object[][] pseudonymTable() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public java.lang.Object[][] pseudonymTypeTable() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public java.lang.Object[][] publicKeyTable() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public java.lang.Object[][] roleTable() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public java.lang.Object[][] ruleTable() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public java.lang.Object[][] secretKeyTable() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public psman.data.Category[] selectCategory() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public psman.data.Category selectCategory(int id) throws java.lang.Exception
id
- the database ID of the category.
null
if it cannot be found.
java.lang.Exception
- if a database access error occurs.public psman.data.Category selectCategory(java.lang.String name) throws java.lang.Exception
name
- the name of the category.
null
if it cannot be found.
java.lang.Exception
- if a database access error occurs.public psman.data.Purpose[] selectPurpose() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public psman.data.Purpose selectPurpose(int id) throws java.lang.Exception
id
- the database ID of the purpose.
null
if it cannot be found.
java.lang.Exception
- if a database access error occurs.public psman.data.Purpose selectPurpose(java.lang.String name) throws java.lang.Exception
name
- the name of the purpose.
null
if it cannot be found.
java.lang.Exception
- if a database access error occurs.public psman.data.Recipient[] selectRecipient() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public psman.data.Recipient selectRecipient(int id) throws java.lang.Exception
id
- the database ID of the recipient.
null
if it cannot be found.
java.lang.Exception
- if a database access error occurs.public psman.data.Recipient selectRecipient(java.lang.String name) throws java.lang.Exception
name
- the name of the recipient.
null
if it cannot be found.
java.lang.Exception
- if a database access error occurs.public psman.data.Certificate[] selectCertificate() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public psman.data.Certificate selectCertificate(byte[] id) throws java.lang.Exception
id
- the database ID of the certificate
java.lang.Exception
- if a database access error occurs.public psman.data.Certificate[] selectCertificate(psman.data.DataField data) throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public psman.data.Category[] selectCategory(psman.data.DataField data) throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public psman.data.Certificate[] selectCertificate(psman.data.Property data) throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public psman.data.Certificate[] selectCertificate(psman.data.PublicKey data, boolean isTestKey) throws java.lang.Exception
data
- the public key the certificates belong toisTestKey
- if true, search for certificates which can be checked by this key,
if not, search for certificates, which sign this key
java.lang.Exception
- if a database access error occurs.public psman.data.Chain[] selectChain() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public psman.data.Chain selectChain(int id) throws java.lang.Exception
id
- the database ID of the chain
java.lang.Exception
- if a database access error occurs.public psman.data.Chain selectChain(java.lang.String name) throws java.lang.Exception
name
- the name of the chain
java.lang.Exception
- if a database access error occurs.public psman.data.Configuration[] selectConfiguration() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public psman.data.Configuration selectConfiguration(java.lang.String id) throws java.lang.Exception
id
- the key
java.lang.Exception
- if a database access error occurs.public psman.data.AppelRuleSet[] selectAppelRuleSet() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public psman.data.AppelRuleSet selectAppelRuleSet(java.lang.String id) throws java.lang.Exception
id
- the key
java.lang.Exception
- if a database access error occurs.public psman.data.DataField[] selectDataField() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public psman.data.DataField[] selectDataField(psman.data.Certificate data) throws java.lang.Exception
data
- the certificate
java.lang.Exception
- if a database access error occurs.public psman.data.DataField selectDataField(int id) throws java.lang.Exception
id
- the database ID of the data field
java.lang.Exception
- if a database access error occurs.public psman.data.DataField[] selectDataField(java.lang.String name) throws java.lang.Exception
name
- the name of the data field
java.lang.Exception
- if a database access error occurs.public psman.data.DataField[] selectDataField(java.lang.String name, psman.data.TPartner owner) throws java.lang.Exception
name
- the name of the data fieldowner
- the owner of the data field
java.lang.Exception
- if a database access error occurs.public psman.data.DataField[] selectDataField(psman.data.TPartner owner) throws java.lang.Exception
owner
- the owner of the data field
java.lang.Exception
- if a database access error occurs.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
owner
- the owner of the data fieldname
- the name of the data fieldvalid_from
- the valid_from of the data fieldvalid_until
- the valid_until of the data field
java.lang.Exception
- if a database access error occurs.public psman.data.DataField[] selectDataField(psman.data.Transaction data) throws java.lang.Exception
data
- the transaction
java.lang.Exception
- if a database access error occurs.public psman.data.Purpose[] selectPurpose(psman.data.Transaction data1, psman.data.DataField data2) throws java.lang.Exception
data1
- the transactiondata2
- the data field
java.lang.Exception
- if a database access error occurs.public psman.data.Recipient[] selectRecipient(psman.data.Transaction data1, psman.data.DataField data2) throws java.lang.Exception
data1
- the transactiondata2
- the data field
java.lang.Exception
- if a database access error occurs.public psman.data.Person selectPerson(int id) throws java.lang.Exception
id
- the database ID of the person
java.lang.Exception
- if a database access error occurs.public psman.data.Person[] selectPerson() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public psman.data.Person selectPerson(java.lang.String name) throws java.lang.Exception
name
- the name of the person
java.lang.Exception
- if a database access error occurs.public psman.data.Property[] selectProperty() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public psman.data.Property selectProperty(int id) throws java.lang.Exception
id
- the database ID of the property
java.lang.Exception
- if a database access error occurs.public psman.data.Property[] selectProperty(psman.data.Pseudonym data) throws java.lang.Exception
data
- the pseudonym
java.lang.Exception
- if a database access error occurs.public psman.data.Property selectProperty(java.lang.String name) throws java.lang.Exception
name
- the name of the property
java.lang.Exception
- if a database access error occurs.public psman.data.Pseudonym[] selectPseudonym() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public psman.data.Pseudonym selectPseudonym(int id) throws java.lang.Exception
id
- the database ID of the pseudonym
java.lang.Exception
- if a database access error occurs.public psman.data.Pseudonym[] selectPseudonym(psman.data.Property data) throws java.lang.Exception
data
- the property, all pseudonyms share
java.lang.Exception
- if a database access error occurs.public psman.data.Pseudonym[] selectPseudonym(psman.data.PseudonymType data) throws java.lang.Exception
data
- the pseudonym type, all pseudonyms share
java.lang.Exception
- if a database access error occurs.public psman.data.Pseudonym[] selectPseudonym(psman.data.Role data) throws java.lang.Exception
data
- the role, all pseudonyms share
java.lang.Exception
- if a database access error occurs.public psman.data.Pseudonym[] selectPseudonym(psman.data.Role data1, psman.data.TPartner data2) throws java.lang.Exception
data1
- the role, all pseudonyms sharedata2
- the transaction partner, all pseudonyms share
java.lang.Exception
- if a database access error occurs.public psman.data.Pseudonym selectPseudonym(psman.data.SecretKey data) throws java.lang.Exception
data
- the master key of the pseudonym
java.lang.Exception
- if a database access error occurs.public psman.data.Pseudonym selectPseudonym(java.lang.String name) throws java.lang.Exception
null
is returned.
name
- the name of the pseudonym
java.lang.Exception
- if a database access error occurs.public psman.data.Pseudonym[] selectPseudonym(psman.data.TPartner data) throws java.lang.Exception
data
- the transaction partner, all pseudonyms share
java.lang.Exception
- if a database access error occurs.public psman.data.PseudonymType[] selectPseudonymType() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public psman.data.PseudonymType[] selectPseudonymType(psman.data.Pseudonym data) throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public psman.data.PseudonymType selectPseudonymType(int id) throws java.lang.Exception
id
- the database ID of the pseudonym type
java.lang.Exception
- if a database access error occurs.public psman.data.PseudonymType[] selectPseudonymType(psman.data.Role data) throws java.lang.Exception
data
- the role, for which pseudonym types are to be selected.
java.lang.Exception
- if a database access error occurs.public psman.data.PseudonymType[] selectPseudonymType(psman.data.TPartner data) throws java.lang.Exception
data
- the partner
java.lang.Exception
- if a database error occurs.public psman.data.PseudonymType selectPseudonymType(psman.data.Role data1, psman.data.TPartner data2) throws java.lang.Exception
data1
- the roledata2
- the partner
java.lang.Exception
- if a database error occurs.public psman.data.PseudonymType selectPseudonymType(java.lang.String name) throws java.lang.Exception
name
- the name of the pseudonym type
java.lang.Exception
- if a database access error occurs.public psman.data.PublicKey[] selectPublicKey() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public psman.data.PublicKey selectPublicKey(byte[] id) throws java.lang.Exception
id
- the database ID of a public key.
java.lang.Exception
- if a database access error occurs.public psman.data.PublicKey[] selectPublicKey(psman.data.Certificate data, boolean areTestKeys) throws java.lang.Exception
data
- the certificate of the public keys.areTestKeys
-
java.lang.Exception
- if a database access error occurs.public psman.data.Role[] selectRole() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public psman.data.Role selectRole(int id) throws java.lang.Exception
id
- the database ID of the role
java.lang.Exception
- if a database access error occurs.public psman.data.Role selectRole(java.lang.String name) throws java.lang.Exception
name
- the name of the role
java.lang.Exception
- if a database access error occurs.public psman.data.Rule[] selectRule() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public psman.data.Rule selectRule(int chain, int rank) throws java.lang.Exception
chain
- the chain ID of the rolerank
- the rank of the role
java.lang.Exception
- if a database access error occurs.public psman.data.SecretKey[] selectSecretKey() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public psman.data.SecretKey selectSecretKey(byte[] id) throws java.lang.Exception
id
- the database ID of a secret key.
java.lang.Exception
- if a database access error occurs.public psman.data.TPartner[] selectTPartner() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public psman.data.TPartner selectTPartner(int id) throws java.lang.Exception
id
- the database ID of the transaction partner
java.lang.Exception
- if a database access error occurs.public psman.data.TPartner selectTPartner(psman.data.PublicKey data) throws java.lang.Exception
data
- the public key of the transaction partner
java.lang.Exception
- if a database access error occurs.public psman.data.TPartner selectTPartner(java.lang.String name) throws java.lang.Exception
name
- the name of the transaction partner
java.lang.Exception
- if a database access error occurs.public psman.data.TPartner[] selectTPartner(psman.data.Type type) throws java.lang.Exception
type
- the type of the transaction partners
java.lang.Exception
- if a database access error occurs.public psman.data.Transaction[] selectTransaction() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.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
java.lang.Exception
- if a database access error occurs.public psman.data.Transaction selectTransaction(int id) throws java.lang.Exception
id
- the database ID of the transaction
java.lang.Exception
- if a database access error occurs.public psman.data.Transaction[] selectTransaction(psman.data.Pseudonym data) throws java.lang.Exception
data
- the pseudonym
java.lang.Exception
- if a database access error occurs.public psman.data.Transaction[] selectTransaction(psman.data.TPartner data) throws java.lang.Exception
data
- the transaction partner
java.lang.Exception
- if a database access error occurs.public psman.data.Transaction[] selectTransaction(psman.data.Role data) throws java.lang.Exception
data
- the role
java.lang.Exception
- if a database access error occurs.public psman.data.Transaction[] selectTransaction(psman.data.DataField data) throws java.lang.Exception
data
- the data field
java.lang.Exception
- if a database access error occurs.public psman.data.Transaction[] selectTransaction(psman.data.Role data1, psman.data.TPartner data2) throws java.lang.Exception
data1
- the roledata2
- the transaction partner
java.lang.Exception
- if a database access error occurs.public psman.data.Type[] selectType() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public psman.data.Type selectType(int id) throws java.lang.Exception
id
- the database ID of the type
java.lang.Exception
- if a database access error occurs.public psman.data.Type selectType(java.lang.String name) throws java.lang.Exception
name
- the name of the type
java.lang.Exception
- if a database access error occurs.public psman.data.Type[] selectType(psman.data.TPartner data) throws java.lang.Exception
data
- the transaction partner
java.lang.Exception
- if a database access error occurs.public java.lang.Object[][] tPartnerTable() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public java.lang.Object[][] transactionTable() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public java.lang.Object[][] typeTable() throws java.lang.Exception
java.lang.Exception
- if a database access error occurs.public int update(psman.data.Category data) throws java.lang.Exception
data
- the new category with an existing database ID.
java.lang.Exception
- if a database access error occurs.public int update(psman.data.AppelRuleSet data) throws java.lang.Exception
data
- the new set with an existing database ID.
java.lang.Exception
- if a database access error occurs.public int update(psman.data.Purpose data) throws java.lang.Exception
data
- the new purpose with an existing database ID.
java.lang.Exception
- if a database access error occurs.public int update(psman.data.Recipient data) throws java.lang.Exception
data
- the new recipient with an existing database ID.
java.lang.Exception
- if a database access error occurs.public int update(psman.data.Chain data) throws java.lang.Exception
data
- the new chain with an existing database ID.
java.lang.Exception
- if a database access error occurs.public int update(psman.data.Chain chain, int rank, psman.data.Rule data) throws java.lang.Exception
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.
java.lang.Exception
- if a database access error occurs.public int update(psman.data.Configuration data) throws java.lang.Exception
data
- the new configuration with the same key.
java.lang.Exception
- if a database access error occurs.public int update(psman.data.DataField data) throws java.lang.Exception
data
- the new data field with an existing database ID.
java.lang.Exception
- if a database access error occurs.public int set(psman.data.DataField data, psman.data.Certificate[] bindings) throws java.lang.Exception
data
- the allready registered datafield.bindings
- the related certificates.
java.lang.Exception
- if a database access error occurs.public int set(psman.data.DataField data, psman.data.Category[] bindings) throws java.lang.Exception
data
- the allready registered datafield.bindings
- the related categories.
java.lang.Exception
- if a database access error occurs.public int update(psman.data.Person data) throws java.lang.Exception
data
- the new person having an existing ID.
java.lang.Exception
- if a database access error occurs.public int update(psman.data.Property data) throws java.lang.Exception
data
- the new property with an existing database ID.
java.lang.Exception
- if a database access error occurs.public int set(psman.data.Property data, psman.data.Certificate[] bindings) throws java.lang.Exception
data
- the allready registered property.bindings
- the related certificates.
java.lang.Exception
- if a database access error occurs.public int update(psman.data.Pseudonym data) throws java.lang.Exception
data
- the new pseudonym with an existing database ID.
java.lang.Exception
- if a database access error occurs.public int set(psman.data.Pseudonym data, psman.data.Property[] bindings) throws java.lang.Exception
data
- the pseudonym, properties are updated tobindings
- the properties which are actually valid
java.lang.Exception
- if a database access error occurs.public int set(psman.data.Pseudonym data, psman.data.PseudonymType[] bindings) throws java.lang.Exception
data
- the pseudonym, pseudonym types are updated tobindings
- the pseudonym types which are actually valid
java.lang.Exception
- if a database access error occurs.public int update(psman.data.PseudonymType data) throws java.lang.Exception
data
- the new pseudonym type with an existing database ID.
java.lang.Exception
- if a database access error occurs.public int set(psman.data.PublicKey data, psman.data.Certificate[] bindings) throws java.lang.Exception
data
- the allready registered public key.bindings
- the related certificates.
java.lang.Exception
- if a database access error occurs.public int update(psman.data.Role data) throws java.lang.Exception
data
- the new role with an existing database ID.
java.lang.Exception
- if a database access error occurs.public int update(psman.data.TPartner data) throws java.lang.Exception
data
- the new transaction partner having an existing ID.
java.lang.Exception
- if a database access error occurs.public int set(psman.data.TPartner data, psman.data.Type[] bindings) throws java.lang.Exception
data
- the transaction partner, types are updated tobindings
- the types which are actually valid
java.lang.Exception
- if a database access error occurs.public int update(psman.data.Transaction data) throws java.lang.Exception
data
- the transaction to be updated.
java.lang.Exception
- if a database access error occurs.public int set(psman.data.Transaction data, psman.data.DataField[] bindings) throws java.lang.Exception
data
- the transaction partnerbindings
- all the datafields
java.lang.Exception
- if a database access error occurs.public int update(psman.data.Transaction data1, psman.data.DataField data2, psman.data.Purpose[] bindings) throws java.lang.Exception
data1
- the transaction partnerdata2
- the datafieldbindings
- all puposes
java.lang.Exception
- if a database access error occurs.public int update(psman.data.Transaction data1, psman.data.DataField data2, psman.data.Recipient[] bindings) throws java.lang.Exception
data1
- the transaction partner
qparam data2 the datafieldbindings
- all the recipients
java.lang.Exception
- if a database access error occurs.public int update(psman.data.Type data) throws java.lang.Exception
data
- the new type having an existing ID.
java.lang.Exception
- if a database access error occurs.public int insert(psman.data.Role data1, psman.data.TPartner data2, psman.data.PseudonymType binding) throws java.lang.Exception
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.
public int update(psman.data.Role data1, psman.data.TPartner data2, psman.data.PseudonymType binding) throws java.lang.Exception
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.
public int delete(psman.data.Role data1, psman.data.TPartner data2) throws java.lang.Exception
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.
public psman.data.Certificate[] selectCertificate(psman.data.PublicKey signedKey, psman.data.PublicKey[] signKeys) throws java.lang.Exception
signedKey
- the key in question.signKeys
- valid keys for signature.
java.lang.Exception
- if a database access error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |