|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--psman.dbi.XML
The XML file driver.
Field Summary | |
protected org.w3c.dom.Document |
doc
The XML document. |
protected java.lang.String |
filename
The XML file name. |
Constructor Summary | |
XML()
Constructor. |
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.Pseudonym data,
psman.data.PseudonymType[] bindings)
|
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. |
protected org.w3c.dom.Element |
export(psman.data.AppelRuleSet data)
|
protected org.w3c.dom.Element |
export(psman.data.Category data)
|
protected org.w3c.dom.Element |
export(psman.data.Certificate data)
|
protected org.w3c.dom.Element |
export(psman.data.Chain data)
|
protected org.w3c.dom.Element |
export(psman.data.Configuration data)
|
protected org.w3c.dom.Element |
export(psman.data.DataField data)
|
protected org.w3c.dom.Element |
export(psman.data.Person data)
|
protected org.w3c.dom.Element |
export(psman.data.Property data)
|
protected org.w3c.dom.Element |
export(psman.data.Pseudonym data)
|
protected org.w3c.dom.Element |
export(psman.data.PseudonymType data)
|
protected org.w3c.dom.Element |
export(psman.data.PublicKey data)
|
protected org.w3c.dom.Element |
export(psman.data.Purpose data)
|
protected org.w3c.dom.Element |
export(psman.data.Recipient data)
|
protected org.w3c.dom.Element |
export(psman.data.Role data)
|
protected org.w3c.dom.Element |
export(psman.data.Rule data)
|
protected org.w3c.dom.Element |
export(psman.data.SecretKey data)
|
protected org.w3c.dom.Element |
export(psman.data.TPartner data)
|
protected org.w3c.dom.Element |
export(psman.data.Transaction data)
|
protected org.w3c.dom.Element |
export(psman.data.Type data)
|
protected psman.data.AppelRuleSet |
importAppelRuleSet(org.w3c.dom.Element node)
|
protected psman.data.Category |
importCategory(org.w3c.dom.Element node)
|
protected psman.data.Certificate |
importCertificate(org.w3c.dom.Element node)
|
protected psman.data.Chain |
importChain(org.w3c.dom.Element node)
|
protected psman.data.Configuration |
importConfiguration(org.w3c.dom.Element node)
|
protected psman.data.DataField |
importDataField(org.w3c.dom.Element node)
|
protected psman.data.Person |
importPerson(org.w3c.dom.Element node)
|
protected psman.data.Property |
importProperty(org.w3c.dom.Element node)
|
protected psman.data.Pseudonym |
importPseudonym(org.w3c.dom.Element node)
|
protected psman.data.PseudonymType |
importPseudonymType(org.w3c.dom.Element node)
|
protected psman.data.PublicKey |
importPublicKey(org.w3c.dom.Element node)
|
protected psman.data.Purpose |
importPurpose(org.w3c.dom.Element node)
|
protected psman.data.Recipient |
importRecipient(org.w3c.dom.Element node)
|
protected psman.data.Role |
importRole(org.w3c.dom.Element node)
|
protected psman.data.Rule |
importRule(org.w3c.dom.Element node)
|
protected psman.data.SecretKey |
importSecretKey(org.w3c.dom.Element node)
|
protected psman.data.TPartner |
importTPartner(org.w3c.dom.Element node)
|
protected psman.data.Transaction |
importTransaction(org.w3c.dom.Element node)
|
protected psman.data.Type |
importType(org.w3c.dom.Element node)
|
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String filename
protected org.w3c.dom.Document doc
Constructor Detail |
public XML()
Method Detail |
public java.lang.Object[][] categoryTable() throws java.lang.Exception
DBI
categoryTable
in interface DBI
java.lang.Exception
- if a database access error occurs.public java.lang.Object[][] purposeTable() throws java.lang.Exception
DBI
purposeTable
in interface DBI
java.lang.Exception
- if a database access error occurs.public java.lang.Object[][] recipientTable() throws java.lang.Exception
DBI
recipientTable
in interface DBI
java.lang.Exception
- if a database access error occurs.public java.lang.Object[][] certificateTable() throws java.lang.Exception
DBI
certificateTable
in interface DBI
java.lang.Exception
- if a database access error occurs.public java.lang.Object[][] chainTable() throws java.lang.Exception
DBI
chainTable
in interface DBI
java.lang.Exception
- if a database access error occurs.public java.lang.Object[][] configurationTable() throws java.lang.Exception
DBI
configurationTable
in interface DBI
java.lang.Exception
- if a database access error occurs.public java.lang.Object[][] appelRuleSetTable() throws java.lang.Exception
DBI
appelRuleSetTable
in interface DBI
java.lang.Exception
- if a database access error occurs.public void connect(java.util.Properties data) throws java.lang.Exception
DBI
connect
in interface DBI
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
DBI
create
in interface DBI
java.lang.Exception
- if a database access error occurs.DBI.drop()
public void create(int table) throws java.lang.Exception
DBI
create
in interface DBI
table
- ID of the table to be created.
java.lang.Exception
- if a database access error occurs.DBI.drop(int)
public java.lang.Object[][] dataFieldTable() throws java.lang.Exception
DBI
dataFieldTable
in interface DBI
java.lang.Exception
- if a database access error occurs.public int delete(psman.data.Category data) throws java.lang.Exception
DBI
delete
in interface DBI
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.Purpose data) throws java.lang.Exception
DBI
delete
in interface DBI
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
DBI
delete
in interface DBI
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
DBI
delete
in interface DBI
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
DBI
delete
in interface DBI
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
DBI
delete
in interface DBI
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.AppelRuleSet data) throws java.lang.Exception
DBI
delete
in interface DBI
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.DataField data) throws java.lang.Exception
DBI
delete
in interface DBI
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
DBI
delete
in interface DBI
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
DBI
delete
in interface DBI
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
DBI
delete
in interface DBI
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.Pseudonym data, psman.data.PseudonymType[] bindings) throws java.lang.Exception
java.lang.Exception
public int delete(psman.data.PseudonymType data) throws java.lang.Exception
DBI
delete
in interface DBI
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
DBI
delete
in interface DBI
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
DBI
delete
in interface DBI
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
DBI
delete
in interface DBI
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
DBI
delete
in interface DBI
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
DBI
delete
in interface DBI
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
DBI
delete
in interface DBI
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
DBI
disconnect
in interface DBI
java.lang.Exception
- if a database access error occurs.public void drop() throws java.lang.Exception
DBI
drop
in interface DBI
java.lang.Exception
- if a database access error occurs.DBI.create()
public void drop(int table) throws java.lang.Exception
DBI
drop
in interface DBI
table
- ID of the table to be dropped.
java.lang.Exception
- if a database access error occurs.DBI.create()
protected org.w3c.dom.Element export(psman.data.Category data)
protected org.w3c.dom.Element export(psman.data.Purpose data)
protected org.w3c.dom.Element export(psman.data.Recipient data)
protected org.w3c.dom.Element export(psman.data.Certificate data)
protected org.w3c.dom.Element export(psman.data.Chain data)
protected org.w3c.dom.Element export(psman.data.Configuration data)
protected org.w3c.dom.Element export(psman.data.AppelRuleSet data)
protected org.w3c.dom.Element export(psman.data.DataField data)
protected org.w3c.dom.Element export(psman.data.Property data)
protected org.w3c.dom.Element export(psman.data.Person data)
protected org.w3c.dom.Element export(psman.data.Pseudonym data)
protected org.w3c.dom.Element export(psman.data.PseudonymType data)
protected org.w3c.dom.Element export(psman.data.PublicKey data)
protected org.w3c.dom.Element export(psman.data.Role data)
protected org.w3c.dom.Element export(psman.data.Rule data)
protected org.w3c.dom.Element export(psman.data.SecretKey data)
protected org.w3c.dom.Element export(psman.data.TPartner data)
protected org.w3c.dom.Element export(psman.data.Transaction data)
protected org.w3c.dom.Element export(psman.data.Type data)
protected psman.data.Category importCategory(org.w3c.dom.Element node)
protected psman.data.Purpose importPurpose(org.w3c.dom.Element node)
protected psman.data.Recipient importRecipient(org.w3c.dom.Element node)
protected psman.data.Certificate importCertificate(org.w3c.dom.Element node) throws java.lang.Exception
java.lang.Exception
protected psman.data.Chain importChain(org.w3c.dom.Element node)
protected psman.data.Configuration importConfiguration(org.w3c.dom.Element node) throws java.lang.Exception
java.lang.Exception
protected psman.data.AppelRuleSet importAppelRuleSet(org.w3c.dom.Element node) throws java.lang.Exception
java.lang.Exception
protected psman.data.DataField importDataField(org.w3c.dom.Element node) throws java.lang.Exception
java.lang.Exception
protected psman.data.Person importPerson(org.w3c.dom.Element node)
protected psman.data.Property importProperty(org.w3c.dom.Element node)
protected psman.data.Pseudonym importPseudonym(org.w3c.dom.Element node) throws java.lang.Exception
java.lang.Exception
protected psman.data.PseudonymType importPseudonymType(org.w3c.dom.Element node) throws java.lang.Exception
java.lang.Exception
protected psman.data.PublicKey importPublicKey(org.w3c.dom.Element node) throws java.lang.Exception
java.lang.Exception
protected psman.data.Role importRole(org.w3c.dom.Element node)
protected psman.data.Rule importRule(org.w3c.dom.Element node) throws java.lang.Exception
java.lang.Exception
protected psman.data.SecretKey importSecretKey(org.w3c.dom.Element node) throws java.lang.Exception
java.lang.Exception
protected psman.data.TPartner importTPartner(org.w3c.dom.Element node) throws java.lang.Exception
java.lang.Exception
protected psman.data.Transaction importTransaction(org.w3c.dom.Element node) throws java.lang.Exception
java.lang.Exception
protected psman.data.Type importType(org.w3c.dom.Element node)
public int insert(psman.data.Category data) throws java.lang.Exception
DBI
insert
in interface DBI
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.Purpose data) throws java.lang.Exception
DBI
insert
in interface DBI
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
DBI
insert
in interface DBI
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
DBI
insert
in interface DBI
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
DBI
insert
in interface DBI
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
DBI
insert
in interface DBI
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.AppelRuleSet data) throws java.lang.Exception
DBI
insert
in interface DBI
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.DataField data) throws java.lang.Exception
DBI
insert
in interface DBI
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
DBI
insert
in interface DBI
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
DBI
insert
in interface DBI
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
DBI
insert
in interface DBI
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
DBI
insert
in interface DBI
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
DBI
insert
in interface DBI
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
DBI
insert
in interface DBI
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
DBI
insert
in interface DBI
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
DBI
insert
in interface DBI
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
DBI
insert
in interface DBI
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
DBI
insert
in interface DBI
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
DBI
insert
in interface DBI
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
DBI
insert
in interface DBI
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
DBI
insert
in interface DBI
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
DBI
insert
in interface DBI
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
DBI
insert
in interface DBI
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
DBI
insert
in interface DBI
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
DBI
insert
in interface DBI
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
DBI
insert
in interface DBI
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
DBI
insert
in interface DBI
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
DBI
insert
in interface DBI
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
DBI
insert
in interface DBI
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
DBI
insert
in interface DBI
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()
DBI
isConnected
in interface DBI
true
if the database is connected,
false
otherwise.public boolean isReadOnly() throws java.lang.Exception
DBI
isReadOnly
in interface DBI
true
if database is in read-only state,
false
otherwise.
java.lang.Exception
public java.lang.Object[][] personTable() throws java.lang.Exception
DBI
personTable
in interface DBI
java.lang.Exception
- if a database access error occurs.public java.lang.Object[][] propertyTable() throws java.lang.Exception
DBI
propertyTable
in interface DBI
java.lang.Exception
- if a database access error occurs.public java.lang.Object[][] pseudonymTable() throws java.lang.Exception
DBI
pseudonymTable
in interface DBI
java.lang.Exception
- if a database access error occurs.public java.lang.Object[][] pseudonymTypeTable() throws java.lang.Exception
DBI
pseudonymTypeTable
in interface DBI
java.lang.Exception
- if a database access error occurs.public java.lang.Object[][] publicKeyTable() throws java.lang.Exception
DBI
publicKeyTable
in interface DBI
java.lang.Exception
- if a database access error occurs.public java.lang.Object[][] roleTable() throws java.lang.Exception
DBI
roleTable
in interface DBI
java.lang.Exception
- if a database access error occurs.public java.lang.Object[][] ruleTable() throws java.lang.Exception
DBI
ruleTable
in interface DBI
java.lang.Exception
- if a database access error occurs.public java.lang.Object[][] secretKeyTable() throws java.lang.Exception
DBI
secretKeyTable
in interface DBI
java.lang.Exception
- if a database access error occurs.public psman.data.Category[] selectCategory() throws java.lang.Exception
DBI
selectCategory
in interface DBI
java.lang.Exception
- if a database access error occurs.public psman.data.Category selectCategory(int id) throws java.lang.Exception
DBI
selectCategory
in interface DBI
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
DBI
selectCategory
in interface DBI
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
DBI
selectPurpose
in interface DBI
java.lang.Exception
- if a database access error occurs.public psman.data.Purpose selectPurpose(int id) throws java.lang.Exception
DBI
selectPurpose
in interface DBI
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
DBI
selectPurpose
in interface DBI
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
DBI
selectRecipient
in interface DBI
java.lang.Exception
- if a database access error occurs.public psman.data.Recipient selectRecipient(int id) throws java.lang.Exception
DBI
selectRecipient
in interface DBI
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
DBI
selectRecipient
in interface DBI
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
DBI
selectCertificate
in interface DBI
java.lang.Exception
- if a database access error occurs.public psman.data.Certificate selectCertificate(byte[] id) throws java.lang.Exception
DBI
selectCertificate
in interface DBI
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
DBI
selectCertificate
in interface DBI
java.lang.Exception
- if a database access error occurs.public psman.data.Category[] selectCategory(psman.data.DataField data) throws java.lang.Exception
DBI
selectCategory
in interface DBI
java.lang.Exception
- if a database access error occurs.public psman.data.Certificate[] selectCertificate(psman.data.Property data) throws java.lang.Exception
DBI
selectCertificate
in interface DBI
java.lang.Exception
- if a database access error occurs.public psman.data.Certificate[] selectCertificate(psman.data.PublicKey data, boolean isTestKey) throws java.lang.Exception
DBI
selectCertificate
in interface DBI
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
DBI
selectChain
in interface DBI
java.lang.Exception
- if a database access error occurs.public psman.data.Chain selectChain(int id) throws java.lang.Exception
DBI
selectChain
in interface DBI
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
DBI
selectChain
in interface DBI
name
- the name of the chain
java.lang.Exception
- if a database access error occurs.public psman.data.Configuration[] selectConfiguration() throws java.lang.Exception
DBI
selectConfiguration
in interface DBI
java.lang.Exception
- if a database access error occurs.public psman.data.Configuration selectConfiguration(java.lang.String id) throws java.lang.Exception
DBI
selectConfiguration
in interface DBI
id
- the key
java.lang.Exception
- if a database access error occurs.public psman.data.AppelRuleSet[] selectAppelRuleSet() throws java.lang.Exception
DBI
selectAppelRuleSet
in interface DBI
java.lang.Exception
- if a database access error occurs.public psman.data.AppelRuleSet selectAppelRuleSet(java.lang.String id) throws java.lang.Exception
DBI
selectAppelRuleSet
in interface DBI
id
- the key
java.lang.Exception
- if a database access error occurs.public psman.data.DataField[] selectDataField() throws java.lang.Exception
DBI
selectDataField
in interface DBI
java.lang.Exception
- if a database access error occurs.public psman.data.DataField[] selectDataField(psman.data.Certificate data) throws java.lang.Exception
DBI
selectDataField
in interface DBI
data
- the certificate
java.lang.Exception
- if a database access error occurs.public psman.data.DataField selectDataField(int id) throws java.lang.Exception
DBI
selectDataField
in interface DBI
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
DBI
selectDataField
in interface DBI
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
DBI
selectDataField
in interface DBI
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
DBI
selectDataField
in interface DBI
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
DBI
selectDataField
in interface DBI
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
DBI
selectDataField
in interface DBI
data
- the transaction
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
DBI
selectRecipient
in interface DBI
data1
- the transactiondata2
- the data field
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
DBI
selectPurpose
in interface DBI
data1
- the transactiondata2
- the data field
java.lang.Exception
- if a database access error occurs.public psman.data.Person[] selectPerson() throws java.lang.Exception
DBI
selectPerson
in interface DBI
java.lang.Exception
- if a database access error occurs.public psman.data.Person selectPerson(int id) throws java.lang.Exception
DBI
selectPerson
in interface DBI
id
- the database ID of the person
java.lang.Exception
- if a database access error occurs.public psman.data.Person selectPerson(java.lang.String name) throws java.lang.Exception
DBI
selectPerson
in interface DBI
name
- the name of the person
java.lang.Exception
- if a database access error occurs.public psman.data.Property[] selectProperty() throws java.lang.Exception
DBI
selectProperty
in interface DBI
java.lang.Exception
- if a database access error occurs.public psman.data.Property selectProperty(int id) throws java.lang.Exception
DBI
selectProperty
in interface DBI
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
DBI
selectProperty
in interface DBI
data
- the pseudonym
java.lang.Exception
- if a database access error occurs.public psman.data.PseudonymType[] selectPseudonymType(psman.data.Pseudonym data) throws java.lang.Exception
DBI
selectPseudonymType
in interface DBI
java.lang.Exception
- if a database access error occurs.public psman.data.Property selectProperty(java.lang.String name) throws java.lang.Exception
DBI
selectProperty
in interface DBI
name
- the name of the property
java.lang.Exception
- if a database access error occurs.public psman.data.Pseudonym[] selectPseudonym() throws java.lang.Exception
DBI
selectPseudonym
in interface DBI
java.lang.Exception
- if a database access error occurs.public psman.data.Pseudonym selectPseudonym(int id) throws java.lang.Exception
DBI
selectPseudonym
in interface DBI
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
DBI
selectPseudonym
in interface DBI
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
DBI
selectPseudonym
in interface DBI
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
DBI
selectPseudonym
in interface DBI
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
DBI
selectPseudonym
in interface DBI
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
DBI
selectPseudonym
in interface DBI
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
DBI
null
is returned.
selectPseudonym
in interface DBI
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
DBI
selectPseudonym
in interface DBI
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
DBI
selectPseudonymType
in interface DBI
java.lang.Exception
- if a database access error occurs.public psman.data.PseudonymType selectPseudonymType(int id) throws java.lang.Exception
DBI
selectPseudonymType
in interface DBI
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
DBI
selectPseudonymType
in interface DBI
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
DBI
selectPseudonymType
in interface DBI
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
DBI
selectPseudonymType
in interface DBI
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
DBI
selectPseudonymType
in interface DBI
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
DBI
selectPublicKey
in interface DBI
java.lang.Exception
- if a database access error occurs.public psman.data.PublicKey selectPublicKey(byte[] id) throws java.lang.Exception
DBI
selectPublicKey
in interface DBI
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
DBI
selectPublicKey
in interface DBI
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
DBI
selectRole
in interface DBI
java.lang.Exception
- if a database access error occurs.public psman.data.Role selectRole(int id) throws java.lang.Exception
DBI
selectRole
in interface DBI
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
DBI
selectRole
in interface DBI
name
- the name of the role
java.lang.Exception
- if a database access error occurs.public psman.data.Rule[] selectRule() throws java.lang.Exception
DBI
selectRule
in interface DBI
java.lang.Exception
- if a database access error occurs.public psman.data.Rule selectRule(int chain, int rank) throws java.lang.Exception
DBI
selectRule
in interface DBI
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
DBI
selectSecretKey
in interface DBI
java.lang.Exception
- if a database access error occurs.public psman.data.SecretKey selectSecretKey(byte[] id) throws java.lang.Exception
DBI
selectSecretKey
in interface DBI
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
DBI
selectTPartner
in interface DBI
java.lang.Exception
- if a database access error occurs.public psman.data.TPartner selectTPartner(int id) throws java.lang.Exception
DBI
selectTPartner
in interface DBI
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
DBI
selectTPartner
in interface DBI
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
DBI
selectTPartner
in interface DBI
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
DBI
selectTPartner
in interface DBI
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
DBI
selectTransaction
in interface DBI
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
DBI
selectTransaction
in interface DBI
java.lang.Exception
- if a database access error occurs.public psman.data.Transaction selectTransaction(int id) throws java.lang.Exception
DBI
selectTransaction
in interface DBI
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
DBI
selectTransaction
in interface DBI
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
DBI
selectTransaction
in interface DBI
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
DBI
selectTransaction
in interface DBI
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
DBI
selectTransaction
in interface DBI
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
DBI
selectTransaction
in interface DBI
data1
- the roledata2
- the transaction partner
java.lang.Exception
- if a database access error occurs.public psman.data.Type[] selectType() throws java.lang.Exception
DBI
selectType
in interface DBI
java.lang.Exception
- if a database access error occurs.public psman.data.Type selectType(int id) throws java.lang.Exception
DBI
selectType
in interface DBI
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
DBI
selectType
in interface DBI
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
DBI
selectType
in interface DBI
data
- the transaction partner
java.lang.Exception
- if a database access error occurs.public java.lang.Object[][] tPartnerTable() throws java.lang.Exception
DBI
tPartnerTable
in interface DBI
java.lang.Exception
- if a database access error occurs.public java.lang.Object[][] transactionTable() throws java.lang.Exception
DBI
transactionTable
in interface DBI
java.lang.Exception
- if a database access error occurs.public java.lang.Object[][] typeTable() throws java.lang.Exception
DBI
typeTable
in interface DBI
java.lang.Exception
- if a database access error occurs.public int update(psman.data.Category data) throws java.lang.Exception
DBI
update
in interface DBI
data
- the new category 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
DBI
update
in interface DBI
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
DBI
update
in interface DBI
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
DBI
update
in interface DBI
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
DBI
update
in interface DBI
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
DBI
update
in interface DBI
data
- the new configuration with the same key.
java.lang.Exception
- if a database access error occurs.public int update(psman.data.AppelRuleSet data) throws java.lang.Exception
DBI
update
in interface DBI
data
- the new set with an existing database ID.
java.lang.Exception
- if a database access error occurs.public int update(psman.data.DataField data) throws java.lang.Exception
DBI
update
in interface DBI
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
DBI
set
in interface DBI
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
DBI
set
in interface DBI
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
DBI
update
in interface DBI
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
DBI
update
in interface DBI
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
DBI
set
in interface DBI
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
DBI
update
in interface DBI
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
DBI
set
in interface DBI
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
DBI
set
in interface DBI
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
DBI
update
in interface DBI
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
DBI
set
in interface DBI
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
DBI
update
in interface DBI
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
DBI
update
in interface DBI
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
DBI
set
in interface DBI
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
DBI
update
in interface DBI
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
DBI
set
in interface DBI
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
DBI
update
in interface DBI
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
DBI
update
in interface DBI
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
DBI
update
in interface DBI
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
DBI
insert
in interface DBI
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
DBI
update
in interface DBI
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
DBI
delete
in interface DBI
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
DBI
selectCertificate
in interface DBI
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 |