Skip to content

Gloop Model Icon

Gloop Models

Gloop Models are used by Gloop to store integration data in memory1 while your integrations are running. They are very good at reading and writing themselves to and from XML, JSON, YAML, common flat file formats2, SQL databases via SQL services, and others more. They are also great at automatically converting various types of Java objects into the type the Gloop Object itself expects3.

Gloop Models, like Java objects, contain properties4. They are analogous to JavaBeans in that they are basically objects comprised of properties such as Strings, Integers, Dates, Booleans, and so on. However, Gloop Model properties are also Gloop Objects. Gloop Objects contain extra functionality and a common set of properties to make configuring Gloop Objects easier. Below is a list of the types of Gloop Objects available in alphabetical order and their counterparts in Java:

Gloop Object Type Wrapped Java Equivalent
BigDecimal java.math.BigDecimal
BigInteger java.math.BigInteger
Boolean java.lang.Boolean
Byte java.lang.Byte
ByteArray byte[]
Character java.lang.Character
Date java.util.Date
Double java.lang.Double
Float java.lang.Float
Integer java.lang.Integer
Long java.lang.Long
Model N/A
Object java.lang.Object
Short java.lang.Short
String java.lang.String

Gloop + Groovy = ❤️

Gloop Models are also very easy to manipulate using Groovy code. The code you would write to work with JavaBeans and Gloop Models is the same. For example, the code below works for JavaBeans and Gloop Models:

// Say you have a JavaBean with a property called stringProperty 
// or a Gloop Model with a property called stringProperty
myJavaBeanOrGloopModel.stringProperty = 'World!'
println "Hello, ${myJavaBeanOrGloopModel.stringProperty}!"

// Add an entry to a Gloop Model or JavaBean array property:
myJavaBeanOrGloopModel.myStringArray << 'Earth!'

Creating Gloop Models

Coder allows you to create new Gloop Models from scratch or by using a variety of existing data sources such as:

To create a new Gloop Model, right-click anywhere in the Coder Navigator under a package code directory, select New, then choose Gloop Model.

Coder Studio New Model

Coder Gloop New Model


You can also press ⌘N for Windows or Linux in Coder Studio to open the New... dialog.

  1. like Java objects 

  2. such as CSV and fixed width text files with the help of Gloop Services 

  3. such as File to InputStream, String to Integer, etc. 

  4. or in OOP, member variables