01: /*
02: * Copyright 2006 Davide Deidda
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: /*
18: * FilePersistor.java
19: *
20: * Created on 9 aprile 2005, 9.26
21: */
22:
23: package it.biobytes.ammentos.persistors;
24:
25: import it.biobytes.ammentos.*;
26: import it.biobytes.ammentos.query.*;
27: import java.util.*;
28:
29: /**
30: *
31: * @author davide
32: */
33: public class FilePersistor extends Persistor {
34:
35: public <T> void save(Class<T> c, T obj) throws PersistenceException {
36: }
37:
38: public <T> void save(Class<T> c, T obj, Transaction trans)
39: throws PersistenceException {
40: }
41:
42: public <T> void delete(Class<T> c, T obj)
43: throws PersistenceException {
44: }
45:
46: public <T> void delete(Class<T> c, T obj, Transaction trans)
47: throws PersistenceException {
48: }
49:
50: public <T> boolean load(Class<T> c, T obj, Object primaryKey)
51: throws PersistenceException {
52: return false;
53: }
54:
55: public <T> boolean load(Class<T> c, T obj, Object primaryKey,
56: Transaction trans) throws PersistenceException {
57: return false;
58: }
59:
60: public <T> List<T> load(Class<T> c, Query qry)
61: throws PersistenceException {
62: return null;
63: }
64:
65: public <T> List<T> load(Class<T> c, Query qry, Transaction trans)
66: throws PersistenceException {
67: return null;
68: }
69:
70: public <T> EntityIterable<T> loadIterable(Class<T> c, Query qry)
71: throws PersistenceException {
72: throw new UnsupportedOperationException("Not supported yet.");
73: }
74:
75: public <T> EntityIterable<T> loadIterable(Class<T> c, Query qry,
76: Transaction trans) throws PersistenceException {
77: throw new UnsupportedOperationException("Not supported yet.");
78: }
79:
80: @Override
81: public <T> int count(Class<T> c, Query qry)
82: throws PersistenceException {
83: throw new UnsupportedOperationException("Not supported yet.");
84: }
85:
86: @Override
87: public <T> int count(Class<T> c, Query qry, Transaction trans)
88: throws PersistenceException {
89: throw new UnsupportedOperationException("Not supported yet.");
90: }
91: }
|