public class FilemakerWritingExample extends Object
Constructor and Description |
---|
FilemakerWritingExample() |
Modifier and Type | Method and Description |
---|---|
protected static DatabaseType |
createDatabase()
Create a
DatabaseType with some example data. |
protected static MetaDataType |
createMetaData()
Create a
MetaDataType with some example data. |
protected static ProductType |
createProduct()
Create a
ProductType with some example data. |
protected static ResultSetType |
createResultSet()
Create a
ResultSetType with some example data. |
protected static ResultSetType.ROW |
createResultSetRow(long id,
Number numberOfRooms,
Number price,
String description)
Create a
ResultSetType.ROW with some example data. |
static void |
main(String[] args)
Start the example application.
|
protected static void |
write(FilemakerResultDocument doc,
File file)
Write a
FilemakerResultDocument into a File . |
protected static void |
write(FilemakerResultDocument doc,
OutputStream output)
Write a
FilemakerResultDocument into an OutputStream . |
protected static void |
write(FilemakerResultDocument doc,
Writer output)
Write a
FilemakerResultDocument into a Writer . |
protected static void |
writeToConsole(FilemakerResultDocument doc)
Write a
FilemakerResultDocument into a String and print the
results to the console. |
public static void main(String[] args)
args
- command line argumentsprotected static DatabaseType createDatabase()
DatabaseType
with some example data.protected static MetaDataType createMetaData()
MetaDataType
with some example data.protected static ProductType createProduct()
ProductType
with some example data.protected static ResultSetType createResultSet()
ResultSetType
with some example data.protected static ResultSetType.ROW createResultSetRow(long id, Number numberOfRooms, Number price, String description)
ResultSetType.ROW
with some example data.id
- id of the recordnumberOfRooms
- value for number of roomsprice
- value for pricedescription
- value for descriptionprotected static void write(FilemakerResultDocument doc, File file)
FilemakerResultDocument
into a File
.doc
- the document to writefile
- the file, where the document is written toprotected static void write(FilemakerResultDocument doc, OutputStream output)
FilemakerResultDocument
into an OutputStream
.doc
- the document to writeoutput
- the stream, where the document is written toprotected static void write(FilemakerResultDocument doc, Writer output)
FilemakerResultDocument
into a Writer
.doc
- the document to writeoutput
- the writer, where the document is written toprotected static void writeToConsole(FilemakerResultDocument doc)
FilemakerResultDocument
into a String
and print the
results to the console.doc
- the document to writeCopyright © 2017 OpenEstate. All rights reserved.