Tabnine Logo
Role.getRelation
Code IndexAdd Tabnine to your IDE (free)

How to use
getRelation
method
in
pt.ist.fenixframework.dml.Role

Best Java code snippets using pt.ist.fenixframework.dml.Role.getRelation (Showing top 5 results out of 315)

origin: fenix-framework/fenix-framework

protected String getRelationMethodNameFor(Role role, boolean direct) {
  // when the two roles of a relation are played by the same class, 
  // we need to give different names to the relation slots because both
  // will be in the same class
  return "getRelation" + role.getRelation().getName() + "()" + (direct ? "" : ".getInverseRelation()");
}
origin: fenix-framework/fenix-framework

private static void generateManyToManyCollectionDescriptor(CollectionDescriptor collectionDescriptor, Role role) {
  String indirectionTableName = DbUtil.convertToDBStyle(role.getRelation().getName());
  String fkToItemClass = DbUtil.getFkName(role.getType().getName());
  String fkToThisClass = DbUtil.getFkName(role.getOtherRole().getType().getName());
  if (fkToItemClass.equals(fkToThisClass)) {
    fkToItemClass = fkToItemClass + "_" + DbUtil.convertToDBStyle(role.getName());
    fkToThisClass = fkToThisClass + "_" + DbUtil.convertToDBStyle(role.getOtherRole().getName());
  }
  collectionDescriptor.setIndirectionTable(indirectionTableName);
  collectionDescriptor.addFkToItemClass(fkToItemClass);
  collectionDescriptor.addFkToThisClass(fkToThisClass);
  collectionDescriptor.setCascadingDelete(ObjectReferenceDescriptor.CASCADE_NONE);
}
origin: fenix-framework/fenix-framework

protected void generateRelationRegisterCall(String regMethodName, Role r0, Role r1, PrintWriter out) {
  String r0name = r0.getName();
  String r1name = r1.getName();
  print(out, TRANSACTION_SUPPORT_CLASS);
  print(out, ".");
  print(out, regMethodName);
  print(out, "(\"");
  print(out, getEntityFullName(r0.getRelation()));
  print(out, "\", arg1, \"");
  print(out, r1name == null ? "" : r1name);
  print(out, "\", arg0, \"");
  print(out, r0name == null ? "" : r0name);
  print(out, "\");");
}
origin: fenix-framework/fenix-framework

String relationSlotName = role.getRelation().getName();
String directRelationType = getDirectRelationType();
String methodName = "getRelation" + role.getRelation().getName();
  print(out, getRoleHandlerName(role, false));
  print(out, ", \"");
  print(out, role.getRelation().getName());
  print(out, "\"");
  generateDefaultRelationListeners(role, out);
origin: fenix-framework/fenix-framework

String relationName = role.getRelation().getName();
print(out, getTypeFullName(role.getOtherRole().getType()));
print(out, ".");
print(out, role.getRelation().getName());
print(out, "\");");
pt.ist.fenixframework.dmlRolegetRelation

Popular methods of Role

  • getName
  • getType
  • getOtherRole
  • getMultiplicityUpper
  • getIndexProperty
  • isDirect
    Indicates whether the relation is direct on this role
  • <init>
  • getIndexCardinality
  • getMultiplicityLower
  • isFirstRole
  • isIndexed
  • isOrdered
  • isIndexed,
  • isOrdered,
  • needsMultiplicityChecks,
  • setIndexCardinality,
  • setIndexProperty,
  • setMultiplicity,
  • setOrdered,
  • setRelation

Popular in Java

  • Running tasks concurrently on multiple threads
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getContentResolver (Context)
  • getResourceAsStream (ClassLoader)
  • Menu (java.awt)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top PhpStorm plugins
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