|
JAC project AOPSYS CEDRIC & LIP6 labs |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jac.aspects.persistence.SQLStorage | +--org.objectweb.jac.aspects.persistence.PostgresStorage
Implements the storage to store within a PostgreSQL database.
Nested Class Summary |
Nested classes inherited from class org.objectweb.jac.aspects.persistence.SQLStorage |
SQLStorage.InvalidStorageException |
Field Summary |
Fields inherited from class org.objectweb.jac.aspects.persistence.SQLStorage |
db |
Constructor Summary | |
PostgresStorage(String database,
String user,
String password)
Creates a new storage for a PostgreSQL database. |
Method Summary | |
long |
getNextVal(String sequence)
Returns the next value of a sequence |
String |
newName(String className)
Generate a new name for an instance. |
Methods inherited from class org.objectweb.jac.aspects.persistence.SQLStorage |
addSlashes, addToList, addToList, addToSet, bindOIDToName, checkStorage, clearList, clearMap, clearSet, close, collectionContains, commit, createObject, deleteName, deleteObject, execute, executeQuery, executeUpdate, getClassID, getCollectionID, getCollectionValues, getField, getFields, getFromMap, getIndexInList, getInternalIndexInList, getLastIndexInList, getList, getList, getListItem, getListSize, getLong, getMap, getMap, getMapSize, getNameFromOID, getObjects, getObjects, getOID, getOIDFromName, getRootObjects, getSet, getSet, getSetSize, listContains, mapContainsKey, mapContainsValue, putInMap, removeField, removeFromList, removeFromList, removeFromMap, removeFromSet, rollback, setConnection, setContains, setField, setListItem, startTransaction, updateField |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PostgresStorage(String database, String user, String password) throws SQLException
database
- the database. It may take on eof the following form:
user
- the user namepassword
- the password for this userMethod Detail |
public long getNextVal(String sequence) throws Exception
SQLStorage
getNextVal
in class SQLStorage
Exception
public String newName(String className) throws Exception
Storage
newName
in interface Storage
newName
in class SQLStorage
className
- the className of the instance for which to generate a name
Exception
|
Contact JAC development team: Renaud Pawlak Lionel Seinturier Laurent Martelli |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |