Tabnine Logo
DataType.isTextual
Code IndexAdd Tabnine to your IDE (free)

How to use
isTextual
method
in
com.healthmarketscience.jackcess.DataType

Best Java code snippets using com.healthmarketscience.jackcess.DataType.isTextual (Showing top 8 results out of 315)

origin: com.healthmarketscience.jackcess/jackcess

public int getUnitSize(JetFormat format) {
 if((format != null) && isTextual()) {
  return format.SIZE_TEXT_FIELD_UNIT;
 }
 return _unitSize;
}
origin: net.sf.ucanaccess/ucanaccess

  @Override
  public Object handleRowError(Column cl, byte[] bt, Location location, Exception ex)
      throws IOException {
    if (cl.getType().isTextual()) {
      Logger.logParametricWarning(Messages.INVALID_CHARACTER_SEQUENCE,
          cl.getTable().getName(), cl.getName(), new String(bt));
    }
    throw new IOException(ex.getMessage());
  }
});
origin: com.healthmarketscience.jackcess/jackcess

private void setColumnSortOrder(ColumnBuilder column) {
  // set the sort order to the db default (if unspecified)
  if(column.getType().isTextual() && (column.getTextSortOrder() == null)) {
   column.setTextSortOrder(getDbSortOrder());
  }
}
origin: com.healthmarketscience.jackcess/jackcess

@Override
public boolean matches(Table table, String columnName, Object value1,
            Object value2)
{
 if(!table.getColumn(columnName).getType().isTextual()) {
  // use simple equality
  return SimpleColumnMatcher.INSTANCE.matches(table, columnName, 
                        value1, value2);
 }
 // convert both values to Strings and compare case-insensitively
 try {
  CharSequence cs1 = ColumnImpl.toCharSequence(value1);
  CharSequence cs2 = ColumnImpl.toCharSequence(value2);
  return((cs1 == cs2) ||
      ((cs1 != null) && (cs2 != null) &&
      cs1.toString().equalsIgnoreCase(cs2.toString())));
 } catch(IOException e) {
  throw new RuntimeIOException("Could not read column " + columnName 
                 + " value", e);
 }
}
origin: com.healthmarketscience.jackcess/jackcess

      CustomToStringStyle.ignoreNull(getCalculationContext()));
if(_type.isTextual()) {
 sb.append("compressedUnicode", isCompressedUnicode())
  .append("textSortOrder", getTextSortOrder());
origin: com.healthmarketscience.jackcess/jackcess

if(col.getType().isTextual()) {
origin: com.healthmarketscience.jackcess/jackcess

if(!getType().isTextual()) {
 throw new IllegalArgumentException(withErrorContext(
   "Only textual columns allow unicode compression (text/memo)"));
origin: com.healthmarketscience.jackcess/jackcess

!getType().isTextual() ||
(Boolean)props.getValue(PropertyMap.ALLOW_ZERO_LEN_PROP,
            Boolean.TRUE);
com.healthmarketscience.jackcessDataTypeisTextual

Popular methods of DataType

  • equals
  • getFixedSize
  • name
  • fromByte
  • fromSQLType
  • getMaxSize
  • getSQLType
  • getUnitSize
  • toString
  • fromUnitSize
  • getDefaultPrecision
  • getDefaultScale
  • getDefaultPrecision,
  • getDefaultScale,
  • getDefaultSize,
  • getHasScalePrecision,
  • getMaxPrecision,
  • getMaxScale,
  • getMinPrecision,
  • getMinScale,
  • getMinSize

Popular in Java

  • Reading from database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • getExternalFilesDir (Context)
  • addToBackStack (FragmentTransaction)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • JTable (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • 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