Skip to content

Commit

Permalink
#92
Browse files Browse the repository at this point in the history
  • Loading branch information
augustearth committed May 12, 2022
1 parent 65eb4df commit c5d3fba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 118 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import org.yaml.snakeyaml.representer.Representer
*
*/
@ToString(excludes=['data'], includeNames=true)
class MappedDataTable extends DataTable implements MappedDataInterface {
class MappedDataTable extends DataTable {


///////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -442,18 +442,6 @@ class MappedDataTable extends DataTable implements MappedDataInterface {
}


/**
* Implementation of MappedDataInterface method.
*
*/
public void dataAdd(java.sql.ResultSet row, String idField, String dataFieldPrefix) {
assert toFieldName(idField) == this.idFieldName

def vals = toMap(row)
dataAddWithModifications(vals, [dataFieldPrefix:dataFieldPrefix])
}


/**
* Convert a java.sql.ResultSet to a Map<String,Object>.
*
Expand Down Expand Up @@ -741,20 +729,6 @@ class MappedDataTable extends DataTable implements MappedDataInterface {
return destFile
}



/**
* Implementation of MappedDataInterface method.
* Is expected to be called only be legacy code.
*
*/
public void writeToFile(Map args = [:]) {
log.warn "MappedDataTable writeToFile ignoring args: $args"
log.warn "MappedDataTable writing to ${Defaults.dataCacheDirectory}"
writeFiles(Defaults.dataCacheDirectory)
}


}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ class MappedDataTableSpec extends Specification {
///////////////////////////////////////////////////////////////////////////


def "dataAdd ResultSet dataFieldPrefix"() {
/*def "dataAdd ResultSet dataFieldPrefix"() {
given:
def mdt
def res
Expand Down Expand Up @@ -321,7 +321,7 @@ class MappedDataTableSpec extends Specification {
then:
mdt.data['id2'].size() == 2
}
}*/



Expand Down

0 comments on commit c5d3fba

Please sign in to comment.