Skip navigation links
A B C D E F G H I K L M N O P Q R S T V W 

A

addColumn(String, String, Integer) - Method in class ch.brickwork.bsetl.db.TableStructure
 
addColumn(String, Function<Object[], Object>) - Method in class ch.brickwork.bsetl.sanitize.CorrelatedColumnsSanitizer
add a column, along with a rule how to build its value, given random components.
addColumnToBeSanitized(String, String, ValueSanitizer) - Method in class ch.brickwork.bsetl.sanitize.SanitizerConfiguration
 
addPreprocessor(Preprocessor) - Method in class ch.brickwork.bsetl.db.Db
add preprocessor which will be applied to any row being inserted on this connection
AhvNummerSanitizer - Class in ch.brickwork.bsetl.sanitize.constant.ch
returns a random Swiss social security number TODO: generate valid ones (last number is a checksum), cf.
AhvNummerSanitizer() - Constructor for class ch.brickwork.bsetl.sanitize.constant.ch.AhvNummerSanitizer
 
Animals - Class in ch.brickwork.bsetl.sanitize.constant.de
 
Animals() - Constructor for class ch.brickwork.bsetl.sanitize.constant.de.Animals
 
appendToFile(String) - Method in class ch.brickwork.bsetl.db.Db
append to file only

B

beginTransactionStatement() - Method in class ch.brickwork.bsetl.db.Db
 
beginTransactionStatement() - Method in class ch.brickwork.bsetl.db.PostgresDB
 
BinaryString - Class in ch.brickwork.bsetl.db
string wrapper not being a String by inheritance; such that mapping functions will not recognize as such and leave it alone (e.g.
BinaryString() - Constructor for class ch.brickwork.bsetl.db.BinaryString
 

C

ch.brickwork.bsetl.db - package ch.brickwork.bsetl.db
 
ch.brickwork.bsetl.db.exception - package ch.brickwork.bsetl.db.exception
 
ch.brickwork.bsetl.sanitize - package ch.brickwork.bsetl.sanitize
 
ch.brickwork.bsetl.sanitize.constant - package ch.brickwork.bsetl.sanitize.constant
 
ch.brickwork.bsetl.sanitize.constant.ch - package ch.brickwork.bsetl.sanitize.constant.ch
 
ch.brickwork.bsetl.sanitize.constant.de - package ch.brickwork.bsetl.sanitize.constant.de
 
ch.brickwork.bsetl.sanitize.exception - package ch.brickwork.bsetl.sanitize.exception
 
Cities - Class in ch.brickwork.bsetl.sanitize.constant.ch
 
Cities() - Constructor for class ch.brickwork.bsetl.sanitize.constant.ch.Cities
 
cleanDuplicates(String, String) - Method in class ch.brickwork.bsetl.db.Db
 
closeConnection() - Method in class ch.brickwork.bsetl.db.Db
 
Colors - Class in ch.brickwork.bsetl.sanitize.constant.de
 
Colors() - Constructor for class ch.brickwork.bsetl.sanitize.constant.de.Colors
 
COLORS - Static variable in class ch.brickwork.bsetl.sanitize.constant.de.Colors
 
commitStatement() - Method in class ch.brickwork.bsetl.db.Db
 
commitStatement() - Method in class ch.brickwork.bsetl.db.MSSQLDb
 
CompositeSanitizer - Class in ch.brickwork.bsetl.sanitize
 
CompositeSanitizer(String, ValueSanitizer...) - Constructor for class ch.brickwork.bsetl.sanitize.CompositeSanitizer
 
ConstantSanitizer - Class in ch.brickwork.bsetl.sanitize
 
ConstantSanitizer(Object) - Constructor for class ch.brickwork.bsetl.sanitize.ConstantSanitizer
 
copyTableFrom(String, Db) - Method in class ch.brickwork.bsetl.db.Db
 
copyView(String, Db) - Method in class ch.brickwork.bsetl.db.Db
 
CorrelatedColumnsSanitizer - Class in ch.brickwork.bsetl.sanitize
ValueSanitizer for 1..n columns where values must be built consistently accross within a row context
CorrelatedColumnsSanitizer(String[][], Function<Object[], Object>) - Constructor for class ch.brickwork.bsetl.sanitize.CorrelatedColumnsSanitizer
{ { "elvis", "chuck" }, // component 1 { "norris", "presely" }, // component 2 { "mymail.com", "music.com" }, // component 3 ...
countRows() - Method in class ch.brickwork.bsetl.db.Result
 
createOrReplaceTable(TableStructure) - Method in class ch.brickwork.bsetl.db.Db
 
createView(ViewStructure) - Method in class ch.brickwork.bsetl.db.Db
 

D

Db - Class in ch.brickwork.bsetl.db
A connection to a database
Db() - Constructor for class ch.brickwork.bsetl.db.Db
open connection to default, can be used for testing purposes and opens a H2 file DB connection to file default.h2
Db(String, String, String, String, File, int) - Constructor for class ch.brickwork.bsetl.db.Db
open connection to any database.
DbSanitizer - Class in ch.brickwork.bsetl.sanitize
A Preprocessor tailored to sanitize values within rows.
DbSanitizer(SanitizerConfiguration) - Constructor for class ch.brickwork.bsetl.sanitize.DbSanitizer
If rows can't be identified; means you will not be able to use contextual value sanitizers; if each row in your table has a unique key (may be composed), it is preferrable to use DbSanitizer(config, function)
DbSanitizer(SanitizerConfiguration, Function<Map<String, Object>, String>) - Constructor for class ch.brickwork.bsetl.sanitize.DbSanitizer
If each of your rows can be identified with a unique identifier (may be composed), this is the best constructor to use; if not, use the simple constructor.
dropTableIfExists(String) - Method in class ch.brickwork.bsetl.db.Db
 
dropViewIfExists(String) - Method in class ch.brickwork.bsetl.db.Db
 
dumpQuery(String) - Method in class ch.brickwork.bsetl.db.Db
 

E

EMOTIONAL_PREDICATES - Static variable in class ch.brickwork.bsetl.sanitize.constant.de.Emotions
 
Emotions - Class in ch.brickwork.bsetl.sanitize.constant.de
 
Emotions() - Constructor for class ch.brickwork.bsetl.sanitize.constant.de.Emotions
 
encode(String) - Method in class ch.brickwork.bsetl.db.Db
e.g.
encode(String) - Method in class ch.brickwork.bsetl.db.H2Db
 
encode(String) - Method in class ch.brickwork.bsetl.db.PostgresDB
 
escapedQuoteLiteral() - Method in class ch.brickwork.bsetl.db.Db
the escaped literal for the apostrophe used within a string; something like "''" or "\'"
execute(String) - Method in class ch.brickwork.bsetl.db.Db
run a SQL query without a result
executeQuery(String) - Method in class ch.brickwork.bsetl.db.Db
 

F

FEMALE_LANDSCAPE_PREDICATES - Static variable in class ch.brickwork.bsetl.sanitize.constant.de.Landscapes
 
FEMALE_LANDSCAPES - Static variable in class ch.brickwork.bsetl.sanitize.constant.de.Landscapes
 

G

getColumnNonNullValues(String) - Method in class ch.brickwork.bsetl.db.Result
 
getColumnValues(String) - Method in class ch.brickwork.bsetl.db.Result
 
getColumnValuesAsSQLSet(String) - Method in class ch.brickwork.bsetl.db.Result
convenient method to return the sql set obtained from the DB connection where this result was obtained from (cf.
getRowsAsMap() - Method in class ch.brickwork.bsetl.db.Result
get a list of maps, where each map represents a row of the result set, where key is the property name, and value is the value
getSanitizedColumns() - Method in class ch.brickwork.bsetl.sanitize.SanitizerConfiguration
 
getSanitizer(String, String) - Method in class ch.brickwork.bsetl.sanitize.SanitizerConfiguration
 
getSingleRowPropertyValue(String) - Method in class ch.brickwork.bsetl.db.Result
if you know there is one single row in the result, gets the value of a property
getTableStructure(String) - Method in class ch.brickwork.bsetl.db.Db
if used with connection-less dbs, returns first ever created definition of table, otherwise current defintion of table
getUntouchedColumns() - Method in class ch.brickwork.bsetl.sanitize.DbSanitizer
 
getViewStructure(String) - Method in class ch.brickwork.bsetl.db.Db
 

H

H2Db - Class in ch.brickwork.bsetl.db
 
H2Db() - Constructor for class ch.brickwork.bsetl.db.H2Db
 
H2Db(String, String, String, String, File, int) - Constructor for class ch.brickwork.bsetl.db.H2Db
 
HumanNames - Class in ch.brickwork.bsetl.sanitize.constant.de
 
HumanNames() - Constructor for class ch.brickwork.bsetl.sanitize.constant.de.HumanNames
 

I

insert(Result, String) - Method in class ch.brickwork.bsetl.db.Db
insert a result into table "targetTableName" on this connection.
insert(List<Map<String, Object>>, String) - Method in class ch.brickwork.bsetl.db.Db
insert a result into table "targetTableName" on this connection.
InternetDomains - Class in ch.brickwork.bsetl.sanitize.constant
 
InternetDomains() - Constructor for class ch.brickwork.bsetl.sanitize.constant.InternetDomains
 
isCharacterLike(String) - Method in class ch.brickwork.bsetl.db.Db
for a dataType, returns true if this is a "String-like" type, typically a VARCHAR.

K

key(String, String) - Static method in class ch.brickwork.bsetl.sanitize.SanitizerConfiguration
 

L

Landscapes - Class in ch.brickwork.bsetl.sanitize.constant.de
 
Landscapes() - Constructor for class ch.brickwork.bsetl.sanitize.constant.de.Landscapes
 

M

MALE_ANIMALS - Static variable in class ch.brickwork.bsetl.sanitize.constant.de.Animals
 
mapDataType(String) - Method in class ch.brickwork.bsetl.db.Db
when copying a table to this connection, the original data type (copied from an other connection with maybe a different DB system) can be mapped to an other datatype.
mapDataType(String) - Method in class ch.brickwork.bsetl.db.MSSQLDb
 
mapDataType(String) - Method in class ch.brickwork.bsetl.db.PostgresDB
 
mapValue(Object) - Method in class ch.brickwork.bsetl.db.Db
maps value if necessary; e.g.
mapValue(Object) - Method in class ch.brickwork.bsetl.db.MSSQLDb
 
mapValue(Object) - Method in class ch.brickwork.bsetl.db.PostgresDB
 
MapValueException - Exception in ch.brickwork.bsetl.db.exception
 
MapValueException(String) - Constructor for exception ch.brickwork.bsetl.db.exception.MapValueException
 
merge(Result, Result) - Static method in class ch.brickwork.bsetl.db.Result
 
MoreThanOneColumnPresentException - Class in ch.brickwork.bsetl.db.exception
 
MoreThanOneColumnPresentException() - Constructor for class ch.brickwork.bsetl.db.exception.MoreThanOneColumnPresentException
 
MoreThanOneRowPresentException - Class in ch.brickwork.bsetl.db.exception
 
MoreThanOneRowPresentException() - Constructor for class ch.brickwork.bsetl.db.exception.MoreThanOneRowPresentException
 
MoreThanOneRowPresentException(String) - Constructor for class ch.brickwork.bsetl.db.exception.MoreThanOneRowPresentException
 
MSSQLDb - Class in ch.brickwork.bsetl.db
 
MSSQLDb() - Constructor for class ch.brickwork.bsetl.db.MSSQLDb
 
MSSQLDb(String, String, String, String, File, int, boolean) - Constructor for class ch.brickwork.bsetl.db.MSSQLDb
 

N

NullSanitizer - Class in ch.brickwork.bsetl.sanitize
 
NullSanitizer() - Constructor for class ch.brickwork.bsetl.sanitize.NullSanitizer
 

O

OperationNotAllowedException - Exception in ch.brickwork.bsetl.db.exception
 
OperationNotAllowedException(String) - Constructor for exception ch.brickwork.bsetl.db.exception.OperationNotAllowedException
 

P

PDFBinarySanitizer - Class in ch.brickwork.bsetl.sanitize
 
PDFBinarySanitizer() - Constructor for class ch.brickwork.bsetl.sanitize.PDFBinarySanitizer
 
PersonSanitizer - Class in ch.brickwork.bsetl.sanitize
ValueSanitizer for human beings, having first and last names, ensuring that names and email addresses etc.
PersonSanitizer(String[], String[], String[], String[], boolean) - Constructor for class ch.brickwork.bsetl.sanitize.PersonSanitizer
 
PersonSanitizer(String[], String[], String[], String[], String[], String[], String[], boolean) - Constructor for class ch.brickwork.bsetl.sanitize.PersonSanitizer
 
pickAny(Object...) - Static method in class ch.brickwork.bsetl.sanitize.RandomElementFromSetSanitizer
 
PostgresDB - Class in ch.brickwork.bsetl.db
 
PostgresDB() - Constructor for class ch.brickwork.bsetl.db.PostgresDB
 
PostgresDB(String, String, String, String, File, int) - Constructor for class ch.brickwork.bsetl.db.PostgresDB
 
Preprocessor - Interface in ch.brickwork.bsetl.db
 
preprocessRow(String, Map<String, Object>) - Method in interface ch.brickwork.bsetl.db.Preprocessor
 
preprocessRow(String, Map<String, Object>) - Method in class ch.brickwork.bsetl.sanitize.DbSanitizer
 

Q

query(String) - Method in class ch.brickwork.bsetl.db.Db
run a SQL query where you know it generates a result set
quote(Object) - Static method in class ch.brickwork.bsetl.db.Db
simply quote a String-like object, e.g.
quoteIdentifierIfNecessary(String) - Method in class ch.brickwork.bsetl.db.Db
if some circumstances, table and column names themselves have to be quoted, e.g.
quoteIdentifierIfNecessary(String) - Method in class ch.brickwork.bsetl.db.H2Db
 
quoteIdentifierIfNecessary(String) - Method in class ch.brickwork.bsetl.db.PostgresDB
 
quoteIfNecessary(Object) - Method in class ch.brickwork.bsetl.db.Db
makes an acceptable literal out of object o.

R

random(Class<?>) - Static method in class ch.brickwork.bsetl.sanitize.RandomSanitizer
 
random(Class<?>, long, long, String, Integer) - Static method in class ch.brickwork.bsetl.sanitize.RandomSanitizer
 
RANDOM_MAIL_DOMAINS - Static variable in class ch.brickwork.bsetl.sanitize.constant.InternetDomains
 
RandomDictionnarySanitizer - Class in ch.brickwork.bsetl.sanitize
 
RandomDictionnarySanitizer(Stack<Object>) - Constructor for class ch.brickwork.bsetl.sanitize.RandomDictionnarySanitizer
 
RandomElementFromSetSanitizer - Class in ch.brickwork.bsetl.sanitize
 
RandomElementFromSetSanitizer(Object...) - Constructor for class ch.brickwork.bsetl.sanitize.RandomElementFromSetSanitizer
 
RandomSanitizer - Class in ch.brickwork.bsetl.sanitize
 
RandomSanitizer() - Constructor for class ch.brickwork.bsetl.sanitize.RandomSanitizer
 
RandomSanitizer(String) - Constructor for class ch.brickwork.bsetl.sanitize.RandomSanitizer
if original value is String, the hint will be included in the sanitized result, making the random code readable in context, e.g.
RandomSanitizer(long, long) - Constructor for class ch.brickwork.bsetl.sanitize.RandomSanitizer
 
RandomSanitizer(String, int) - Constructor for class ch.brickwork.bsetl.sanitize.RandomSanitizer
 
Result - Class in ch.brickwork.bsetl.db
an abstraction of the JDBC result set
Result(ResultSet, Db) - Constructor for class ch.brickwork.bsetl.db.Result
 

S

sanitize(Object, String, String) - Method in class ch.brickwork.bsetl.sanitize.CompositeSanitizer
 
sanitize(Object, String, String) - Method in class ch.brickwork.bsetl.sanitize.constant.ch.AhvNummerSanitizer
 
sanitize(Object, String, String) - Method in class ch.brickwork.bsetl.sanitize.ConstantSanitizer
 
sanitize(Object, String, String) - Method in class ch.brickwork.bsetl.sanitize.CorrelatedColumnsSanitizer
 
sanitize(Object, String, String) - Method in class ch.brickwork.bsetl.sanitize.PDFBinarySanitizer
 
sanitize(Object, String, String) - Method in class ch.brickwork.bsetl.sanitize.RandomDictionnarySanitizer
 
sanitize(Object, String, String) - Method in class ch.brickwork.bsetl.sanitize.RandomElementFromSetSanitizer
 
sanitize(Object, String, String) - Method in class ch.brickwork.bsetl.sanitize.RandomSanitizer
sanitizing a value by replacing Strings by random MD5-Hex token, numeric values (non-decimal) by random integer value, decimal values by random float
sanitize(Object, String, String) - Method in interface ch.brickwork.bsetl.sanitize.ValueSanitizer
sanitizes an originalValue, which is potentially sensitive, to a sanitized version, which is not sensitive
SanitizerConfiguration - Class in ch.brickwork.bsetl.sanitize
 
SanitizerConfiguration() - Constructor for class ch.brickwork.bsetl.sanitize.SanitizerConfiguration
 
shouldSanitize(String, String) - Method in class ch.brickwork.bsetl.sanitize.SanitizerConfiguration
 
singleColumnValues() - Method in class ch.brickwork.bsetl.db.Result
 
singleColumnValuesAsSQLSet() - Method in class ch.brickwork.bsetl.db.Result
return values of first column suitable for use in SQL IN clause
size() - Method in class ch.brickwork.bsetl.db.Result
 
SWISS_PLZ_CITY - Static variable in class ch.brickwork.bsetl.sanitize.constant.ch.Cities
 
switchExecuteQueryFile(File) - Method in class ch.brickwork.bsetl.db.Db
 

T

TableNotFoundException - Exception in ch.brickwork.bsetl.db.exception
 
TableNotFoundException(String) - Constructor for exception ch.brickwork.bsetl.db.exception.TableNotFoundException
 
TableStructure - Class in ch.brickwork.bsetl.db
 
TableStructure(String) - Constructor for class ch.brickwork.bsetl.db.TableStructure
 
tableStructureEntry(PropertyStructure) - Method in class ch.brickwork.bsetl.db.Db
generates a "line" entry in a CREATE TABLE statement
tableStructureEntry(PropertyStructure) - Method in class ch.brickwork.bsetl.db.MSSQLDb
 
TOP_GERMAN_LASTNAMES - Static variable in class ch.brickwork.bsetl.sanitize.constant.de.HumanNames
 
TOP_SWISS_FIRSTNAMES - Static variable in class ch.brickwork.bsetl.sanitize.constant.de.HumanNames
 
toSQLSet(Set) - Method in class ch.brickwork.bsetl.db.Db
turns a set of objects into a set of the form
toString() - Method in class ch.brickwork.bsetl.db.BinaryString
 
TypeNotSanitizableException - Exception in ch.brickwork.bsetl.sanitize.exception
 
TypeNotSanitizableException(String) - Constructor for exception ch.brickwork.bsetl.sanitize.exception.TypeNotSanitizableException
 

V

ValueSanitizer - Interface in ch.brickwork.bsetl.sanitize
 
ViewStructure - Class in ch.brickwork.bsetl.db
 
ViewStructure() - Constructor for class ch.brickwork.bsetl.db.ViewStructure
 
vLookUp(String, Object, String) - Method in class ch.brickwork.bsetl.db.Result
 

W

wherePropertyIn(String, Set) - Method in class ch.brickwork.bsetl.db.Db
for a list of elements, returns a clause like
wrap(Object) - Method in class ch.brickwork.bsetl.db.Db
based on type of object, maps, quotes and encodes properly.
A B C D E F G H I K L M N O P Q R S T V W 
Skip navigation links

Copyright © 2021. All rights reserved.