public class SourceColumn extends Object
Modifier and Type | Field and Description |
---|---|
static String |
IDENTITY_DATATYPE |
static String |
LDM_IDENTITY |
static String |
LDM_SORT_ORDER_ASC |
static String |
LDM_SORT_ORDER_DESC |
static String |
LDM_TYPE_ATTRIBUTE |
static String |
LDM_TYPE_CONNECTION_POINT |
static String |
LDM_TYPE_DATE |
static String |
LDM_TYPE_FACT |
static String |
LDM_TYPE_HYPERLINK |
static String |
LDM_TYPE_IGNORE |
static String |
LDM_TYPE_LABEL |
static String |
LDM_TYPE_REFERENCE |
Constructor and Description |
---|
SourceColumn(String name,
String ldmType,
String title)
Constructor
|
SourceColumn(String name,
String ldmType,
String title,
String folder)
Constructor
|
SourceColumn(String name,
String ldmType,
String title,
String folder,
String pk)
SourceColumn constructor
|
SourceColumn(String name,
String ldmType,
String title,
String folder,
String pk,
String pkSchema)
SourceColumn constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
boolean |
equalsToLabel(SourceColumn other)
Returns true if both columns are any of LABEL or HYPERLINK and their other
properties are the same.
|
String |
getDataType()
Column's datatype
|
String |
getDatetime()
Include time
|
String |
getFolder()
Column's folder getter
|
String |
getFormat()
Format getter
|
String |
getLdmType()
Column's LDM type getter
|
String |
getName()
Column's name getter
|
String |
getReference()
LABEL's or REFERENCE's primary source column getter.
|
String |
getSchemaReference()
LABEL's, DATE's or REFERENCE's primary source schema getter
|
String |
getSortLabel() |
String |
getSortOrder() |
String |
getTitle()
Column's title getter
|
String |
getTransformation()
Transformation
|
int |
hashCode() |
boolean |
isDateFact() |
boolean |
isDatetime() |
boolean |
isTimeFact() |
void |
setDataType(String dataType) |
void |
setDateFact(boolean dateFact) |
void |
setDatetime(String datetime) |
void |
setFolder(String folder)
Column's folder setter
|
void |
setFormat(String format)
Format setter
|
void |
setLdmType(String ldmType)
Column's LDM type setter
|
void |
setName(String nm)
Column's name setter
|
void |
setReference(String reference)
LABEL's or REFERENCE's primary source column setter
|
void |
setSchemaReference(String pks)
LABEL's or REFERENCE's primary source schema setter
|
void |
setSortLabel(String sortLabel) |
void |
setSortOrder(String sortOrder) |
void |
setTimeFact(boolean timeFact) |
void |
setTitle(String title)
Column's title setter
|
void |
setTransformation(String transformation) |
String |
toString() |
void |
validate()
Validates the source column
|
public static final String LDM_TYPE_ATTRIBUTE
public static final String LDM_TYPE_FACT
public static final String LDM_TYPE_LABEL
public static final String LDM_TYPE_DATE
public static final String LDM_TYPE_CONNECTION_POINT
public static final String LDM_TYPE_REFERENCE
public static final String LDM_TYPE_HYPERLINK
public static final String LDM_SORT_ORDER_ASC
public static final String LDM_SORT_ORDER_DESC
public static final String LDM_TYPE_IGNORE
public static final String LDM_IDENTITY
public static final String IDENTITY_DATATYPE
public SourceColumn(String name, String ldmType, String title, String folder, String pk, String pkSchema)
name
- columna nameldmType
- column LDM typetitle
- column typefolder
- column folderpk
- LABEL's OR REFERENCE's primary source columnpkSchema
- LABEL's OR REFERENCE's primary source schemapublic SourceColumn(String name, String ldmType, String title, String folder, String pk)
name
- columna nameldmType
- column LDM typetitle
- column typefolder
- column folderpk
- LABELs primary attributepublic SourceColumn(String name, String ldmType, String title, String folder)
name
- column nameldmType
- LDM typetitle
- titlefolder
- enclosing folderModelException
- issue with a model consistencypublic SourceColumn(String name, String ldmType, String title)
name
- column nameldmType
- LDM typetitle
- titleModelException
- issue with a model consistencypublic String getName()
public void setName(String nm)
nm
- column's namepublic String getLdmType()
public void setLdmType(String ldmType)
ldmType
- column's LDM type (ATTRIBUTE | LABEL | FACT)public String getReference()
setReference(String)
public void setReference(String reference)
reference
- LABEL's or REFERENCE's primary source columnpublic String getSchemaReference()
setSchemaReference(String)
public void setSchemaReference(String pks)
pks
- LABEL's or REFERENCE's primary source schemapublic String getTitle()
public void setTitle(String title)
title
- column's titlepublic String getFolder()
public void setFolder(String folder)
folder
- column's folderpublic String getFormat()
public void setFormat(String format)
format
- column formatpublic String getDataType()
public void setDataType(String dataType)
public String getSortLabel()
public void setSortLabel(String sortLabel)
public String getSortOrder()
public void setSortOrder(String sortOrder)
public String getDatetime()
public boolean isDatetime()
public void setDatetime(String datetime)
public void validate() throws ModelException
ModelException
- in case of a validation errorpublic boolean equalsToLabel(SourceColumn other)
public String getTransformation()
public void setTransformation(String transformation)
public boolean isDateFact()
public void setDateFact(boolean dateFact)
public boolean isTimeFact()
public void setTimeFact(boolean timeFact)
Copyright © 2014. All rights reserved.