java/sql-dk/src/main/java/info/globalcode/sql/dk/formatting/FormatterContext.java
branchv_0
changeset 246 277c18b48762
parent 238 4a1864c3e867
child 250 aae5009bd0af
equal deleted inserted replaced
245:b6ff5b7a8422 246:277c18b48762
    17  */
    17  */
    18 package info.globalcode.sql.dk.formatting;
    18 package info.globalcode.sql.dk.formatting;
    19 
    19 
    20 import info.globalcode.sql.dk.configuration.Properties;
    20 import info.globalcode.sql.dk.configuration.Properties;
    21 import java.io.OutputStream;
    21 import java.io.OutputStream;
       
    22 import java.util.List;
    22 
    23 
    23 /**
    24 /**
    24  * To be passed from the SQL-DK core to the formatter.
    25  * To be passed from the SQL-DK core to the formatter.
    25  *
    26  *
    26  * @author Ing. František Kučera (frantovo.cz)
    27  * @author Ing. František Kučera (frantovo.cz)
    27  */
    28  */
    28 public class FormatterContext {
    29 public class FormatterContext {
    29 
    30 
    30 	private OutputStream outputStream;
    31 	private OutputStream outputStream;
    31 	private Properties properties;
    32 	private Properties properties;
       
    33 	private List<String> relationNames;
    32 
    34 
    33 	public FormatterContext(OutputStream outputStream, Properties properties) {
    35 	public FormatterContext(OutputStream outputStream, Properties properties, List<String> relationNames) {
    34 		this.outputStream = outputStream;
    36 		this.outputStream = outputStream;
    35 		this.properties = properties;
    37 		this.properties = properties;
       
    38 		this.relationNames = relationNames;
    36 	}
    39 	}
    37 
    40 
    38 	public OutputStream getOutputStream() {
    41 	public OutputStream getOutputStream() {
    39 		return outputStream;
    42 		return outputStream;
    40 	}
    43 	}
    44 	}
    47 	}
    45 
    48 
    46 	public void setProperties(Properties properties) {
    49 	public void setProperties(Properties properties) {
    47 		this.properties = properties;
    50 		this.properties = properties;
    48 	}
    51 	}
       
    52 
       
    53 	public List<String> getRelationNames() {
       
    54 		return relationNames;
       
    55 	}
       
    56 
       
    57 	public void setOutputStream(OutputStream outputStream) {
       
    58 		this.outputStream = outputStream;
       
    59 	}
       
    60 
    49 }
    61 }