/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.7 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package com.revolsys.gis.esri.gdb.file.capi.swig; public class Table { protected static long getCPtr(final Table obj) { return obj == null ? 0 : obj.swigCPtr; } private transient long swigCPtr; protected transient boolean swigCMemOwn; public Table() { this(EsriFileGdbJNI.new_Table(), true); } protected Table(final long cPtr, final boolean cMemoryOwn) { this.swigCMemOwn = cMemoryOwn; this.swigCPtr = cPtr; } public int AlterField(final String fieldDef) { return EsriFileGdbJNI.Table_AlterField(this.swigCPtr, this, fieldDef); } public int AlterSubtype(final String subtypeDef) { return EsriFileGdbJNI.Table_AlterSubtype(this.swigCPtr, this, subtypeDef); } public Row createRowObject() { final long cPtr = EsriFileGdbJNI.Table_createRowObject(this.swigCPtr, this); return cPtr == 0 ? null : new Row(cPtr, true); } public int CreateSubtype(final String subtypeDef) { return EsriFileGdbJNI.Table_CreateSubtype(this.swigCPtr, this, subtypeDef); } public synchronized void delete() { if (this.swigCPtr != 0) { if (this.swigCMemOwn) { this.swigCMemOwn = false; EsriFileGdbJNI.delete_Table(this.swigCPtr); } this.swigCPtr = 0; } } public int DeleteField(final String fieldName) { return EsriFileGdbJNI.Table_DeleteField(this.swigCPtr, this, fieldName); } public int DeleteIndex(final String indexName) { return EsriFileGdbJNI.Table_DeleteIndex(this.swigCPtr, this, indexName); } public void deleteRow(final Row row) { EsriFileGdbJNI.Table_deleteRow(this.swigCPtr, this, Row.getCPtr(row), row); } public int DeleteSubtype(final String subtypeName) { return EsriFileGdbJNI.Table_DeleteSubtype(this.swigCPtr, this, subtypeName); } public int DisableSubtypes() { return EsriFileGdbJNI.Table_DisableSubtypes(this.swigCPtr, this); } public int EnableSubtypes(final String subtypeFieldName, final String subtypeDef) { return EsriFileGdbJNI.Table_EnableSubtypes(this.swigCPtr, this, subtypeFieldName, subtypeDef); } @Override protected void finalize() { } public void freeWriteLock() { EsriFileGdbJNI.Table_freeWriteLock(this.swigCPtr, this); } public int getDefaultSubtypeCode() { return EsriFileGdbJNI.Table_getDefaultSubtypeCode(this.swigCPtr, this); } public String getDefinition() { return EsriFileGdbJNI.Table_getDefinition(this.swigCPtr, this); } public String getDocumentation() { return EsriFileGdbJNI.Table_getDocumentation(this.swigCPtr, this); } public int GetExtent(final Envelope extent) { return EsriFileGdbJNI.Table_GetExtent(this.swigCPtr, this, Envelope.getCPtr(extent), extent); } public VectorOfString getIndexes() { return new VectorOfString(EsriFileGdbJNI.Table_getIndexes(this.swigCPtr, this), true); } public int getRowCount() { return EsriFileGdbJNI.Table_getRowCount(this.swigCPtr, this); } public void insertRow(final Row row) { EsriFileGdbJNI.Table_insertRow(this.swigCPtr, this, Row.getCPtr(row), row); } public boolean isEditable() { return EsriFileGdbJNI.Table_isEditable(this.swigCPtr, this); } public EnumRows search(final String subfields, final String whereClause, final boolean recycling) { final long cPtr = EsriFileGdbJNI.Table_search__SWIG_1(this.swigCPtr, this, subfields, whereClause, recycling); return cPtr == 0 ? null : new EnumRows(cPtr, true); } public EnumRows search(final String subfields, final String whereClause, final Envelope envelope, final boolean recycling) { final long cPtr = EsriFileGdbJNI.Table_search__SWIG_0(this.swigCPtr, this, subfields, whereClause, Envelope.getCPtr(envelope), envelope, recycling); return cPtr == 0 ? null : new EnumRows(cPtr, true); } public int SetDefaultSubtypeCode(final int defaultCode) { return EsriFileGdbJNI.Table_SetDefaultSubtypeCode(this.swigCPtr, this, defaultCode); } public int SetDocumentation(final String documentation) { return EsriFileGdbJNI.Table_SetDocumentation(this.swigCPtr, this, documentation); } public void setLoadOnlyMode(final boolean loadOnly) { EsriFileGdbJNI.Table_setLoadOnlyMode(this.swigCPtr, this, loadOnly); } public void setWriteLock() { EsriFileGdbJNI.Table_setWriteLock(this.swigCPtr, this); } public void updateRow(final Row row) { EsriFileGdbJNI.Table_updateRow(this.swigCPtr, this, Row.getCPtr(row), row); } }