Follow the links below to browse sample Javadoc for MJ classes and tools, including the MJ Runtime Library.
Classify data by content and by usage in MAPPER application.
Classes and Interfaces | |
DataTypeBase | Base class for data type classes, defines commonalities. |
DataTypeHibernateFactory | Simple factory class that converts Hibernate data types to IDataType
implementations. |
IDataType | Defines a data type supported by MJ. |
IntegerType | Represents an integer data type. |
LongType | Represents an long integer data type. |
MaprptDataType | The most fundamental data types supported natively by Mapper (note that date and time are supported as numeric or string types in Mapper and manipulated by special commands and functions). |
MaprptUsageDataType | Modifies the fundamental data types supported natively by Mapper to describe the actual or implied format and/or usage of the data (as column or variable) in a Mapper RUN. |
NoopType | Represents an noop (pass-thru string) data type. |
public abstract class com.arsi.mj.datatype.DataTypeBase
extends java.lang.Object
Fields |
Hibernate type associated with this data type.protected final org.hibernate.type.BasicType type
|
Constructors |
Restricted ctor for initializing an instance of this class.
protected DataTypeBase(org.hibernate.type.BasicType aType)
|
Methods |
public boolean equals(java.lang.Object anObject)
|
Get the Hibernate type associated with this data type.
public org.hibernate.type.BasicType getType()
|
public int hashCode()
|
IDataType
implementations. This class is a singleton.
public class com.arsi.mj.datatype.DataTypeHibernateFactory
extends java.lang.Object
Constructors |
public DataTypeHibernateFactory()
|
Methods |
Get data type as IDataType implementation from Hibernate type
based on Spring configuration.
public com.arsi.mj.datatype.IDataType dataTypeFromHibernateType(org.springframework.context.ApplicationContext anAppCtx, org.hibernate.type.BasicType aHibernateType)
|
Get previously created singleton instance of this class.
public static synchronized com.arsi.mj.datatype.DataTypeHibernateFactory getInstance()
|
<T>
- native type as a Java type wrapper class (e.g., Integer
)
or standard JDK type (e.g., String
, BigDecimal
)<F>
- java.text.Format
-derived class for converting native type to
string value for loading into database via ETL script. For example, a
SimpleDateFormat
is an appropriate formatter for native type
java.util.Date
.
public interface com.arsi.mj.datatype.IDataType
Methods |
Convert a native value of this type into another native type.
public java.lang.Object convertTo(java.lang.Object aValue, org.hibernate.type.BasicType aType)
|
Get Format -derived instance that render a native value of this type into
a string suitable for loading into the database using an ETL script.
public java.text.Format getEtlOutputFormat()
|
Get the Hibernate type of this data type, which must be one of these:
public org.hibernate.type.BasicType getType()
|
public class com.arsi.mj.datatype.IntegerType
extends com.arsi.mj.datatype.DataTypeBase
implements com.arsi.mj.datatype.IDataType
Methods |
public java.lang.Object convertTo(java.lang.Integer aValue, org.hibernate.type.BasicType aType)
|
public java.text.DecimalFormat getEtlOutputFormat()
|
Set Format -derived instance that render a native value of this type into
a string suitable for loading into the database using an ETL script.
public void setEtlOutputFormat(java.text.DecimalFormat aFmt)
|
public class com.arsi.mj.datatype.LongType
extends com.arsi.mj.datatype.DataTypeBase
implements com.arsi.mj.datatype.IDataType
Methods |
public java.lang.Object convertTo(java.lang.Long aValue, org.hibernate.type.BasicType aType)
|
public java.text.DecimalFormat getEtlOutputFormat()
|
Set Format -derived instance that render a native value of this type into
a string suitable for loading into the database using an ETL script.
public void setEtlOutputFormat(java.text.DecimalFormat aFmt)
|
public final class com.arsi.mj.datatype.MaprptDataType
extends java.lang.Enum
Fields |
public static final com.arsi.mj.datatype.MaprptDataType FLOAT
|
public static final com.arsi.mj.datatype.MaprptDataType INTEGER
|
public static final com.arsi.mj.datatype.MaprptDataType STRING
|
Methods |
public static com.arsi.mj.datatype.MaprptDataType valueOf(java.lang.String name)
|
public static com.arsi.mj.datatype.MaprptDataType values()
|
public final class com.arsi.mj.datatype.MaprptUsageDataType
extends java.lang.Enum
Methods |
Given a data type, return corresponding usage data type.
public static com.arsi.mj.datatype.MaprptUsageDataType fromDataType(com.arsi.mj.datatype.MaprptDataType aDataType)
|
Given a shorthand date specification, return corresponding usage data type.
public static com.arsi.mj.datatype.MaprptUsageDataType fromDateSpecD_n(java.lang.String aDnSpec)
|
Given a shorthand time specification, return corresponding usage data type.
public static com.arsi.mj.datatype.MaprptUsageDataType fromTimeSpecT_n(java.lang.String aTnSpec)
|
Get Mapper data type that is most similar to, or is typically employed to
store, the corresponding usage data type.
public com.arsi.mj.datatype.MaprptDataType getMostSimilarDataType()
|
Is this usage data type considered to be a type of date?public boolean isDate()
|
Is this usage data type considered to be a type of time?public boolean isTime()
|
public static com.arsi.mj.datatype.MaprptUsageDataType valueOf(java.lang.String name)
|
public static com.arsi.mj.datatype.MaprptUsageDataType values()
|
public class com.arsi.mj.datatype.NoopType
extends com.arsi.mj.datatype.DataTypeBase
implements com.arsi.mj.datatype.IDataType
Constructors |
Restricted ctor for initializing an instance of this class.public NoopType()
|
Methods |
public java.lang.Object convertTo(java.lang.String aValue, org.hibernate.type.BasicType aType)
|
public java.text.MessageFormat getEtlOutputFormat()
|
Set Format -derived instance that render a native value of this type into
a string suitable for loading into the database using an ETL script.
public void setEtlOutputFormat(java.text.MessageFormat aFmt)
|