Tabnine Logo
DomainRelation.getFirstRole
Code IndexAdd Tabnine to your IDE (free)

How to use
getFirstRole
method
in
pt.ist.fenixframework.dml.DomainRelation

Best Java code snippets using pt.ist.fenixframework.dml.DomainRelation.getFirstRole (Showing top 4 results out of 315)

origin: fenix-framework/fenix-framework

public boolean isFirstRole() {
  return relation.getFirstRole() == this;
}
origin: fenix-framework/fenix-framework

public Role getOtherRole() {
  return (isFirstRole() ? relation.getSecondRole() : relation.getFirstRole());
}
origin: fenix-framework/fenix-framework

private static boolean is1toNRelation(DomainRelation domRelation) {
  int multiplicity1 = domRelation.getFirstRole().getMultiplicityUpper();
  int multiplicity2 = domRelation.getSecondRole().getMultiplicityUpper();
  return ((multiplicity1 == 1) && (multiplicity2 != 1)) || ((multiplicity1 != 1) && (multiplicity2 == 1));
}
origin: fenix-framework/fenix-framework

if (is1toNRelation(relation)) {
    ClassDescriptor clazz = getOtherRoleClassDescriptor(relation.getFirstRole());
    SQLTableChangeSet change = changes.get(clazz.getFullTableName());
    change.addIndex(relation.getFirstRole());
pt.ist.fenixframework.dmlDomainRelationgetFirstRole

Popular methods of DomainRelation

  • getName
  • getSecondRole
  • <init>
  • addRole
  • addSlot
  • copyRolesInto
  • countRoles
  • getFullName
  • getRoles
  • getSuperclass
  • getSuperrelation
  • getSuperrelation

Popular in Java

  • Making http post requests using okhttp
  • setContentView (Activity)
  • requestLocationUpdates (LocationManager)
  • runOnUiThread (Activity)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Option (scala)
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now