com.nonesole.persistence.file
Class AbstractFilesOperation

java.lang.Object
  extended by com.nonesole.persistence.file.AbstractFilesOperation
All Implemented Interfaces:
IFileOperations
Direct Known Subclasses:
PropertiesOperation, SerializationOperation, TXTOperation, XMLOperation

public abstract class AbstractFilesOperation
extends java.lang.Object
implements IFileOperations


Method Summary
 void batchDelete(java.util.List<java.lang.Object> obj, java.net.URL url)
          Delete objects of file system
 java.util.List<java.lang.Object> batchInsert(java.util.List<java.lang.Object> obj, java.net.URL url)
          Insert objects into file system
 java.util.List<java.lang.Object> batchUpdate(java.util.List<java.lang.Object> obj, java.net.URL url)
          Update objects of file system
 void delete(java.lang.Object obj, java.net.URL url)
          Delete one object of file system
 java.lang.Object insert(java.lang.Object obj, java.net.URL url)
          Insert one object into file system
 java.util.List<java.lang.Object> query(java.lang.Object obj, java.net.URL url)
          Query.
Those classed who implement this interface will set search condition by themselves.So it uses Object(common condition object) here.
 java.lang.Object update(java.lang.Object obj, java.net.URL url)
          Update one object of file system
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

delete

public void delete(java.lang.Object obj,
                   java.net.URL url)
            throws OperationsException
Description copied from interface: IFileOperations
Delete one object of file system

Specified by:
delete in interface IFileOperations
Parameters:
obj - Object
url - - file URL
Throws:
OperationsException

insert

public java.lang.Object insert(java.lang.Object obj,
                               java.net.URL url)
                        throws OperationsException
Description copied from interface: IFileOperations
Insert one object into file system

Specified by:
insert in interface IFileOperations
Parameters:
obj - Object
url - - file URL
Returns:
Object - obj after dealing with
Throws:
OperationsException

query

public java.util.List<java.lang.Object> query(java.lang.Object obj,
                                              java.net.URL url)
                                       throws OperationsException
Description copied from interface: IFileOperations
Query.
Those classed who implement this interface will set search condition by themselves.So it uses Object(common condition object) here.

Specified by:
query in interface IFileOperations
Parameters:
obj - Object
url - - file URL
Returns:
result of search
Throws:
OperationsException

update

public java.lang.Object update(java.lang.Object obj,
                               java.net.URL url)
                        throws OperationsException
Description copied from interface: IFileOperations
Update one object of file system

Specified by:
update in interface IFileOperations
Parameters:
obj - Object
url - - file URL
Returns:
Object - obj after dealing with
Throws:
OperationsException

batchDelete

public void batchDelete(java.util.List<java.lang.Object> obj,
                        java.net.URL url)
                 throws OperationsException
Description copied from interface: IFileOperations
Delete objects of file system

Specified by:
batchDelete in interface IFileOperations
Parameters:
obj - list of Object
url - - file URL
Throws:
OperationsException

batchInsert

public java.util.List<java.lang.Object> batchInsert(java.util.List<java.lang.Object> obj,
                                                    java.net.URL url)
                                             throws OperationsException
Description copied from interface: IFileOperations
Insert objects into file system

Specified by:
batchInsert in interface IFileOperations
Parameters:
obj - list of Object
url - - file URL
Returns:
Object - list of objs after dealing with
Throws:
OperationsException

batchUpdate

public java.util.List<java.lang.Object> batchUpdate(java.util.List<java.lang.Object> obj,
                                                    java.net.URL url)
                                             throws OperationsException
Description copied from interface: IFileOperations
Update objects of file system

Specified by:
batchUpdate in interface IFileOperations
Parameters:
obj - list of Object
url - - file URL
Returns:
Object - list of objs after dealing with
Throws:
OperationsException