mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
28 lines
618 B
Java
28 lines
618 B
Java
package io.ebeaninternal.server.query;
|
|
|
|
import io.ebean.bean.EntityBean;
|
|
import io.ebeaninternal.server.type.ScalarDataReader;
|
|
|
|
public interface STreePropertyAssocOne extends STreePropertyAssoc {
|
|
|
|
/**
|
|
* Return true if the property is an Id.
|
|
*/
|
|
boolean isAssocId();
|
|
|
|
/**
|
|
* Return the scalar type of the associated id property.
|
|
*/
|
|
ScalarDataReader<?> getIdReader();
|
|
|
|
/**
|
|
* Returns true, if this relation has a foreign key.
|
|
*/
|
|
boolean hasForeignKey();
|
|
|
|
/**
|
|
* Return the property value as an entity bean from the parent.
|
|
*/
|
|
EntityBean getValueAsEntityBean(EntityBean parentBean);
|
|
}
|