Class DbQueryOutputField
java.lang.Object
tech.ailef.dbadmin.external.dbmapping.query.DbQueryOutputField
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanClass<?>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.inthashCode()booleanisBinary()Returns true if this field is a binary field (BLOB, etc.), only in the case the field has been mapped to a tablebooleanbooleanReturns true if this field is a foreign key, only in the case the field has been mapped to a tablebooleanisMapped()Returns true if this field is mapped to a tablebooleanReturns true if this field is a primary keyvoidsetResult(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
-