Tabnine Logo
SchemaAndTable
Code IndexAdd Tabnine to your IDE (free)

How to use
SchemaAndTable
in
com.mysema.query.sql

Best Java code snippets using com.mysema.query.sql.SchemaAndTable (Showing top 11 results out of 315)

origin: com.mysema.querydsl/querydsl-sql

/**
 * Get the schema/table override
 *
 * @param key
 * @return
 */
@Nullable
public SchemaAndTable getOverride(SchemaAndTable key) {
  if (!schemaTables.isEmpty() && key.getSchema() != null) {
    if (schemaTables.containsKey(key)) {
      return schemaTables.get(key);
    }
  }
  String schema = key.getSchema(), table = key.getTable();
  boolean changed = false;
  if (schemas.containsKey(key.getSchema())) {
    schema = schemas.get(key.getSchema());
    changed = true;
  }
  if (tables.containsKey(key.getTable())) {
    table = tables.get(key.getTable());
    changed = true;
  }
  return changed ? new SchemaAndTable(schema, table) : key;
}
origin: com.mysema.querydsl/querydsl-sql

/**
 * Use getOverride instead
 *
 * @param schema
 * @param table
 * @return
 */
@Deprecated
public String getTable(String schema, String table) {
  return getOverride(new SchemaAndTable(schema, table)).getTable();
}
origin: com.mysema.querydsl/querydsl-sql

public RelationalPathBase(Class<? extends T> type, PathMetadata<?> metadata, String schema,
    String table) {
  super(type, metadata);
  this.schema = schema;
  this.table = table;
  this.schemaAndTable = new SchemaAndTable(schema, table);
}
origin: com.mysema.querydsl/querydsl-sql

  boolean precededByDot;
  if (dmlWithSchema && templates.isPrintSchema()) {
    appendSchemaName(schemaAndTable.getSchema());
    append(".");
    precededByDot = true;
    precededByDot = false;
  appendTableName(schemaAndTable.getTable(), precededByDot);
  return null;
} else if (entity.equals(path.getMetadata().getParent()) && skipParent) {
origin: com.mysema.querydsl/querydsl-sql

/**
 * Register a schema specific table override
 *
 * @param schema
 * @param oldTable
 * @param newTable
 * @return
 */
public String registerTableOverride(String schema, String oldTable, String newTable) {
  SchemaAndTable st = registerTableOverride(schema, oldTable, schema, newTable);
  return st != null ? st.getTable() : null;
}
origin: com.mysema.querydsl/querydsl-sql

/**
 * Register a schema specific table override
 *
 * @param schema
 * @param oldTable
 * @param newSchema
 * @param newTable
 * @return
 */
public SchemaAndTable registerTableOverride(String schema, String oldTable, String newSchema, String newTable) {
  return registerTableOverride(new SchemaAndTable(schema, oldTable), new SchemaAndTable(newSchema, newTable));
}
origin: com.mysema.querydsl/querydsl-sql

protected void handleJoinTarget(JoinExpression je) {
  // type specifier
  if (je.getTarget() instanceof RelationalPath && templates.isSupportsAlias()) {
    final RelationalPath<?> pe = (RelationalPath<?>) je.getTarget();
    if (pe.getMetadata().getParent() == null) {
      SchemaAndTable schemaAndTable = getSchemaAndTable(pe);
      boolean precededByDot;
      if (templates.isPrintSchema()) {
        appendSchemaName(schemaAndTable.getSchema());
        append(".");
        precededByDot = true;
      } else {
        precededByDot = false;
      }
      appendTableName(schemaAndTable.getTable(), precededByDot);
      append(templates.getTableAlias());
    }
  }
  inJoin = true;
  handle(je.getTarget());
  inJoin = false;
}
origin: com.mysema.querydsl/querydsl-sql

/**
 * Get the column override
 *
 * @param key
 * @param column
 * @return
 */
public String getColumnOverride(SchemaAndTable key, String column) {
  Map<String, String> columnOverrides;
  String newColumn = null;
  columnOverrides = schemaTableColumns.get(key);
  if (columnOverrides != null && (newColumn = columnOverrides.get(column)) != null) {
    return newColumn;
  }
  columnOverrides = tableColumns.get(key.getTable());
  if (columnOverrides != null && (newColumn = columnOverrides.get(column)) != null) {
    return newColumn;
  }
  return column;
}
origin: com.mysema.querydsl/querydsl-sql

/**
 * Register a column override
 *
 * @param schema
 * @param table
 * @param oldColumn
 * @param newColumn
 * @return
 */
public String registerColumnOverride(String schema, String table, String oldColumn, String newColumn) {
  SchemaAndTable key = new SchemaAndTable(schema, table);
  Map<String, String> columnOverrides = schemaTableColumns.get(key);
  if (columnOverrides == null) {
    columnOverrides = new HashMap<String, String>();
    schemaTableColumns.put(key, columnOverrides);
  }
  return columnOverrides.put(oldColumn, newColumn);
}
origin: com.atlassian.jira/jira-core

@Override
public SchemaAndTable getSchemaAndTable()
{
  return new SchemaAndTable(getSchemaName(), tableName);
}
origin: com.mysema.querydsl/querydsl-sql

public TeradataSpatialTemplates(char escape, boolean quote) {
  super(escape, quote);
  addCustomType(GeometryWktClobType.DEFAULT);
  addCustomType(StringAsObjectType.DEFAULT);
  addTableOverride(new SchemaAndTable("public", "geometry_columns"),
      new SchemaAndTable("sysspatial", "geometry_columns"));
  addTableOverride(new SchemaAndTable("public", "spatial_ref_sys"),
      new SchemaAndTable("sysspatial", "spatial_ref_sys"));
  add(SpatialTemplatesSupport.getSpatialOps(false));
  add(SpatialOps.DISTANCE_SPHERE, "{0}.ST_SPHERICALDISTANCE({1})");
  add(SpatialOps.DISTANCE_SPHEROID, "{0}.ST_SPHEROIDALDISTANCE({1})");
}
com.mysema.query.sqlSchemaAndTable

Most used methods

  • <init>
  • getSchema
  • getTable

Popular in Java

  • Reactive rest calls using spring rest template
  • setContentView (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • getResourceAsStream (ClassLoader)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • String (java.lang)
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Top 12 Jupyter Notebook extensions
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