Tabnine Logo
SchemaAndTable.<init>
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using com.mysema.query.sql.SchemaAndTable.<init> (Showing top 7 results out of 315)

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

/**
 * 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

/**
 * 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

/**
 * 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 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})");
}
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;
}
com.mysema.query.sqlSchemaAndTable<init>

Popular methods of SchemaAndTable

  • getSchema
  • getTable

Popular in Java

  • Making http requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setRequestProperty (URLConnection)
  • onRequestPermissionsResult (Fragment)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top Sublime Text 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