* The resource file org.exolab.castor.util.resources.messages * contains a list of all the messages in English. Additional resource * files can be added for other languages and locales by placing them * in the same package with a language/locale prefix. See the I18N * documentation and use of resource bundles in the JDK docs. * * @author Assaf Arkin * @version $Revision: 1.2 $ $Date: 2005/03/05 13:41:57 $ */ public class Messages { /** * The name of the resource holding all the messages in the English * language. Resources for other languages and locales use the same * name with a language/locale prefix. */ public static final String ResourceName = "org.exolab.castor.util.resources.messages"; /** * The resource bundle holds all the messages. */ private static ResourceBundle _messages; /** * Once a format has been created once, it is cached here. */ private static Hashtable _formats; /** * Format the named message using a single argument and return the * full message text. * * @param message The message name * @param arg1 The first argument * @return The full message text */ public static String format( String message, Object arg1 ) { return format( message, new Object[] { arg1 } ); } /** * Format the named message using two argument and return the * full message text. Index: org/exolab/castor/util/resources/messages.properties =================================================================== RCS file: /scm/castor/castor/src/main/org/exolab/castor/util/resources/messages.properties,v retrieving revision 1.24 diff -u -r1.24 messages.properties --- org/exolab/castor/util/resources/messages.properties 13 Dec 2004 10:27:37 -0000 1.24 +++ org/exolab/castor/util/resources/messages.properties 17 Mar 2005 21:14:58 -0000 @@ -65,6 +65,10 @@ use UserTransaction or container managed transactions instead jdo.loading=\ Loading class: {0} using SQL: {1} +jdo.loading.with.lock=\ + Loading class: {0} using SQL: {1} +jdo.finding=\ + Fincing class: {0} using SQL: {1} jdo.loading.with.id=\ Loading class: {0} with id: {1} jdo.creating=\ Index: org/exolab/castor/jdo/engine/CounterRef.java =================================================================== RCS file: org/exolab/castor/jdo/engine/CounterRef.java diff -N org/exolab/castor/jdo/engine/CounterRef.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ org/exolab/castor/jdo/engine/CounterRef.java 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,34 @@ +/** + * Created on 11.03.2005 at 15:42:46 + * + * TODO Insert class description here + * + * @author werner.guttmann + * + * Copyright (c) Vector SW DV GmbH, 2005 + */ +package org.exolab.castor.jdo.engine; + +/** + * @author werner.guttmann + * + * This is a type. + */ +public class CounterRef { + + private int counter; + private String tableName; + + public String getTableName() { + return this.tableName; + } + public void setTableName(String tableName) { + this.tableName = tableName; + } + public int getCounter() { + return this.counter; + } + public void setCounter(int counter) { + this.counter = counter; + } +} Index: org/exolab/castor/persist/ProposedObject.java =================================================================== RCS file: org/exolab/castor/persist/ProposedObject.java diff -N org/exolab/castor/persist/ProposedObject.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ org/exolab/castor/persist/ProposedObject.java 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,123 @@ +/* + * Created on 25.02.2005 + * + * To change the template for this generated file go to + * Window - Preferences - Java - Code Generation - Code and Comments + */ +package org.exolab.castor.persist; + +/** + * @author Administrator + * + * To change the template for this generated type comment go to + * Window - Preferences - Java - Code Generation - Code and Comments + */ +public class ProposedObject { + + private Class proposedClass; + private Class actualClass; + private Object object; + private Object[] fields; + + boolean isExpanded = false; + private ClassMolder actualClassMolder; + + /** + * @return Returns the fields. + */ + public Object[] getFields() { + return this.fields; + } + /** + * @param fields The fields to set. + */ + public void setFields(Object[] fields) { + this.fields = fields; + } + /** + * @return Returns the object. + */ + public Object getObject() { + return this.object; + } + /** + * @param object The object to set. + */ + public void setObject(Object object) { + this.object = object; + } + /** + * @return Returns the proposedClass. + */ + public Class getProposedClass() { + return this.proposedClass; + } + /** + * @param proposedClass The proposedClass to set. + */ + public void setProposedClass(Class proposedClass) { + this.proposedClass = proposedClass; + } + /** + * + */ + public ProposedObject() { + super(); + } + + /** + * @return Returns the isExpanded. + */ + public boolean isExpanded() { + return this.isExpanded; + } + /** + * @param isExpanded The isExpanded to set. + */ + public void setExpanded(boolean isExpanded) { + this.isExpanded = isExpanded; + } + /** + * @return Returns the actualClass. + */ + public Class getActualClass() { + return this.actualClass; + } + /** + * @param actualClass The actualClass to set. + */ + public void setActualClass(Class actualClass) { + this.actualClass = actualClass; + } + + + /* (non-Javadoc) + * @see java.lang.Object#toString() + */ + public String toString() { + StringBuffer buffer = new StringBuffer(); + buffer.append ("<"); + buffer.append ("proposedClass=" + this.proposedClass); + buffer.append ("; actualClass=" + this.actualClass); + buffer.append ("; object=" + this.object); + buffer.append ("; actual classmolder=" + this.actualClassMolder + "; "); + if (this.fields != null) { + for (int i = 0; i < this.fields.length; i++) { + buffer.append("fields[" + i + "]='" + this.fields[i] + "':"); + } + } + buffer.append (">"); + return buffer.toString(); + } + + /** + * @return + */ + public ClassMolder getActualClassMolder() { + return this.actualClassMolder; + } + + public void setActualClassMolder(ClassMolder actualClassMolder) { + this.actualClassMolder = actualClassMolder; + } +}