21 package com.mysql.ndbjtie.ndbapi;
23 import java.nio.ByteBuffer;
25 import com.mysql.jtie.Wrapper;
26 import com.mysql.jtie.ArrayWrapper;
42 int getObjectStatus() ;
43 int getObjectVersion() ;
48 public abstract int getObjectStatus() ;
49 public abstract int getObjectVersion() ;
50 public abstract int getObjectId() ;
52 static public native
void delete(Object p0);
55 int TypeUndefined = 0,
62 SubscriptionTrigger = 9,
63 ReadOnlyConstraint = 10,
72 int StateUndefined = 0,
82 int StoreUndefined = 0,
88 int FragUndefined = 0,
100 int getObjectStatus() ;
101 int getObjectVersion() ;
106 public native
int getObjectStatus() ;
107 public native
int getObjectVersion() ;
108 public native
int getObjectId() ;
109 static public native ObjectId create();
110 static public native
void delete(ObjectId p0);
130 Olddecimalunsigned = 28 ,
132 Decimalunsigned = 30 ,
150 int ArrayTypeFixed = 0 ,
151 ArrayTypeShortVar = 1 ,
152 ArrayTypeMediumVar = 2 ;
156 int StorageTypeMemory = 0 ,
157 StorageTypeDisk = 1 ;
160 boolean getNullable() ;
161 boolean getPrimaryKey() ;
169 int getCharsetNumber() ;
170 int getInlineSize() ;
172 int getStripeSize() ;
174 boolean getPartitionKey() ;
176 int getStorageType() ;
177 boolean getDynamic() ;
178 boolean getIndexSourced() ;
182 public final native
String getName() ;
183 public final native
boolean getNullable() ;
184 public final native
boolean getPrimaryKey() ;
185 public final native
int getColumnNo() ;
186 public final native
boolean equal(
ColumnConst column) ;
187 public final native
int getType() ;
188 public final native
int getPrecision() ;
189 public final native
int getScale() ;
190 public final native
int getLength() ;
192 public final native
int getCharsetNumber() ;
193 public final native
int getInlineSize() ;
194 public final native
int getPartSize() ;
195 public final native
int getStripeSize() ;
196 public final native
int getSize() ;
197 public final native
boolean getPartitionKey() ;
198 public final native
int getArrayType() ;
199 public final native
int getStorageType() ;
200 public final native
boolean getDynamic() ;
201 public final native
boolean getIndexSourced() ;
202 static public final native Column create(
String name );
203 static public final native Column create(
ColumnConst column);
204 static public final native
void delete(Column p0);
206 public final native
void setNullable(
boolean p0);
207 public final native
void setPrimaryKey(
boolean p0);
208 public final native
void setType(
int type);
209 public final native
void setPrecision(
int p0);
210 public final native
void setScale(
int p0);
211 public final native
void setLength(
int length);
213 public final native
void setInlineSize(
int size);
214 public final native
void setPartSize(
int size);
215 public final native
void setStripeSize(
int size);
216 public final native
void setPartitionKey(
boolean enable);
217 public final native
void setArrayType(
int type);
218 public final native
void setStorageType(
int type);
219 public final native
void setDynamic(
boolean p0);
225 int SingleUserModeLocked = 0 ,
226 SingleUserModeReadOnly = 1 ,
227 SingleUserModeReadWrite = 2 ;
233 boolean getLogging() ;
234 int getFragmentType() ;
236 int getMinLoadFactor() ;
237 int getMaxLoadFactor() ;
238 int getNoOfColumns() ;
239 int getNoOfPrimaryKeys() ;
240 String getPrimaryKey(
int no) ;
242 ByteBuffer getFrmData() ;
244 ByteBuffer getFragmentData() ;
245 int getFragmentDataLen() ;
246 ByteBuffer getRangeListData() ;
247 int getRangeListDataLen() ;
249 boolean getLinearFlag() ;
250 int getFragmentCount() ;
251 String getTablespaceName() ;
252 boolean getTablespace(
int[]
id ,
int[] version ) ;
254 int getObjectStatus() ;
255 void setStatusInvalid() ;
256 int getObjectVersion() ;
257 int getDefaultNoPartitionsFlag() ;
261 int getSingleUserMode() ;
262 boolean getRowGCIIndicator() ;
263 boolean getRowChecksumIndicator() ;
264 int getPartitionId(
int hashvalue) ;
266 static public class Table
extends Object implements
TableConst
268 public final native
String getName() ;
269 public final native
int getTableId() ;
271 public final native
ColumnConst getColumn(
int attributeId) ;
272 public final native
boolean getLogging() ;
273 public final native
int getFragmentType() ;
274 public final native
int getKValue() ;
275 public final native
int getMinLoadFactor() ;
276 public final native
int getMaxLoadFactor() ;
277 public final native
int getNoOfColumns() ;
278 public final native
int getNoOfPrimaryKeys() ;
279 public final native
String getPrimaryKey(
int no) ;
280 public final native
boolean equal(
TableConst p0) ;
281 public final native ByteBuffer getFrmData() ;
282 public final native
int getFrmLength() ;
283 public final native ByteBuffer getFragmentData() ;
284 public final native
int getFragmentDataLen() ;
285 public final native ByteBuffer getRangeListData() ;
286 public final native
int getRangeListDataLen() ;
288 public final native
boolean getLinearFlag() ;
289 public final native
int getFragmentCount() ;
290 public final native
String getTablespaceName() ;
291 public final native
boolean getTablespace(
int[]
id ,
int[] version ) ;
293 public native
int getObjectStatus() ;
294 public final native
void setStatusInvalid() ;
295 public native
int getObjectVersion() ;
296 public final native
int getDefaultNoPartitionsFlag() ;
297 public native
int getObjectId() ;
298 public final native
long getMaxRows() ;
299 public final native
long getMinRows() ;
300 public final native
int getSingleUserMode() ;
301 public final native
boolean getRowGCIIndicator() ;
302 public final native
boolean getRowChecksumIndicator() ;
303 public final native
int getPartitionId(
int hashvalue) ;
304 static public native Table create(
String name );
306 static public native
void delete(Table p0);
308 public final native Column getColumnM(
int attributeId);
309 public final native Column getColumnM(
String name);
312 public final native
void setLogging(
boolean p0);
313 public final native
void setLinearFlag(
int flag);
314 public final native
void setFragmentCount(
int p0);
315 public final native
void setFragmentType(
int p0);
316 public final native
void setKValue(
int kValue);
317 public final native
void setMinLoadFactor(
int p0);
318 public final native
void setMaxLoadFactor(
int p0);
319 public final native
int setTablespaceName(
String name);
321 public final native
void setDefaultNoPartitionsFlag(
int indicator);
322 public final native
int setFrm(ByteBuffer data,
int len);
323 public final native
int setFragmentData(ByteBuffer data,
int len);
324 public final native
int setRangeListData(ByteBuffer data,
int len);
326 public final native
void setMaxRows(
long maxRows);
327 public final native
void setMinRows(
long minRows);
328 public final native
void setSingleUserMode(
int p0);
329 public final native
void setRowGCIIndicator(
boolean value);
330 public final native
void setRowChecksumIndicator(
boolean value);
331 public final native
int aggregate(
NdbError error);
332 public final native
int validate(
NdbError error);
344 int getNoOfColumns() ;
347 boolean getLogging() ;
348 int getObjectStatus() ;
349 int getObjectVersion() ;
353 static public class Index
extends Object implements
IndexConst
355 public final native
String getName() ;
356 public final native
String getTable() ;
357 public final native
int getNoOfColumns() ;
358 public final native
ColumnConst getColumn(
int no) ;
359 public final native
int getType() ;
360 public final native
boolean getLogging() ;
361 public native
int getObjectStatus() ;
362 public native
int getObjectVersion() ;
363 public native
int getObjectId() ;
365 static public native Index create(
String name );
366 static public native
void delete(Index p0);
368 public final native
int setTable(
String name);
370 public final native
int addColumnName(
String name);
372 public final native
void setType(
int type);
373 public final native
void setLogging(
boolean enable);
375 static public class OptimizeTableHandle
extends Wrapper
377 static public final native OptimizeTableHandle create();
378 static public final native
void delete(OptimizeTableHandle p0);
379 public final native
int next();
380 public final native
int close();
382 static public class OptimizeIndexHandle
extends Wrapper
384 static public final native OptimizeIndexHandle create();
385 static public final native
void delete(OptimizeIndexHandle p0);
386 public final native
int next();
387 public final native
int close();
393 int TE_INSERT = 1<<0,
399 TE_GCP_COMPLETE = 1<<7,
400 TE_CLUSTER_FAILURE = 1<<8,
402 TE_NODE_FAILURE = 1<<10,
403 TE_SUBSCRIBE = 1<<11,
404 TE_UNSUBSCRIBE = 1<<12,
409 int ED_UNDEFINED = 0,
421 boolean getTableEvent(
int te) ;
422 int getDurability() ;
424 int getNoOfEventColumns() ;
426 int getObjectStatus() ;
427 int getObjectVersion() ;
430 static public class Event
extends Object implements
EventConst
432 public final native
String getName() ;
434 public final native
String getTableName() ;
435 public final native
boolean getTableEvent(
int te) ;
436 public final native
int getDurability() ;
437 public final native
int getReport() ;
438 public final native
int getNoOfEventColumns() ;
439 public final native
ColumnConst getEventColumn(
int no) ;
440 public native
int getObjectStatus() ;
441 public native
int getObjectVersion() ;
442 public native
int getObjectId() ;
443 static public native Event create(
String name);
445 static public native
void delete(Event p0);
448 public final native
int setTable(
String tableName);
449 public final native
void addTableEvent(
int te);
450 public final native
void setDurability(
int p0);
451 public final native
void setReport(
int p0);
452 public final native
void addEventColumn(
int attrId);
453 public final native
void addEventColumn(
String columnName);
455 public final native
void mergeEvents(
boolean flag);
459 int RecMysqldShrinkVarchar = 0x1,
460 RecMysqldBitfield = 0x2;
462 static public interface RecordSpecificationConstArray
extends ArrayWrapper< RecordSpecificationConst >
465 static public class RecordSpecificationArray
extends Wrapper implements RecordSpecificationConstArray
467 static public native RecordSpecificationArray create(
int length);
468 static public native
void delete(RecordSpecificationArray e);
469 public native RecordSpecification at(
int i);
475 int nullbit_byte_offset();
476 int nullbit_bit_in_byte();
481 public final native
int offset();
482 public final native
int nullbit_byte_offset();
483 public final native
int nullbit_bit_in_byte();
485 public final native
void offset(
int p0);
486 public final native
void nullbit_byte_offset(
int p0);
487 public final native
void nullbit_bit_in_byte(
int p0);
488 static public final native RecordSpecification create();
489 static public final native
void delete(RecordSpecification p0);
493 int TableAccess = 0 ,
502 static public final native
boolean getNullBitOffset(
NdbRecordConst record,
int attrId,
int[] nullbit_byte_offset,
int[] nullbit_bit_in_byte);
506 static public final native
int setNull(
NdbRecordConst record, ByteBuffer row,
int attrId,
boolean value);
514 String filename_pattern();
518 public final native
int min_free();
519 public final native
long max_size();
520 public final native
long file_size();
521 public final native
String filename_pattern();
522 public final native
void min_free(
int p0);
523 public final native
void max_size(
long p0);
524 public final native
void file_size(
long p0);
525 public final native
void filename_pattern(
String p0);
526 static public final native AutoGrowSpecification create();
527 static public final native
void delete(AutoGrowSpecification p0);
532 int getUndoBufferSize() ;
534 long getUndoFreeWords() ;
535 int getObjectStatus() ;
536 int getObjectVersion() ;
541 public final native
String getName() ;
542 public final native
int getUndoBufferSize() ;
544 public final native
long getUndoFreeWords() ;
545 public native
int getObjectStatus() ;
546 public native
int getObjectVersion() ;
547 public native
int getObjectId() ;
548 static public native LogfileGroup create();
550 static public native
void delete(LogfileGroup p0);
551 public final native
void setName(
String name);
552 public final native
void setUndoBufferSize(
int sz);
558 int getExtentSize() ;
560 String getDefaultLogfileGroup() ;
561 int getDefaultLogfileGroupId() ;
562 int getObjectStatus() ;
563 int getObjectVersion() ;
566 static public class Tablespace
extends Object implements
TablespaceConst
568 public final native
String getName() ;
569 public final native
int getExtentSize() ;
571 public final native
String getDefaultLogfileGroup() ;
572 public final native
int getDefaultLogfileGroupId() ;
573 public native
int getObjectStatus() ;
574 public native
int getObjectVersion() ;
575 public native
int getObjectId() ;
576 static public native Tablespace create();
578 static public native
void delete(Tablespace p0);
579 public final native
void setName(
String name);
580 public final native
void setExtentSize(
int sz);
582 public final native
void setDefaultLogfileGroup(
String name);
591 void getTablespaceId(ObjectId dst) ;
594 int getObjectStatus() ;
595 int getObjectVersion() ;
598 static public class Datafile
extends Object implements
DatafileConst
600 public final native
String getPath() ;
601 public final native
long getSize() ;
602 public final native
long getFree() ;
603 public final native
String getTablespace() ;
604 public final native
void getTablespaceId(ObjectId dst) ;
607 public native
int getObjectStatus() ;
608 public native
int getObjectVersion() ;
609 public native
int getObjectId() ;
610 static public native Datafile create();
612 static public native
void delete(Datafile p0);
613 public final native
void setPath(
String name);
614 public final native
void setSize(
long p0);
615 public final native
int setTablespace(
String name);
623 String getLogfileGroup() ;
624 void getLogfileGroupId(ObjectId dst) ;
627 int getObjectStatus() ;
628 int getObjectVersion() ;
631 static public class Undofile
extends Object implements
UndofileConst
633 public final native
String getPath() ;
634 public final native
long getSize() ;
635 public final native
String getLogfileGroup() ;
636 public final native
void getLogfileGroupId(ObjectId dst) ;
639 public native
int getObjectStatus() ;
640 public native
int getObjectVersion() ;
641 public native
int getObjectId() ;
642 static public native Undofile create();
644 static public native
void delete(Undofile p0);
645 public final native
void setPath(
String path);
646 public final native
void setSize(
long p0);
647 public final native
void setLogfileGroup(
String name);
655 static public interface ElementConstArray
extends ArrayWrapper< ElementConst >
658 static public class ElementArray
extends Wrapper implements ElementConstArray
660 static public native ElementArray create(
int length);
661 static public native
void delete(ElementArray e);
662 public native Element at(
int i);
677 public final native
int id();
678 public final native
int type();
679 public final native
int state();
680 public final native
int store();
681 public final native
int temp();
682 public final native
String database();
683 public final native
String schema();
685 public final native
void id(
int p0);
686 public final native
void type(
int p0);
687 public final native
void state(
int p0);
688 public final native
void store(
int p0);
689 public final native
void temp(
int p0);
693 static public final native Element create();
694 static public final native
void delete(Element p0);
697 ElementArray elements();
699 static public class List extends Wrapper implements ListConst
701 public final native
int count();
702 public final native ElementArray elements();
703 public final native
void count(
int p0);
704 public final native
void elements(ElementArray p0);
705 static public final native
List create();
706 static public final native
void delete(
List p0);
708 int listObjects(
List list,
int type ) ;
711 IndexConst getIndex(
String indexName,
String tableName) ;
712 int listIndexes(
List list,
String tableName) ;
713 int listEvents(
List list) ;
715 static public class Dictionary
extends Wrapper implements DictionaryConst
717 public final native
int listObjects(
List list,
int type ) ;
718 public final native NdbErrorConst getNdbError() ;
719 public final native TableConst getTable(
String name) ;
720 public final native IndexConst getIndex(
String indexName,
String tableName) ;
721 public final native
int listIndexes(
List list,
String tableName) ;
722 public final native
int listEvents(
List list) ;
723 public final native
int createEvent(EventConst
event);
724 public final native
int dropEvent(
String eventName,
int force );
725 public final native EventConst getEvent(
String eventName);
726 public final native
int createTable(TableConst
table);
727 public final native
int optimizeTable(TableConst t, OptimizeTableHandle h);
728 public final native
int optimizeIndex(IndexConst ind, OptimizeIndexHandle h);
729 public final native
int dropTable(Table
table);
730 public final native
int dropTable(
String name);
731 public final native
boolean supportedAlterTable(TableConst f, TableConst t);
732 public final native
void removeCachedTable(
String table);
734 public final native
int createIndex(IndexConst
index,
boolean offline );
735 public final native
int createIndex(IndexConst
index, TableConst
table,
boolean offline );
736 public final native
int dropIndex(
String indexName,
String tableName);
737 public final native
int createLogfileGroup(LogfileGroupConst p0, ObjectId p1 );
738 public final native
int dropLogfileGroup(LogfileGroupConst p0);
740 public final native
int createTablespace(TablespaceConst p0, ObjectId p1 );
741 public final native
int dropTablespace(TablespaceConst p0);
744 public final native
int createDatafile(DatafileConst p0,
boolean overwrite_existing , ObjectId p1 );
745 public final native
int dropDatafile(DatafileConst p0);
747 public final native
int createUndofile(UndofileConst p0,
boolean overwrite_existing , ObjectId p1 );
748 public final native
int dropUndofile(UndofileConst p0);
750 public final native
NdbRecord createRecord(TableConst
table, RecordSpecificationConstArray recSpec,
int length,
int elemSize,
int flags );
751 public final native
NdbRecord createRecord(IndexConst
index, TableConst
table, RecordSpecificationConstArray recSpec,
int length,
int elemSize,
int flags );
752 public final native
NdbRecord createRecord(IndexConst
index, RecordSpecificationConstArray recSpec,
int length,
int elemSize,
int flags );