org.melati.example.contacts
Class ContactsDatabase

Package class diagram package ContactsDatabase
java.lang.Object
  extended by org.melati.poem.Database
      extended by org.melati.poem.generated.PoemDatabaseBase
          extended by org.melati.poem.PoemDatabase
              extended by org.melati.example.contacts.generated.ContactsDatabaseBase
                  extended by org.melati.example.contacts.ContactsDatabase
All Implemented Interfaces:
ContactsDatabaseTables, ContactsDatabaseTablesBase, PoemDatabaseTablesBase, PoemDatabaseTables, TransactionPool

public class ContactsDatabase
extends ContactsDatabaseBase
implements ContactsDatabaseTables

Melati POEM generated, programmer modifyable stub.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.melati.poem.Database
Database.ConnectingException
 
Constructor Summary
ContactsDatabase()
           
 
Method Summary
 void connect(String name, String dbmsclass, String url, String username, String password, int maxConnections)
          Connect to an RDBMS database.
 
Methods inherited from class org.melati.example.contacts.generated.ContactsDatabaseBase
getCapabilityTable, getCategoryTable, getColumnInfoTable, getContactCategoryTable, getContactTable, getGroupCapabilityTable, getGroupMembershipTable, getGroupTable, getSettingTable, getTableCategoryTable, getTableInfoTable, getUserTable
 
Methods inherited from class org.melati.poem.Database
addConstraints, addTableAndCommit, administerCapability, administratorUser, beginExclusiveLock, beginSession, columns, defineTable, deleteTableAndCommit, disconnect, dump, dumpCacheAnalysis, endExclusiveLock, endSession, getCanAdminister, getCommittedConnection, getDbms, getDisplayName, getDisplayTables, getDisplayTables, getFreeTransactionsCount, getLastQuery, getName, getQueryCount, getTable, getTransactionsCount, givesCapabilitySQL, guestAccessToken, guestUser, hasCapability, inCommittedTransaction, incrementQueryCount, inSession, inSessionAsRoot, isFree, logCommits, logSQL, poemTransaction, quotedName, redefineTable, referencesTo, referencesTo, setCanAdminister, setCanAdminister, setDisplayName, setLogCommits, setLogSQL, setTransactionsMax, sqlQuery, sqlUpdate, tables, toString, transaction, transactionsMax, trimCache, uncache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.melati.example.contacts.generated.ContactsDatabaseTablesBase
getCapabilityTable, getCategoryTable, getColumnInfoTable, getContactCategoryTable, getContactTable, getGroupCapabilityTable, getGroupMembershipTable, getGroupTable, getSettingTable, getTableCategoryTable, getTableInfoTable, getUserTable
 

Constructor Detail

ContactsDatabase

public ContactsDatabase()
Method Detail

connect

public void connect(String name,
                    String dbmsclass,
                    String url,
                    String username,
                    String password,
                    int maxConnections)
Description copied from class: Database
Connect to an RDBMS database. This should be called once when the application starts up; it will

Overrides:
connect in class Database
dbmsclass - The Melati DBMS class (see org/melati/poem/dbms) to use, usually specified in org.melati.LogicalDatabase.properties.
url - The JDBC URL for the database; for instance jdbc:postgresql:williamc. It is the programmer's responsibility to make sure that an appropriate driver has been loaded.
username - The username under which to establish JDBC connections to the database. This has nothing to do with the user/group/capability authentication performed by Melati.
password - The password to go with the username.
maxConnections - The maximum number of concurrent Transactions allowed, usually specified in org.melati.LogicalDatabase.properties.
See Also:
Database.transactionsMax()


Copyright © 2000-2010 PanEris. All Rights Reserved.