|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| DefaultPersistenceManager.java | - | 0% | 0% | 0% |
|
||||||||||||||
| 1 |
/*
|
|
| 2 |
* DefaultPersistenceManager.java
|
|
| 3 |
* Copyright 2002-2004 Bill2, Inc.
|
|
| 4 |
*
|
|
| 5 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
| 6 |
* you may not use this file except in compliance with the License.
|
|
| 7 |
* You may obtain a copy of the License at
|
|
| 8 |
*
|
|
| 9 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
| 10 |
*
|
|
| 11 |
* Unless required by applicable law or agreed to in writing, software
|
|
| 12 |
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
| 13 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
| 14 |
* See the License for the specific language governing permissions and
|
|
| 15 |
* limitations under the License.
|
|
| 16 |
*/
|
|
| 17 |
package org.dentaku.services.persistence;
|
|
| 18 |
|
|
| 19 |
import net.sf.hibernate.type.Type;
|
|
| 20 |
import org.dentaku.services.persistence.hibernate.SessionProvider;
|
|
| 21 |
|
|
| 22 |
import java.io.Serializable;
|
|
| 23 |
import java.util.Collection;
|
|
| 24 |
import java.util.List;
|
|
| 25 |
import java.util.Map;
|
|
| 26 |
|
|
| 27 |
public class DefaultPersistenceManager implements PersistenceManager { |
|
| 28 |
private Map factories;
|
|
| 29 |
|
|
| 30 | 0 |
public PersistenceFactory getPersistenceFactory(String name) {
|
| 31 | 0 |
return (PersistenceFactory)factories.get(name);
|
| 32 |
} |
|
| 33 |
|
|
| 34 | 0 |
public void saveOrUpdate(ModelEntity object) throws PersistenceException { |
| 35 |
//To change body of implemented methods use File | Settings | File Templates.
|
|
| 36 |
} |
|
| 37 |
|
|
| 38 | 0 |
public void delete(ModelEntity object) throws PersistenceException { |
| 39 |
//To change body of implemented methods use File | Settings | File Templates.
|
|
| 40 |
} |
|
| 41 |
|
|
| 42 | 0 |
public SessionProvider getSessionProvider() throws PersistenceException { |
| 43 | 0 |
return null; |
| 44 |
} |
|
| 45 |
|
|
| 46 | 0 |
public Object load(Class theClass, Serializable id) throws PersistenceException { |
| 47 | 0 |
return null; |
| 48 |
} |
|
| 49 |
|
|
| 50 | 0 |
public List find(String query, Object value, Type type) throws PersistenceException { |
| 51 | 0 |
return null; |
| 52 |
} |
|
| 53 |
|
|
| 54 | 0 |
public List find(String query, Object[] values, Type[] types) throws PersistenceException { |
| 55 | 0 |
return null; |
| 56 |
} |
|
| 57 |
|
|
| 58 | 0 |
public Collection filter(Collection c, String filter) throws PersistenceException { |
| 59 | 0 |
return null; //To change body of implemented methods use File | Settings | File Templates. |
| 60 |
} |
|
| 61 |
|
|
| 62 | 0 |
public void releaseSession() throws PersistenceException { |
| 63 |
} |
|
| 64 |
|
|
| 65 | 0 |
public void rollback() { |
| 66 |
} |
|
| 67 |
|
|
| 68 | 0 |
public void refresh(Object o) throws PersistenceException { |
| 69 |
} |
|
| 70 |
} |
|
| 71 |
|
|
||||||||||