public class Entity extends DataObjectDescription implements DSTableIFace
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COLUMNMAJOR
static variable for COLUMNMAJOR tables
|
static java.lang.String |
GZIP |
static java.lang.String |
OTHERENTITY |
static java.lang.String |
ROWMAJOR
static variable for ROWMAJOR tables
|
static java.lang.String |
SPATIALRASTERENTITY |
static java.lang.String |
SPATIALVECTORENTITY |
static java.lang.String |
STOREDPROCEDUREENTITY |
static java.lang.String |
TABLEENTITY
static variable for table type
|
static java.lang.String |
TAR |
static java.lang.String |
VIEWENTITY |
static java.lang.String |
ZIP |
dataType, definition, id, missingValueCode, name
Constructor and Description |
---|
Entity(java.lang.String id,
java.lang.String name,
java.lang.String description,
AttributeList attributeList)
Construct a TableEntity, setting the list of attributes.
|
Entity(java.lang.String id,
java.lang.String name,
java.lang.String description,
java.lang.Boolean caseSensitive,
java.lang.String orientation,
int numRecords)
construct this object with some extra parameters
|
Modifier and Type | Method and Description |
---|---|
void |
add(Attribute a)
Add an Attribute to this table.
|
Attribute[] |
getAttributes()
Return the unit for this TableEntity
|
java.lang.Boolean |
getCaseSensitive()
indicates whether the tableEntity is caseSensitive or not
|
boolean |
getCollapseDelimiter()
Method to get if this entity can collapse consecutive delimiter
|
java.lang.String |
getCompressionMethod()
Method to get compression method for distribution file
|
DataCacheObject |
getDataCacheObject()
Method to get data cache item associated with this entity
|
TextComplexDataFormat[] |
getDataFormatArray()
Get the complex data format array
|
java.lang.String |
getDBTableName() |
java.lang.String |
getDelimiter()
get the delimiter used with this entity
|
java.util.Vector |
getFields()
Returns a Vector of the fields in the table
|
java.lang.String |
getFileName()
Returns the fileName.
|
boolean |
getHasGZipDataFile()
Method to get if the data file is gzip
|
boolean |
getHasTarDataFile()
Method to get if this has a tar data file
|
boolean |
getHasZipDataFile()
Method get if the data file is zip file
|
boolean |
getIsImageEntity()
If this entity for SpatialRaster or SpatialVector
|
java.lang.String |
getMappedName()
Return the name for this data item.
|
int |
getNumFooterLines()
get the number of footer lines in the entity
|
int |
getNumHeaderLines()
get the number of header lines in the entity
|
int |
getNumRecords()
gets the number of records in the table entity
|
java.lang.String |
getOrientation()
gets the orientation of the table entity
|
java.lang.String |
getPhysicalLineDelimiter() |
DSTableKeyIFace |
getPrimaryKey()
Returns a the Primary Key Definition for the table
|
java.lang.String |
getRecordDelimiter()
get the recordDelimiter used with this entity
|
java.lang.String |
getURL() |
boolean |
isDownloadable()
Return this entity is downloadable or not.
|
boolean |
isMultiple()
Returns multiple.
|
boolean |
isSimpleDelimited()
If data file in this entity is simple delimited
|
void |
setAttributeList(AttributeList list)
Method to set attribute list
|
void |
setCollaplseDelimiter(boolean collapseDelimiter)
Method to set collapse delimiter
|
void |
setCompressionMethod(java.lang.String compressionMethod)
Method to set compression method for distribution file
|
void |
setDataCacheObject(DataCacheObject dataCacheObject)
Method to set a cache data item associate with this entity
|
void |
setDataFormatArray(TextComplexDataFormat[] dataFormatArray)
Set DataFormatArray
|
void |
setDBTableName(java.lang.String DBtableName) |
void |
setDelimiter(java.lang.String delim)
set the delimiter used with this entity
|
void |
setDownloadable(boolean isDownloadable)
Set this entity downloadable or not. f the value of function attribute in
url is "information", this entity wouldn't be downloaded
|
void |
setFileName(java.lang.String fileName)
Sets the fileName.
|
void |
setHasGZipDataFile(boolean hasGZipDataFile)
Method to set if the data file is gzip
|
void |
setHasTarDataFile(boolean hasTarDataFile)
Method to set if this has a tar data file
|
void |
setHasZipDataFile(boolean isZipDataFile)
Method to set if the data file is zip file
|
void |
setIsImageEntity(boolean isImageEntity)
Set if this is a Image entity
|
void |
setMultiple()
Sets the multiple to true.
|
void |
setNumFooterLines(int numFooterLines)
set the number of footer lines in the entity
|
void |
setNumHeaderLines(int numHeaderLines)
sets the number of header lines in the entity
|
void |
setPhysicalLineDelimiter(java.lang.String physicalLineDelimiter) |
void |
setRecordDelimiter(java.lang.String delim)
set the record delimiter used with this entity
|
void |
setSimpleDelimited(boolean simpleDelimited) |
void |
setURL(java.lang.String url) |
java.lang.String |
toXml()
Serialize the data item in XML format.
|
addMissingValueCode, appendElement, equals, getDataType, getDefinition, getId, getMissingValueCode, getName, setDataType, setDefinition, setId, setMissingValueCode, setName, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName
public static java.lang.String ROWMAJOR
public static java.lang.String COLUMNMAJOR
public static java.lang.String ZIP
public static java.lang.String TAR
public static java.lang.String GZIP
public static final java.lang.String TABLEENTITY
public static final java.lang.String SPATIALRASTERENTITY
public static final java.lang.String SPATIALVECTORENTITY
public static final java.lang.String STOREDPROCEDUREENTITY
public static final java.lang.String VIEWENTITY
public static final java.lang.String OTHERENTITY
public Entity(java.lang.String id, java.lang.String name, java.lang.String description, java.lang.Boolean caseSensitive, java.lang.String orientation, int numRecords)
name
- the name of the tableEntitydescription
- the description of the tableEntitycaseSensitive
- indicates whether this tableEntity is caseSensitive or not.orientation
- indicates whether this tableEntity is column or row majornumRecords
- the number of records in this tableEntitypublic Entity(java.lang.String id, java.lang.String name, java.lang.String description, AttributeList attributeList)
public Attribute[] getAttributes()
public java.lang.Boolean getCaseSensitive()
public java.lang.String getOrientation()
public int getNumRecords()
public void setNumHeaderLines(int numHeaderLines)
public void setNumFooterLines(int numFooterLines)
numFooterLines
- public int getNumHeaderLines()
public int getNumFooterLines()
public void setDelimiter(java.lang.String delim)
public java.lang.String getDelimiter()
public void setRecordDelimiter(java.lang.String delim)
public java.lang.String getRecordDelimiter()
public void setURL(java.lang.String url)
public java.lang.String getURL()
public void setDBTableName(java.lang.String DBtableName)
public java.lang.String getDBTableName()
public boolean getCollapseDelimiter()
public void setCollaplseDelimiter(boolean collapseDelimiter)
collapseDelimiter
- public java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
fileName
- The fileName to setpublic java.lang.String toXml()
public void setMultiple()
public boolean isMultiple()
public java.lang.String getMappedName()
getMappedName
in interface DSTableIFace
public java.util.Vector getFields()
getFields
in interface DSTableIFace
public DSTableKeyIFace getPrimaryKey()
getPrimaryKey
in interface DSTableIFace
public java.lang.String getCompressionMethod()
public void setCompressionMethod(java.lang.String compressionMethod)
compressionMethod
- Stringpublic boolean getIsImageEntity()
public void setIsImageEntity(boolean isImageEntity)
isImageEntity
- booleanpublic boolean getHasZipDataFile()
public void setHasZipDataFile(boolean isZipDataFile)
isZipDataFile
- booleanpublic boolean getHasGZipDataFile()
public void setHasGZipDataFile(boolean hasGZipDataFile)
hasGZipDataFile
- booleanpublic boolean getHasTarDataFile()
public void setHasTarDataFile(boolean hasTarDataFile)
hasTarDataFile
- booleanpublic DataCacheObject getDataCacheObject()
public void setDataCacheObject(DataCacheObject dataCacheObject)
dataCacheObject
- DataCachObjectpublic boolean isSimpleDelimited()
public void setSimpleDelimited(boolean simpleDelimited)
simpleDelimited
- The simpleDelimited to set.public TextComplexDataFormat[] getDataFormatArray()
public void setDataFormatArray(TextComplexDataFormat[] dataFormatArray)
dataFormatArray
- The dataFormatArray to set.public java.lang.String getPhysicalLineDelimiter()
public void setPhysicalLineDelimiter(java.lang.String physicalLineDelimiter)
physicalLineDelimiter
- The physicalLineDelimiter to set.public void setAttributeList(AttributeList list)
list
- public boolean isDownloadable()
public void setDownloadable(boolean isDownloadable)
isDownloadable
-