org.molgenis.omx.observ.value.db
Class HyperlinkValueSecurityDecorator<E extends HyperlinkValue>

java.lang.Object
  extended by org.molgenis.framework.db.MapperDecorator<E>
      extended by org.molgenis.omx.observ.value.db.HyperlinkValueSecurityDecorator<E>
All Implemented Interfaces:
Mapper<E>

public class HyperlinkValueSecurityDecorator<E extends HyperlinkValue>
extends MapperDecorator<E>

TODO add column level security filters


Constructor Summary
HyperlinkValueSecurityDecorator(Mapper<E> generatedMapper)
           
 
Method Summary
 int add(List<E> entities)
           
 int add(TupleReader reader, TupleWriter writer)
           
 int count(QueryRule... rules)
           
 String createFindSqlInclRules(QueryRule[] rules)
           
 int executeAdd(List<? extends E> entities)
           
 int executeRemove(List<? extends E> entities)
           
 int executeUpdate(List<? extends E> entities)
           
 List<E> find(QueryRule... rules)
           
 void find(TupleWriter writer, List<String> fieldsToExport, QueryRule[] rules)
           
 void find(TupleWriter writer, QueryRule... rules)
           
 E findById(Object id)
           
 int remove(List<E> entities)
           
 int remove(TupleReader reader)
           
 void resolveForeignKeys(List<E> entities)
           
 List<E> toList(TupleReader reader, int limit)
           
 int update(List<E> entities)
           
 int update(TupleReader reader)
           
 
Methods inherited from class org.molgenis.framework.db.MapperDecorator
create, createList, getDatabase, getFieldType, getTableFieldName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HyperlinkValueSecurityDecorator

public HyperlinkValueSecurityDecorator(Mapper<E> generatedMapper)
Method Detail

add

public int add(List<E> entities)
        throws DatabaseException
Specified by:
add in interface Mapper<E extends HyperlinkValue>
Overrides:
add in class MapperDecorator<E extends HyperlinkValue>
Throws:
DatabaseException

update

public int update(List<E> entities)
           throws DatabaseException
Specified by:
update in interface Mapper<E extends HyperlinkValue>
Overrides:
update in class MapperDecorator<E extends HyperlinkValue>
Throws:
DatabaseException

remove

public int remove(List<E> entities)
           throws DatabaseException
Specified by:
remove in interface Mapper<E extends HyperlinkValue>
Overrides:
remove in class MapperDecorator<E extends HyperlinkValue>
Throws:
DatabaseException

add

public int add(TupleReader reader,
               TupleWriter writer)
        throws DatabaseException
Specified by:
add in interface Mapper<E extends HyperlinkValue>
Overrides:
add in class MapperDecorator<E extends HyperlinkValue>
Throws:
DatabaseException

count

public int count(QueryRule... rules)
          throws DatabaseException
Specified by:
count in interface Mapper<E extends HyperlinkValue>
Overrides:
count in class MapperDecorator<E extends HyperlinkValue>
Throws:
DatabaseException

find

public List<E> find(QueryRule... rules)
                                    throws DatabaseException
Specified by:
find in interface Mapper<E extends HyperlinkValue>
Overrides:
find in class MapperDecorator<E extends HyperlinkValue>
Throws:
DatabaseException

find

public void find(TupleWriter writer,
                 QueryRule... rules)
          throws DatabaseException
Specified by:
find in interface Mapper<E extends HyperlinkValue>
Overrides:
find in class MapperDecorator<E extends HyperlinkValue>
Throws:
DatabaseException

findById

public E findById(Object id)
                                  throws DatabaseException
Specified by:
findById in interface Mapper<E extends HyperlinkValue>
Overrides:
findById in class MapperDecorator<E extends HyperlinkValue>
Throws:
DatabaseException

remove

public int remove(TupleReader reader)
           throws DatabaseException
Specified by:
remove in interface Mapper<E extends HyperlinkValue>
Overrides:
remove in class MapperDecorator<E extends HyperlinkValue>
Throws:
DatabaseException

update

public int update(TupleReader reader)
           throws DatabaseException
Specified by:
update in interface Mapper<E extends HyperlinkValue>
Overrides:
update in class MapperDecorator<E extends HyperlinkValue>
Throws:
DatabaseException

find

public void find(TupleWriter writer,
                 List<String> fieldsToExport,
                 QueryRule[] rules)
          throws DatabaseException
Specified by:
find in interface Mapper<E extends HyperlinkValue>
Overrides:
find in class MapperDecorator<E extends HyperlinkValue>
Throws:
DatabaseException

executeAdd

public int executeAdd(List<? extends E> entities)
               throws DatabaseException
Specified by:
executeAdd in interface Mapper<E extends HyperlinkValue>
Overrides:
executeAdd in class MapperDecorator<E extends HyperlinkValue>
Throws:
DatabaseException

executeUpdate

public int executeUpdate(List<? extends E> entities)
                  throws DatabaseException
Specified by:
executeUpdate in interface Mapper<E extends HyperlinkValue>
Overrides:
executeUpdate in class MapperDecorator<E extends HyperlinkValue>
Throws:
DatabaseException

executeRemove

public int executeRemove(List<? extends E> entities)
                  throws DatabaseException
Specified by:
executeRemove in interface Mapper<E extends HyperlinkValue>
Overrides:
executeRemove in class MapperDecorator<E extends HyperlinkValue>
Throws:
DatabaseException

resolveForeignKeys

public void resolveForeignKeys(List<E> entities)
                        throws ParseException,
                               DatabaseException
Specified by:
resolveForeignKeys in interface Mapper<E extends HyperlinkValue>
Overrides:
resolveForeignKeys in class MapperDecorator<E extends HyperlinkValue>
Throws:
ParseException
DatabaseException

toList

public List<E> toList(TupleReader reader,
                      int limit)
                                      throws DatabaseException
Specified by:
toList in interface Mapper<E extends HyperlinkValue>
Overrides:
toList in class MapperDecorator<E extends HyperlinkValue>
Throws:
DatabaseException

createFindSqlInclRules

public String createFindSqlInclRules(QueryRule[] rules)
                              throws DatabaseException
Specified by:
createFindSqlInclRules in interface Mapper<E extends HyperlinkValue>
Overrides:
createFindSqlInclRules in class MapperDecorator<E extends HyperlinkValue>
Throws:
DatabaseException


Copyright © 2013. All Rights Reserved.