codepoint.java

来自「derby database source code.good for you.」· Java 代码 · 共 881 行 · 第 1/2 页

JAVA
881
字号
	// Server Product Release Level codepoint constant.	static final int SRVRLSLV = 0x115A;	//Statement Decimal Delimiter	static final int STTDECDEL = 0x2121;	//Statement String Delimiter	static final int STTSTRDEL = 0x2120;	// Supervisor.	// Manages a collection of managers in a consistent manner.	static final int SUPERVISOR = 0x143C;	// Security Service Error Number codepoint constant.	static final int SVCERRNO = 0x11B4;	// Severity Code codepoint constant.	static final int SVRCOD = 0x1149;	// Sync Point Manager.  Min. level 4.	// It is a manager object of DDM that coordinates resource	// recovery of the units of work associated with recoverable	// resources in multiple DDM servers.	static final int SYNCPTMGR = 0x14C0;	// Syntax Error code	static final int SYNERRCD = 0x114A;	// Data Type Definition Name codepoint constant.	static final int TYPDEFNAM = 0x002F;	// TYPDEF Overrides codepoint constant.	static final int TYPDEFOVR = 0x0035;	// Unit of Word Disposition codepoint constant.	static final int UOWDSP = 0x2115;	// Usrid codepoint constant.	static final int USRID = 0x11A0;	// Version name	static final int VRSNAM = 0x1144;	// Rdb Package Name, Consistency Token, and Section	// Number codepoint constant.	static final int PKGNAMCSN = 0x2113;	//-----------------------DDM reply codepoints---------------------------------	// Invalid description	static final int DSCINVRM = 0x220A;	// Codepoint for Command Authorization for Agent Permanent Error	static final int CMDATHRM = 0x121C;	// Command Check codepoint constant.	static final int CMDCHKRM = 0x1254;	// Command Not Supported codepoint constant.	static final int CMDNSPRM = 0x1250;	// Codepoint for Agent Permanent Error Reply message	static final int AGNPRMRM = 0x1232;	static final int BGNBNDRM = 0x2208;	// Abnormal End of Unit of Work Condition codepoint constant.	static final int ABNUOWRM = 0x220D;	// Access to RDB Completed.	// Specifies that an instance of the SQL application manager	// has been created and is bound to the specified RDB.	static final int ACCRDBRM = 0x2201;	final static int CMDCMPRM = 0x124B;	final static int MGRLVLRM = 0x1210;	// Manager dependency Error	static final int MGRDEPRM = 0x1218;	// End Unit of Work Condition codepoint constant.	static final int ENDUOWRM = 0x220C;	// Object Not Supported codepoint constant.	static final int OBJNSPRM = 0x1253;	// Conversational Protocol Error	static final int PRCCNVRM = 0x1245;	// Parameter Not Supported codepoint constant.	static final int PRMNSPRM = 0x1251;	// RDB Package Binding Process Not active Codepoint	static final int PKGBNARM = 0x2206;	// RDB Package Binding Process Active codepoint constant.	static final int PKGBPARM = 0x2209;	// Query not open codepoint constant.	static final int QRYNOPRM = 0x2202;	// Query previously opened codepoint	static final int QRYPOPRM = 0x220F;	// RDB Currently Accessed Codepoint	static final int RDBACCRM = 0x2207;	// Security Check.	// Indicates the acceptability of the security information.	static final int SECCHKRM = 0x1219;	// RDB Access Failed Reply Message codepoint	static final int RDBAFLRM = 0x221A;	// Not Authorized To RDB reply message codepoint	static final int RDBATHRM = 0x22CB;	// RDB Not Accessed codepoint constant.	static final int RDBNACRM = 0x2204;	// RDB not found codepoint	static final int RDBNFNRM = 0x2211;	// RDB Update Reply Message codepoint constant.	static final int RDBUPDRM = 0x2218;	// Resources Limits Reached	static final int RSCLMTRM = 0x1233;	// Data Stream Syntax Error	static final int SYNTAXRM = 0x124C;	// Target Not Supported	static final int TRGNSPRM = 0x125F;	// Parameter Value Not Supported codepoint constant.	static final int VALNSPRM = 0x1252;	// SQL Error Condition codepoint constant.	static final int SQLERRRM = 0x2213;	final static int OPNQRYRM = 0x2205;	final static int ENDQRYRM = 0x220B;	final static int DTAMCHRM = 0x220E;	final static int OPNQFLRM = 0x2212;	final static int RSLSETRM = 0x2219;	final static int CMDVLTRM = 0x221D;	final static int CMMRQSRM = 0x2225;	//-----------------------ddm enumerated values-------------------------------	// TYPSQLDA - Standard Output SQLDA	static final int TYPSQLDA_STD_OUTPUT = 0;	// TYPSQLDA - Standard Input SQLDA	static final int TYPSQLDA_STD_INPUT = 1;	// TYPSQLDA - Light Output SQLDA	static final int TYPSQLDA_LIGHT_OUTPUT = 2;	// TYPSQLDA - Light Input SQLDA	static final int TYPSQLDA_LIGHT_INPUT = 3;	// TYPSQLDA - Extended Output SQLDA	static final int TYPSQLDA_X_OUTPUT = 4;	// TYPSQLDA - Extended Input SQLDA	static final int TYPSQLDA_X_INPUT = 5;	// QRYCLSIMP - Target Server determines whether to implicitly	// close the cursor or not upon SQLSTATE 02000 based on cursor type.	static final int QRYCLSIMP_SERVER_CHOICE = 0x00;		// QRYCLSIMP - Target Server must implicitly close the cursor	// upon SQLSTATE 02000.	static final int QRYCLSIMP_YES = 0x01;		// QRYCLSIMP - Target Server must not implicitly close the cursor	// upon SQLSTATE 02000.	static final int QRYCLSIMP_NO = 0x02;	// QRYCLSRLS - Do not release read locks when the query is closed	static final int QRYCLSRLS_NO = 0x00;		// QRYCLSRLS - Release read locks when the query is closed	static final int QRYCLSRLS_YES = 0x01;	// QRYBLKFCT - No 'OPTIMIZE for N ROWS' clause associated with	// the select statement for the cursor.	static final int QRYBLKFCT_NONE = 0x00;		// QRYBLKEXA - Every query block is exactly the size specified	// in the QRYBLKSZ parameter, except for possibly the last	// query block which may be shorter.	static final int QRYBLKEXA = 0x00;	// QRYBLKFLX - Every query block is at least the size specified	// in the QRYBLKSZ parameter, except for possibly the last	// query block which may be shorter.	static final int QRYBLKFLX = 0x01;		//----------------------------fdoca code points-------------------------------	// Externalized FD:OCA Data codepoint constant.	static final int EXTDTA = 0x146C;	// FDOCA data descriptor	static final int FDODSC = 0x0010;	// FDOCA data	static final int FDODTA = 0x147A;	// FDOCA Descriptor offset	static final int FDODSCOFF = 0x2118;	// FDOCA Triplet Parameter offset	static final int FDOPRMOFF = 0x212B;	// FDOCA Triplet offset	static final int FDOTRPOFF = 0x212A;	//--------------------------ddm error code points---------------------------------	static final int SYNERRCD_DSS_LESS_THAN_6 = 0x01;	static final int SYNERRCD_DSS_LENGTH_BYTE_NUMBER_MISMATCH = 0x02;	static final int SYNERRCD_CBYTE_NOT_D0 = 0x03;	static final int SYNERRCD_FBYTE_NOT_SUPPORTED = 0x04;	static final int SYNERRCD_OBJ_LEN_LESS_THAN_4 = 0x07;	static final int SYNERRCD_TOO_BIG = 0x09;	static final int SYNERRCD_OBJ_LEN_NOT_ALLOWED = 0x0B;	static final int SYNERRCD_INCORRECT_EXTENDED_LEN = 0x0C;	static final int SYNERRCD_REQ_OBJ_NOT_FOUND = 0x0E;	static final int SYNERRCD_TOO_MANY = 0x0F;	static final int SYNERRCD_DUP_OBJ_PRESENT = 0x12;	static final int SYNERRCD_INVALID_CORRELATOR = 0x13;	static final int SYNERRCD_REQ_VAL_NOT_FOUND = 0x14;	static final int SYNERRCD_DSS_CONT_LESS_OR_EQUAL_2 = 0x16;	static final int SYNERRCD_CHAIN_OFF_SAME_NEXT_CORRELATOR = 0x18;	static final int SYNERRCD_CHAIN_OFF_ERROR_CONTINUE = 0x1A;	static final int SYNERRCD_INVALID_CP_FOR_CMD = 0x1D;	static final int PRCCNVCD_OBJDSS_SENT_NOT_ALLOWED = 0x03;	static final int PRCCNVCD_EXCSAT_FIRST_AFTER_CONN = 0x06;	static final int PRCCNVCD_ACCSEC_SECCHK_WRONG_STATE = 0x11;	static final int PRCCNVCD_RDBNAM_MISMATCH = 0x12;	static final int SVRCOD_INFO = 0;      // Information Only Severity Code	static final int SVRCOD_WARNING = 4;   // Warning Severity Code	static final int SVRCOD_ERROR = 8;     // Error Severity Code	static final int SVRCOD_SEVERE = 16;   // Severe Error Severity Code	static final int SVRCOD_ACCDMG = 32;   // Access Damage Severity Code	static final int SVRCOD_PRMDMG = 64;   // Permanent Damage Severity Code	static final int SVRCOD_SESDMG = 128;  // Session Damage Severity Code		//---------------------- Security Mechanisms ---------------------------	static final int SECMEC_DCESEC = 1;		// Distributed Computing Environment Security	static final int SECMEC_USRIDPWD = 3;	// Userid and Password	static final int SECMEC_USRIDONL = 4;	// Userid only	static final int SECMEC_USRIDNWPWD = 5;  // Userid, Password, and new Password	static final int SECMEC_USRSBSPWD = 6;  // Userid with substitute password	static final int SECMEC_USRENCPWD = 7;  // Userid with encrypted password	static final int SECMEC_EUSRIDPWD = 9;  // Encrpyted userid and password	static final int SECMEC_EUSRIDNWPWD = 10;  // Encrpyted userid and password	//---------------------Security Check Codes ---------------------------	static final int SECCHKCD_OK = 0;		// Security info correct and acceptable	static final int SECCHKCD_NOTSUPPORTED = 0x01;	// SECMEC value not supported	static final int SECCHKCD_SECTKNMISSING_OR_INVALID = 0x0E;	// SECTKN missing or invalid 	static final int SECCHKCD_PASSWORDMISSING = 0x10;	// Password missing  	static final int SECCHKCD_USERIDMISSING = 0x12;	// User Id missing  	static final int SECCHKCD_USERIDINVALID = 0x13;	// Userid invalid	//----------------------Type Definition Names we care about -----------	static final String TYPDEFNAM_QTDSQLASC = "QTDSQLASC"; // ASCII	static final String TYPDEFNAM_QTDSQLJVM = "QTDSQLJVM"; // Java platform	static final String TYPDEFNAM_QTDSQLX86 = "QTDSQLX86"; //  Intel X86 platform	//----------------------Max sizes for strings in the protocol ---------	static final int MAX_NAME = 255;	static final int RDBNAM_LEN = 18; //dbname fixed length for SQLAM level 6, for level 7,									  //limit is MAX_NAME (255)	static final int PRDID_MAX = 8;	static final int RDBCOLID_LEN = 18;	static final int PKGID_LEN = 18;	static final int PKGCNSTKN_LEN = 8;	static final int PKGNAMCSN_LEN = RDBNAM_LEN + RDBCOLID_LEN + PKGID_LEN +		PKGCNSTKN_LEN + 2;	//---------------------QRYBLSZ min and maximum	static final int QRYBLKSZ_MIN = 512;	static final int QRYBLKSZ_MAX = 32767;	static final int QRYROWSET_MAX = 32767;	static final int QRYROWSET_DEFAULT = -1;	//--------------------Defaults for QRYBLKCTL and MAXBLKEXT	static final int QRYBLKCTL_DEFAULT = LMTBLKPRC;	static final int MAXBLKEXT_NONE = 0;	static final int MAXBLKEXT_DEFAULT = MAXBLKEXT_NONE;	//-------------- QRYSCRORN - query scroll orientation values	static final int QRYSCRREL = 1;		// relative fetch	static final int QRYSCRABS = 2;		// absolute fetch	static final int QRYSCRAFT = 3;		// after last row	static final int QRYSCRBEF = 4;		// before first row	//---------------OUTOVROPT - output override option values	static final int OUTOVRFRS = 1; 	// Output Override allowed on first CNTQRY	static final int OUTOVRANY = 2; 	// Output Override allowed on any CNTQRY	//--------------------------XA code points---------------------------			// Release conversation	public static final int RLSCONV = 0x119F;	// SYNC Point Control Reply	public static final int SYNCCRD = 0x1248;		// XA Return Value	public static final int XARETVAL = 0x1904;		// XA Timeout Value;	public static final int TIMEOUT = 0x1907;	// new unit of work for XA	public static final int SYNCTYPE_NEW_UOW = 0x09;		// End unit of work (Sync type).	public static final int SYNCTYPE_END_UOW = 0x0B;		// Prepare to commit (Sync type).	public static final int SYNCTYPE_PREPARE = 0x01;		// migrate to resync server sync type	public static final int SYNCTYPE_MIGRATE = 0x02;		// commit sync type	public static final int SYNCTYPE_COMMITTED = 0x03;		// request to commit sync type	public static final int SYNCTYPE_REQ_COMMIT = 0x05;	// request to forget sync type	public static final int SYNCTYPE_REQ_FORGET = 0x06;		//rollback sync type	public static final int SYNCTYPE_ROLLBACK = 0x04;		// Request Sync log information (Sync type).	static final int SYNCTYPE_REQ_LOG = 0x08;	// migrated unit of work sync type	public static final int SYNCTYPE_MIGRATED = 0x0A;		//recover sync type	public static final int SYNCTYPE_INDOUBT = 0x0C;		// Forget unit of work.	public static final int FORGET = 0x1186;		// SYNC Type Codepoint	public static final int SYNCTYPE = 0x1187;		// XId Codepoint	public static final int XID = 0x1801;		// XA Flag Codepoint	public static final int XAFLAGS = 0x1903;		// Resync Type	public static final int RSYNCTYP = 0x11EA;		// Sync Resync Reply	public static final int SYNCRRD = 0x126D;		// XA Flags	public static final int TMNOFLAGS = 0x00000000;		// Prepared and hueristic complete list	static final int PRPHRCLST = 0x1905;		// XID count	static final int XIDCNT = 0x1906;			//-----------------------Manager code points --------------------------	protected static int [] MGR_CODEPOINTS = {											AGENT,											CCSIDMGR,												CMNAPPC, 											CMNSYNCPT,												CMNTCPIP,												DICTIONARY,											RDB,											RSYNCMGR,												SECMGR,												SQLAM,											SUPERVISOR,												SYNCPTMGR,											XAMGR											};	protected static final int UNKNOWN_MANAGER = -1;	// hide the default constructor	private CodePoint () {}	/**	 * Given a manager codepoint find it's location in the managers array	 *	 * @return index into manager array or UNKNOWN_MANAGER if not found	 */	protected static int getManagerIndex(int manager)	{		for (int i = 0; i < MGR_CODEPOINTS.length; i++)			if (MGR_CODEPOINTS[i] == manager)				return i;		return UNKNOWN_MANAGER;	}	/**	 * Check if a manager codepoint is a known manager	 * 	 * @return true if known, false otherwise	 */	protected static boolean isKnownManager(int manager)	{		for (int i = 0; i < CodePoint.MGR_CODEPOINTS.length; i++)			if (manager == CodePoint.MGR_CODEPOINTS[i])				return true;		return false;	}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?