Class DbQueryOutputField
java.lang.Object
tech.ailef.dbadmin.external.dbmapping.query.DbQueryOutputField
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Class<?>
Returns the Java class of the field, if mapped to a table columnReturns the Java name of the field, if mapped to a table columngetName()
Returns the column name of the fieldgetTable()
Returns the table name of the fieldgetType()
Returns the type of the field.int
hashCode()
boolean
isBinary()
Returns true if this field is a binary field (BLOB, etc.), only in the case the field has been mapped to a tableboolean
boolean
Returns true if this field is a foreign key, only in the case the field has been mapped to a tableboolean
isMapped()
Returns true if this field is mapped to a tableboolean
Returns true if this field is a primary keyvoid
setResult
(DbQueryResultRow result) Sets the row object this field belongs to
-
Constructor Details
-
DbQueryOutputField
-
-
Method Details
-
getName
Returns the column name of the field- Returns:
-
getTable
Returns the table name of the field- Returns:
-
isPrimaryKey
public boolean isPrimaryKey()Returns true if this field is a primary key- Returns:
-
isForeignKey
public boolean isForeignKey()Returns true if this field is a foreign key, only in the case the field has been mapped to a table -
isExportable
public boolean isExportable() -
getConnectedType
-
isBinary
public boolean isBinary()Returns true if this field is a binary field (BLOB, etc.), only in the case the field has been mapped to a table- Returns:
-
isMapped
public boolean isMapped()Returns true if this field is mapped to a table- Returns:
-
getType
Returns the type of the field. If the field has been mapped to a table column returns the type of the column, otherwise tries to parse the field field type from the raw value returned by the database.- Returns:
-
getJavaName
Returns the Java name of the field, if mapped to a table column- Returns:
-
getEntityClassName
Returns the Java class of the field, if mapped to a table column- Returns:
-
setResult
Sets the row object this field belongs to- Parameters:
result
-
-
hashCode
public int hashCode() -
equals
-