1 package com.daffodilwoods.database.general; 2 3 import com.daffodilwoods.database.resource.DException; 4 public class QueryInfo implements java.io.Serializable { 5 6 public final static int SELECT = 0; 7 public final static int INSERT = 1; 8 public final static int UPDATE = 2; 9 public final static int DELETE = 3; 10 public final static int OTHERS = 4; 11 public final static int CALLSTATEMENT = 5; 12 String query; 13 int type; 14 _ParameterMetaData metaData; 15 int startingPosition, endPosition; 16 public QueryInfo(String query,int type , _ParameterMetaData md) throws DException { 17 this.query = query; 18 this.type = type; 19 this.metaData = md; 20 } 21 22 public String getQuery() throws DException { 23 return query; 24 } 25 public int getStartPosition() throws DException { 26 return startingPosition; 27 } 28 public void setStartPosition(int startPosition0) throws DException { 29 startingPosition = startPosition0; 30 } 31 public int getEndPosition() throws DException { 32 return endPosition; 33 } 34 public void setEndPosition( int endPosition0 ) throws DException { 35 endPosition = endPosition0; 36 } 37 38 public int getType() throws DException { 39 return type; 40 } 41 42 public _ParameterMetaData getMetaData() throws DException { 43 return metaData; 44 } 45 46 47 48 } 49 | Popular Tags |