Changeset 227
- Timestamp:
- 12/30/07 00:16:22 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lex/trunk/src/com/qwirx/lex/emdros/EmdrosDatabase.java
r223 r227 18 18 import jemdros.BadMonadsException; 19 19 import jemdros.EmdrosEnv; 20 import jemdros.FlatSheaf; 20 21 import jemdros.MatchedObject; 21 22 import jemdros.MonadSetElement; … … 107 108 executeDirect(query); 108 109 109 if (! env.isSheaf())110 if (!env.isSheaf()) 110 111 { 111 112 throw new DatabaseException("result is not a sheaf", query); … … 114 115 return env.takeOverSheaf(); 115 116 } 117 118 public FlatSheaf getFlatSheaf(String query) 119 throws DatabaseException 120 { 121 executeDirect(query); 122 123 if (!env.isFlatSheaf()) 124 { 125 throw new DatabaseException("result is not a flat sheaf", query); 126 } 127 128 return env.takeOverFlatSheaf(); 129 } 116 130 117 131 public Table getTable(String query)
