|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.mguennewig.pobjects.AbstractContainer
de.mguennewig.pobjects.filesystem.FileSystemContainer
public final class FileSystemContainer
A file system container maps the file system tree into one table.
NOTE: This is a read-only container, which means you can not modify anything.
| Field Summary |
|---|
| Fields inherited from interface de.mguennewig.pobjects.Container |
|---|
SUPPORTS_BOOLEAN, SUPPORTS_INHERITS, SUPPORTS_JOIN, SUPPORTS_LIMIT_OFFSET, SUPPORTS_ORACLE_JOIN, SUPPORTS_SQL99_JOIN, USE_ARRAY_FOR_LOB, USE_STREAM_TO_INSERT_LOB |
| Constructor Summary | |
|---|---|
FileSystemContainer()
|
|
FileSystemContainer(java.io.File rootPath)
|
|
| Method Summary | |
|---|---|
void |
close()
|
int |
deleteAll(ClassDecl cl)
Deletes all entries within the specified table. |
int |
deleteAll(ClassDecl cl,
Column fk,
java.lang.Object value)
Deletes all entries within the specified table whose foreign key fk equals the given value. |
void |
deleteObject(PObject obj)
Deletes the given persistent object from the database. |
boolean |
deleteRecord(Record obj)
|
int |
getCapabilities()
Returns the capabilities of the DBMS. |
java.io.File |
getRootPath()
|
java.lang.String |
getSequenceCurrentValue(Sequence seq)
Returns the current value of the given sequence. |
java.lang.String |
getSequenceNextValue(Sequence seq)
Returns a new value of the given sequence. |
java.lang.String |
insertObject(PObject obj)
Inserts the given object into the database. |
boolean |
insertRecord(Record obj)
|
EvalContext |
newEvalContext(int numColumns)
|
Query |
newQuery()
Creates a new empty query. |
void |
retrieveData(PObject obj)
Retrieves the data for the given persistent object from the database. |
void |
updateObject(PObject obj)
Updates the given persistent object in the database. |
| Methods inherited from class de.mguennewig.pobjects.AbstractContainer |
|---|
beginTransaction, commitTransaction, createObject, deleteAll, getClassDecl, getClassDecls, getData, getDictionary, getObject, getObject, getQualifiedName, getSchema, getTableExpr, isStrictMode, makePersistent, newQuery, newQuery, newQuery, newQuery, newQuery, newQuery, newQuery, newQuery, notifyChange, reset, rollbackTransaction, setStrictMode, storeAll, supportsBoolean, supportsInherits, supportsLimitOffset, supportsOracleJoin, supportsSQL99Join, useArrayForLob, useStreamToInsertLob |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileSystemContainer()
public FileSystemContainer(java.io.File rootPath)
| Method Detail |
|---|
public java.io.File getRootPath()
public void close()
public int getCapabilities()
Container.SUPPORTS_LIMIT_OFFSET and Container.SUPPORTS_BOOLEANSUPPORTS_* constants."public java.lang.String getSequenceCurrentValue(Sequence seq)
java.lang.UnsupportedOperationException - if database does not support
sequences.public java.lang.String getSequenceNextValue(Sequence seq)
java.lang.UnsupportedOperationException - if database does not support
sequences.public java.lang.String insertObject(PObject obj)
java.lang.UnsupportedOperationException - as this container is read-onlypublic void updateObject(PObject obj)
java.lang.UnsupportedOperationException - as this container is read-onlyPObject.isPersistent()public void deleteObject(PObject obj)
java.lang.UnsupportedOperationException - as this container is read-onlyPObject.isPersistent()public boolean insertRecord(Record obj)
java.lang.UnsupportedOperationException - as this container is read-onlypublic boolean deleteRecord(Record obj)
java.lang.UnsupportedOperationException - as this container is read-onlypublic void retrieveData(PObject obj)
public int deleteAll(ClassDecl cl)
NOTE: The objects which represent a row of this table or refer
to rows within it aren't updated. So the best way to ensure consistency
is to finish the current active transaction before calling this method and
afterwards doing a Container.reset().
java.lang.UnsupportedOperationException - as this container is read-only
public int deleteAll(ClassDecl cl,
Column fk,
java.lang.Object value)
fk equals the given value.
NOTE: The objects which represent a row of this table or refer
to rows within it aren't updated. So the best way to ensure consistency
is to finish the current active transaction before calling this method and
afterwards doing a Container.reset().
java.lang.UnsupportedOperationException - as this container is read-onlypublic EvalContext newEvalContext(int numColumns)
public Query newQuery()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||