db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r385379 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/Triggers.java
Date Sun, 12 Mar 2006 22:40:54 GMT
Author: djd
Date: Sun Mar 12 14:40:53 2006
New Revision: 385379

URL: http://svn.apache.org/viewcvs?rev=385379&view=rev
Log:
DERBY-1102 (partial) Remove old unused replication related methods in test code Triggers.java

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/Triggers.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/Triggers.java
URL: http://svn.apache.org/viewcvs/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/Triggers.java?rev=385379&r1=385378&r2=385379&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/Triggers.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/Triggers.java
Sun Mar 12 14:40:53 2006
@@ -52,27 +52,6 @@
 		return "";
 	}
 
-	public static void triggerFiresRep(String string) throws Throwable
-	{	
-		String preface = isReplicationTarget() ? 
-						"TARGET: " : isReplicationSource() ?
-								"SOURCE: " : "<not in rep context>" ;
-		TriggerExecutionContext tec = Factory.getTriggerExecutionContext();
-		System.out.println(preface + "<"+string+"> on statement "+tec.getEventStatementText());
-		printTriggerChanges();
-	}
-
-	public static boolean isReplicationTarget() throws Throwable
-	{
-		String repTargetProp = PropertyInfo.getDatabaseProperty("derby.engineType");
-		return (repTargetProp != null && repTargetProp.equals("8"));
-	}
-	public static boolean isReplicationSource() throws Throwable
-	{
-		String repSourceProp = PropertyInfo.getDatabaseProperty("derby.engineType");
-		return (repSourceProp != null && repSourceProp.equals("4"));
-	}
-
 	public static int doNothingInt() throws Throwable
 	{
 		return 1;
@@ -138,23 +117,6 @@
 		conn.close();
 	}
 
-	public static void doConnStmt(String text, boolean targetOnly) throws Throwable
-	{
-		if (isReplicationTarget() == targetOnly)
-		{
-			System.out.println("Trigger Executing: "+text);
-			doConnStmt(text);
-		}
-	}
-
-	public static void workUnitFires() throws Throwable
-	{
-		System.out.println((isReplicationTarget() ? 
-						"TARGET: workUnitFires" : isReplicationSource() ?
-								"SOURCE: workUnitFires" : 
-								"<error, not in rep context?!?>"));
-	}
-
 	// used for performance numbers
 	public static void zipThroughTriggerResultSets() throws SQLException
 	{
@@ -330,18 +292,6 @@
 		System.out.println("going out with level = " + levelValue + 
 						   " and autoincrement = " + exit.longValue());
 
-	}
-
-
-	public static void aiWorkUnit(String s)
-	       	      throws Throwable	
-	{
-		Connection conn = DriverManager.getConnection("jdbc:default:connection");
-		String query = "insert into watab (s) values (?)";
-		PreparedStatement ps = conn.prepareStatement(query);
-		System.out.println("in work unit with s=" + s);
-		ps.setString(1, s);
-		ps.execute();
 	}
 
 	public static String beginInvalidRefToTECTest() throws Throwable



Mime
View raw message