-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
116 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
104 changes: 104 additions & 0 deletions
104
...in/java/org/haiku/haikudepotserver/dataobjects/auto/_RepositorySourceExtraIdentifier.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
package org.haiku.haikudepotserver.dataobjects.auto; | ||
|
||
import java.io.IOException; | ||
import java.io.ObjectInputStream; | ||
import java.io.ObjectOutputStream; | ||
|
||
import org.apache.cayenne.exp.Property; | ||
import org.haiku.haikudepotserver.dataobjects.RepositorySource; | ||
import org.haiku.haikudepotserver.dataobjects.support.AbstractDataObject; | ||
|
||
/** | ||
* Class _RepositorySourceExtraIdentifier was generated by Cayenne. | ||
* It is probably a good idea to avoid changing this class manually, | ||
* since it may be overwritten next time code is regenerated. | ||
* If you need to make any customizations, please use subclass. | ||
*/ | ||
public abstract class _RepositorySourceExtraIdentifier extends AbstractDataObject { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
public static final String ID_PK_COLUMN = "id"; | ||
|
||
public static final Property<String> IDENTIFIER = Property.create("identifier", String.class); | ||
public static final Property<RepositorySource> REPOSITORY_SOURCE = Property.create("repositorySource", RepositorySource.class); | ||
|
||
protected String identifier; | ||
|
||
protected Object repositorySource; | ||
|
||
public void setIdentifier(String identifier) { | ||
beforePropertyWrite("identifier", this.identifier, identifier); | ||
this.identifier = identifier; | ||
} | ||
|
||
public String getIdentifier() { | ||
beforePropertyRead("identifier"); | ||
return this.identifier; | ||
} | ||
|
||
public void setRepositorySource(RepositorySource repositorySource) { | ||
setToOneTarget("repositorySource", repositorySource, true); | ||
} | ||
|
||
public RepositorySource getRepositorySource() { | ||
return (RepositorySource)readProperty("repositorySource"); | ||
} | ||
|
||
@Override | ||
public Object readPropertyDirectly(String propName) { | ||
if(propName == null) { | ||
throw new IllegalArgumentException(); | ||
} | ||
|
||
switch(propName) { | ||
case "identifier": | ||
return this.identifier; | ||
case "repositorySource": | ||
return this.repositorySource; | ||
default: | ||
return super.readPropertyDirectly(propName); | ||
} | ||
} | ||
|
||
@Override | ||
public void writePropertyDirectly(String propName, Object val) { | ||
if(propName == null) { | ||
throw new IllegalArgumentException(); | ||
} | ||
|
||
switch (propName) { | ||
case "identifier": | ||
this.identifier = (String)val; | ||
break; | ||
case "repositorySource": | ||
this.repositorySource = val; | ||
break; | ||
default: | ||
super.writePropertyDirectly(propName, val); | ||
} | ||
} | ||
|
||
private void writeObject(ObjectOutputStream out) throws IOException { | ||
writeSerialized(out); | ||
} | ||
|
||
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { | ||
readSerialized(in); | ||
} | ||
|
||
@Override | ||
protected void writeState(ObjectOutputStream out) throws IOException { | ||
super.writeState(out); | ||
out.writeObject(this.identifier); | ||
out.writeObject(this.repositorySource); | ||
} | ||
|
||
@Override | ||
protected void readState(ObjectInputStream in) throws IOException, ClassNotFoundException { | ||
super.readState(in); | ||
this.identifier = (String)in.readObject(); | ||
this.repositorySource = in.readObject(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters